Stanley Ndagi @ PyCon 2022 - An opinionated Python toolkit
https://stars.github.com/profiles/ndagistanley/
https://circleci.com/blog/author/stanley-ndagi/
https://en.wikipedia.org/wiki/List_of_Python_software - All things, Python
https://en.wikipedia.org/wiki/Comparison_of_server-side_web_frameworks#Python - Comparing Python Web frameworks
Virtual envs
https://gist.github.com/NdagiStanley/bf9db623e8a96ef2ab631a28c9a1eba8#file-virtual_envs-md
https://realpython.com/python-virtual-environments-a-primer/#create-it
Create it then Activate it. Remember to gitignore
-
venv
:python -m venv venv
-
virtualenv
-
virtualenvwrapper
-
pipenv
https://github.com/pypa/pipenv
pip + virtualenv
-
pyenv
- Python versionhttps://github.com/pyenv/pyenv#readme
pyenv versions pyenv install --list
-
Reduce Reproducibility Issues
## Delete Local branches
git branch -d {the_local_branch} // --delete
git branch -D {the_local_branch} // --delete --force
## Delete Remote branches
git push origin -d {the_remote_branch} // --delete
## Do this as frequently as possible esp after deleting branches remotely
git remote prune origin
- Add
.patch
to commit URL for a formatted patch .
- github dev | Octotree
REPL
- https://replit.com/@NdagiStanley/PyCon
- https://github.com/pypa/pipx
- https://www.bpython-interpreter.org/
- pip
- conda
- poetry
https://pypi.org/project/pip-autoremove/
https://pypi.org/project/pip-chill/
-
pip-compile
-pip install pip-tools
pip-compile
-
Rapid development reference - offline Keyboard shortcuts
wget --mirror --convert-links --adjust-extension --page-requisites --no-parent
-
https://docs.python.org/3/, https://docs.python.org/3/tutorial/index.html
-
Brett Cannon - https://snarky.ca/
Django
Black: match a single, consistent style, based on Python’s style guide PEP 8.
Isort: sorted, Grouped imports
https://github.com/asottile/pyupgrade
https://flake8.pycqa.org/en/latest/
- https://fastapi.tiangolo.com/
- https://flask.palletsprojects.com/en/2.1.x/
- https://scrapy.org/
python3 -m http.server <PORT>
- https://pypi.org/project/django-browser-reload/
- https://github.com/adamchainz/django-upgrade
- https://github.com/cool-RR/PySnooper
- Jupyter install steps
- https://docs.microsoft.com/en-us/contribute/markdown-reference
- https://github.com/NdagiStanley/markdown-ext-pack
- https://choosealicense.com/
- https://www.freecodecamp.org/news/how-open-source-licenses-work-and-how-to-add-them-to-your-projects-34310c3cf94/
CircleCI
https://circleci.com/docs/2.0/language-python/
circleci switch
circleci config validate
circleci local execute -c .circleci/MD.yml
GitHub actions
https://github.com/marketplace/actions/setup-python
SemaphoreCI