Differences between revisions 17 and 18
Revision 17 as of 2020-01-15 20:26:00
Size: 3345
Editor: SamatJain
Comment: requirements.txt notes
Revision 18 as of 2020-04-07 21:43:12
Size: 3435
Editor: SamatJain
Comment:
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
[[CodingStyle/Python]] is another relevant page. [[CodingStyle/Python]] is another relevant page. Also:

<<FullSearchCached(t:ProgrammingLanguages/Python)>>

<<Navigation(children)>>

CodingStyle/Python is another relevant page. Also:

Development packages for Debian

Current for Ubuntu 16.04.

fabric
python-pip
python3-venv
python3-pip
python-wheel-common

cffi and numpy

https://github.com/SimonSapin/azureblur/tree/master/azureblur: Example of using cffi to interact w/ a C++ class.

python - How do I convert a numpy ND-array to a CFFI C++ array and back again? - Stack Overflow

python - Why is cffi so much quicker than numpy? - Stack Overflow

Neat Web frameworks

aspen.io. Filesystem-based dispatch library. Used by Liberapay.

Neat packages

nvbn/py-backwards: Python transcompiler. Lets you use Python 3.6 features in older versions, as old as Python 2.7.

asottile/future-fstrings. Allows formatted string literals (AKA f-strings) in Python 2.7–3.5 by hacking built-in codecs.

arrow (relatively mature) and moment, a port of Moment.js, are date-handling libraries with a better API than Python's stdlib.

Compilers

Nuitka: Python native-code compiler, binary will still link to libpython.

Typing

ambv/retype: Re-applies type annotations from *.pyi stubs to a codebase.

For reference:

Porting projects from Python 2 to Python 3

Backports

subprocess

python-subprocess32: Backport of Python 3.2 subprocess module to 2.7. Use:

if os.name == 'posix' and sys.version_info[0] < 3:
    import subprocess32 as subprocess
else:
    import subprocess

Can serve as a complete replacement for Python 2.7's subprocess module.

2to3 libraries

Guides

Notes

Packaging

requirements.txt

PyYAML ~= 5.3  # means >= V.N, == V.*

For more information, see:

SamatsWiki: ProgrammingLanguages/Python (last edited 2021-04-09 17:46:53 by SamatJain)