Skip to content

Instantly share code, notes, and snippets.

@NdagiStanley
Last active May 10, 2022 19:44
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NdagiStanley/56408b1b4fb7151da74077c2d8151f22 to your computer and use it in GitHub Desktop.
Save NdagiStanley/56408b1b4fb7151da74077c2d8151f22 to your computer and use it in GitHub Desktop.
PyCon 2022

PyCon 2022

Stanley Ndagi @ PyCon 2022 - An opinionated Python toolkit

Intro

http://www.md.engineer

https://stars.github.com/profiles/ndagistanley/

https://circleci.com/blog/author/stanley-ndagi/

https://techkln.org/

Python

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

Set up

https://chocolatey.org/

https://brew.sh/

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

GIT

## 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

GitHub

  • Add .patch to commit URL for a formatted patch
  • . - github dev | Octotree

VS Code

Prototyping

REPL

Dependencies

  • pip
    • conda
    • poetry

https://pypi.org/project/pip-autoremove/

https://pypi.org/project/pip-chill/

  • pip-compile - pip install pip-tools

    pip-compile

Reference

Django

Linting

Formatting

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/

Specific

README

Licensing

Documentation generator

Changelog

Review

Testing

CI

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

https://semaphoreci.com/

Deployment

Packaging/ Publishing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment