User Tools

Site Tools


python

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
python [2020-11-02 21:08] – mrkspython [2022-07-07 10:07] (current) – mrks
Line 1: Line 1:
 ====== Python ====== ====== Python ======
  
-==== General ====+===== General =====
  
   * [[https://www.fullstackpython.com/|Full Stack Python]]   * [[https://www.fullstackpython.com/|Full Stack Python]]
   * [[https://www.pyinstaller.org/|PyInstaller]]   * [[https://www.pyinstaller.org/|PyInstaller]]
 +  * [[https://github.com/pyenv/pyenv#simple-python-version-management-pyenv|Simple Python Version Management: pyenv]]
 +  * [[https://www.marc-richter.info/using-pyenv-to-manage-your-python-interpreters/|Using pyenv to manage your Python interpreters]]
  
-==== Using Pipenv ====+===== Package Management and Virtual Environments =====
  
-  * [[https://pipenv-fork.readthedocs.io/en/latest/basics.html|Basic Usage of Pipenv]] +  * [[https://docs.python.org/3/library/venv.html|venv]] 
- +  * [[https://python-poetry.org/|Poetry]] 
- +  * Pipenv 
-==== Using pip ==== +    * [[https://docs.pipenv.org/install/|Installing Pipenv]] 
- +    * [[https://pipenv-fork.readthedocs.io/en/latest/basics.html|Basic Usage of Pipenv]] 
-See [[https://pip.pypa.io/en/stable/user_guide/#user-installs|pip User Guide, User Installs]]: +  * PIP 
- +    * [[https://pip.pypa.io/en/stable/user_guide/#user-installs|pip User Guide, User Installs]]: ''pip install %%--%%user SomePackage'' 
-==== Local package installation ==== +    * Pip behind a proxy 
- +      * Explicitly specify proxy: ''pip %%--%%proxy=http://user:password@proxy.example.com:12345 some-package'' 
-''pip install %%--%%user SomePackage'' +      * Using environment varialbes 
- +        * ''HTTP_PROXY=http://user:password@proxy.example.com:12345'' 
-==== Pip behind a proxy ==== +        * ''HTTPS_PROXY=http://user:password@proxy.example.com:12345'' 
- +        * ''pip install some-package''
-  * Explicitly specify proxy: ''pip %%--%%proxy=http://user:password@proxy.example.com:12345 some-package'' +
-  * Using environment varialbes +
-    * ''HTTP_PROXY=http://user:password@proxy.example.com:12345'' +
-    * ''pip install some-package''+
  
 ==== Without pip ==== ==== Without pip ====
Line 35: Line 33:
  
 The source of the package can then be placed within this folder. Packages consisting of only one file can be placed directly under site-packages with the respective package name. Packages containing of multiple files can be placed within a subfolder named according to the package, e.g. ''smb''. The package main file would then be the ''__init__.py'' within the ''smb'' folder. The source of the package can then be placed within this folder. Packages consisting of only one file can be placed directly under site-packages with the respective package name. Packages containing of multiple files can be placed within a subfolder named according to the package, e.g. ''smb''. The package main file would then be the ''__init__.py'' within the ''smb'' folder.
- 
- 
-==== Packages ==== 
- 
- 
-  * [[https://pysmb.readthedocs.io/en/latest/api/smb_SMBConnection.html|pysmb]] for accessing SMB/Samba network shares 
  
  
Line 47: Line 39:
   * [[https://packaging.python.org/overview/|Packaging overview]]   * [[https://packaging.python.org/overview/|Packaging overview]]
   * [[https://packaging.python.org/tutorials/packaging-projects/|Simple project structure]]   * [[https://packaging.python.org/tutorials/packaging-projects/|Simple project structure]]
 +  * [[https://www.fullstackpython.com/application-dependencies.html|Application Dependencies]]
   * [[https://docs.python-guide.org/writing/structure/|Structuring Your Project – The Hitchhiker's Guide to Python]]   * [[https://docs.python-guide.org/writing/structure/|Structuring Your Project – The Hitchhiker's Guide to Python]]
   * [[https://python-packaging.readthedocs.io/en/latest/index.html|How To Package Your Python Code]]   * [[https://python-packaging.readthedocs.io/en/latest/index.html|How To Package Your Python Code]]
   * [[https://www.digitalocean.com/community/tutorials/how-to-package-and-distribute-python-applications|How To Package And Distribute Python Applications – DigitalOcean]]   * [[https://www.digitalocean.com/community/tutorials/how-to-package-and-distribute-python-applications|How To Package And Distribute Python Applications – DigitalOcean]]
 +
 +
 +===== Logging =====
 +
 +  * [[https://docs.python.org/3/library/logging.html|Logging]]
 +  * [[https://docs.python.org/3/howto/logging.html|Logging HOWTO]]
 +  * [[https://docs.python.org/3/howto/logging-cookbook.html|Logging Cookbook]]
 +  * [[https://docs.python-guide.org/writing/logging/|Logging – The Hitchhiker's Guide to Python]]
 +
 +
 +===== Packages =====
 +
 +  * [[https://pypi.org/project/pip-licenses/|pip-licenses]]: Dump the software license list of Python packages installed with pip.
 +  * [[https://pysmb.readthedocs.io/en/latest/api/smb_SMBConnection.html|pysmb]] for accessing SMB/Samba network shares
 +  * [[https://fastapi.tiangolo.com/|FastAPI]] for creating APIs in Python
 +
 +
 +===== Miscellaneous =====
 +
 +  * [[http://skybert.net/python/developing-a-restful-micro-service-in-python/|Developing a RESTful micro service in Python]]
 +
  
python.1604347692.txt.gz · Last modified: by mrks