Upgrade to Pro — share decks privately, control downloads, hide ads and more …

An opinionated Python toolkit

An opinionated Python toolkit

In this talk, I recommend tools, Tips, and Tricks for your development, review, testing, and deployment workflows for Python projects.

Video: https://youtu.be/WDt88WhJuFc

Included are:
- Tools
- Practices
- Resources

In these four workflows:
- Development
- Review
- Testing
- Deployment

Stanley Ndagi

May 06, 2022
Tweet

More Decks by Stanley Ndagi

Other Decks in Technology

Transcript

  1. 3RD ANNUAL PYCON SUMMIT KE
    Biggest Gathering For People & Organisations Interested In The
    Python Programming Language & Its Ecosystem
    3RD ANNUAL PYCON SUMMIT KE
    Biggest Gathering For People & Organisations Interested In The
    Python Programming Language & Its Ecosystem
    An opinionated Python
    toolkit
    Tools, Tips, Tricks I recommend for your
    development, review, testing, and deployment workflows
    for Python projects

    View full-size slide

  2. 3RD ANNUAL PYCON SUMMIT KE
    Biggest Gathering For People & Organisations Interested In The
    Python Programming Language & Its Ecosystem
    Stanley Ndagi alias Stan_MD
    Digerati:
    • Software Engineer (6+ years)
    Tech Stack: Python, JavaScript
    • Technical Writer (3+ years)
    Web profile:
    www.md.engineer
    Et al:
    • GitHub stars program
    • CircleCI technical writers program
    • TechKln community - techkln.org

    View full-size slide

  3. 3RD ANNUAL PYCON SUMMIT KE
    Biggest Gathering For People & Organisations Interested In The
    Python Programming Language & Its Ecosystem
    This talk, what to expect
    Included:
    • Tools
    • Practices
    • Resources
    Limited
    • Hands-on coding
    NOT
    • One tool to fix them all

    View full-size slide

  4. 3RD ANNUAL PYCON SUMMIT KE
    Biggest Gathering For People & Organisations Interested In The
    Python Programming Language & Its Ecosystem
    Introduction
    Opinionated?
    Firmly adhering to one's own view / judgement or to
    preconceived notions
    Python?
    Simple yet satisfying
    Toolkit?
    Tools make work easier
    A toolkit contains tools

    View full-size slide

  5. 3RD ANNUAL PYCON SUMMIT KE
    Biggest Gathering For People & Organisations Interested In The
    Python Programming Language & Its Ecosystem
    Tools: Timber DIY

    View full-size slide

  6. 3RD ANNUAL PYCON SUMMIT KE
    Biggest Gathering For People & Organisations Interested In The
    Python Programming Language & Its Ecosystem
    Tools: Software
    • Dotfiles
    • Scripts
    • Templates
    • Starter packs
    • Programming languages
    • Frameworks
    • Libraries
    Tinker,
    Break,
    Build,
    Repeat

    View full-size slide

  7. 3RD ANNUAL PYCON SUMMIT KE
    Biggest Gathering For People & Organisations Interested In The
    Python Programming Language & Its Ecosystem
    Python Toolkit
    Workflows:
    1. Development
    2. Review
    3. Testing
    4. Deployment
    QR code shared with live audience

    View full-size slide

  8. 3RD ANNUAL PYCON SUMMIT KE
    Biggest Gathering For People & Organisations Interested In The
    Python Programming Language & Its Ecosystem
    Python Toolkit:
    Development Workflow
    Set up
    • Local set up
    • Version control
    • IDE

    View full-size slide

  9. 3RD ANNUAL PYCON SUMMIT KE
    Biggest Gathering For People & Organisations Interested In The
    Python Programming Language & Its Ecosystem
    Python Toolkit:
    Development Workflow
    Set up
    • Local set up
    • Multiple python versions
    • Virtual envs & Docker
    • Version control
    • GIT
    • IDE
    • VS Code

    View full-size slide

  10. 3RD ANNUAL PYCON SUMMIT KE
    Biggest Gathering For People & Organisations Interested In The
    Python Programming Language & Its Ecosystem
    Python Toolkit:
    Development Workflow
    Writing code
    • Prototyping
    • Dependencies
    • Reference

    View full-size slide

  11. 3RD ANNUAL PYCON SUMMIT KE
    Biggest Gathering For People & Organisations Interested In The
    Python Programming Language & Its Ecosystem
    Python Toolkit:
    Development Workflow
    Writing code
    • Prototyping
    • REPL
    • bpython
    • pipx
    • Dependencies
    • requirements.txt
    • Piplock
    • Reference
    • Python docs
    • Real Python
    • Python guide
    • Devdocs
    • Django Girls

    View full-size slide

  12. 3RD ANNUAL PYCON SUMMIT KE
    Biggest Gathering For People & Organisations Interested In The
    Python Programming Language & Its Ecosystem
    Python Toolkit:
    Development Workflow
    Writing code (cont.d)
    • Linting
    • Formatting
    • Miscellaneous

    View full-size slide

  13. 3RD ANNUAL PYCON SUMMIT KE
    Biggest Gathering For People & Organisations Interested In The
    Python Programming Language & Its Ecosystem
    Python Toolkit:
    Development Workflow
    Writing code (cont.d)
    • Linting
    • Flake8
    • Formatting
    • Editorconfig
    • black
    • isort
    • pyupgrade
    - Miscellaneous
    • http.server
    • Flask
    • FastAPI
    • Scrapy
    • django-browser-reload
    • django-upgrade
    • PySnooper
    • Snyk: vulnerabilities
    • Jupyter

    View full-size slide

  14. 3RD ANNUAL PYCON SUMMIT KE
    Biggest Gathering For People & Organisations Interested In The
    Python Programming Language & Its Ecosystem
    Python Toolkit:
    Development Workflow
    Documentation
    • README
    • Licencing
    • Documentation generator

    View full-size slide

  15. 3RD ANNUAL PYCON SUMMIT KE
    Biggest Gathering For People & Organisations Interested In The
    Python Programming Language & Its Ecosystem
    Python Toolkit:
    Development Workflow
    Documentation
    • README
    • Markdown
    • Best practices
    • Badges
    • Licencing
    • Documentation
    generator
    • Sphinx
    - Changelog

    View full-size slide

  16. 3RD ANNUAL PYCON SUMMIT KE
    Biggest Gathering For People & Organisations Interested In The
    Python Programming Language & Its Ecosystem
    Python Toolkit:
    Review Workflow
    • Local
    • Online
    - Project Management

    View full-size slide

  17. 3RD ANNUAL PYCON SUMMIT KE
    Biggest Gathering For People & Organisations Interested In The
    Python Programming Language & Its Ecosystem
    Python Toolkit:
    Review Workflow
    • Local
    • GitHub desktop
    • IDE - VSCode
    • Precommit
    • Online
    • GitHub PRs
    • GitLab MRs
    • Project Management
    • Shortcut
    • GitHub Projects

    View full-size slide

  18. 3RD ANNUAL PYCON SUMMIT KE
    Biggest Gathering For People & Organisations Interested In The
    Python Programming Language & Its Ecosystem
    Python Toolkit:
    Testing Workflow
    • Unit tests
    • Pytest
    • CI - Continuous Integration

    View full-size slide

  19. 3RD ANNUAL PYCON SUMMIT KE
    Biggest Gathering For People & Organisations Interested In The
    Python Programming Language & Its Ecosystem
    Python Toolkit:
    Deployment Workflow
    Instances
    • Ngrok
    • Heroku
    • Docker
    CI/CD

    View full-size slide

  20. 3RD ANNUAL PYCON SUMMIT KE
    Biggest Gathering For People & Organisations Interested In The
    Python Programming Language & Its Ecosystem
    Python Toolkit:
    Deployment Workflow
    Publishing
    • Tagging
    • Test Python Package Index (TestPyPI)
    • Python Package Index (PyPI)

    View full-size slide

  21. 3RD ANNUAL PYCON SUMMIT KE
    Biggest Gathering For People & Organisations Interested In The
    Python Programming Language & Its Ecosystem
    Conclusion
    The software landscape is every changing,
    ALWAYS fine tune your toolkit as well.
    @NdagiStanley
    www.md.engineer

    View full-size slide

  22. 3RD ANNUAL PYCON SUMMIT KE
    Biggest Gathering For People & Organisations Interested In The
    Python Programming Language & Its Ecosystem
    THANK YOU

    View full-size slide