- The Python Standard Library
- [[main â Top-level code environment]]
- On
sys.exit(main())
: âSince the call toÂmain
 is wrapped inÂsys.exit()
, the expectation is that your function will return some value acceptable as an input toÂsys.exit()
; typically, an integer orÂNone
 (which is implicitly returned if your function does not have a return statement).â - â
__main__.py
will be executed when the package itself is invoked directly from the command line using the-m
flag.â. Example:python -m bandclass
- You can
import __main__
to do useful things likething in dir(__main__)
checks. Thereâs special handling in the import system as described in Special considerations for main
- On
- [[main â Top-level code environment]]
- âš 3. Data model the Python data model methods as referred to by James Powell a.k.a. Donât Use This Code
- Python HOWTOs
- Dive Into Python 3 - IMHO the best place to start learning Pythonbeginnerfriendly
- The Python Tutorial - the official Python 3 tutorialbeginnerfriendly
- Python Data Science Handbook by Jake VanderPlas - helped me a lot when I was starting outbeginnerfriendly
- A Whirlwind Tour of Python - Jake VanderPlas -beginnerfriendly
- The Hitchhikerâs Guide to Python -beginnerfriendly
- Intermediate Python
- Hyperpolyglot Numerical Analysis & Statistics: MATLAB, R, NumPy, Julia - a side-by-side reference sheet
- Python Object Graphs â objgraph 3.6.2 documentation
- [[Why you should use
python -m pip
]] - not sure about this but saved for reference/to check later - What Are Python Wheels and Why Should You Care?
- pip documentation
- Python Packaging User Guide
- Learning Resources for pytest The PyCharm Blog - pytest
Articles
- CHARMING PYTHON B26 Python Elegance, Python Warts, Part 2 â Properties, attributes, methods and custom access â - recommended in Dive Into Python 3
- đ„ Read Inside The Python Virtual Machine this looks absolutely amazing; added to READUS
- Polars vs. pandas Whatâs the Difference? The PyCharm Blog
- Pythonâs new t-strings - davepeck.org
Packages (useful to remember)
- Pyre Pyre || facebook/pyre-check
- Beartype - Beartype enforces type hints across your entire app in two lines of runtime code with no runtime overhead
- pipx â Install and Run Python Applications in Isolated Environments
- pipx - main (first) docs page
- psutil: giampaolopsutil Cross-platform lib for process and system monitoring in Python
- Polars: Index - Polars user guide
- dill package documentation â dill 0.4.1.dev0 documentation