Python Cookbook documentation

  • Coding Practice
  • Coding Style
  • Git Commit Messages
  • Documentation with Sphinx
  • Regular Expressions
  • Pyton Testing
    • Testing with Pytest
    • Behavior Driven Development with pytest-bdd
    • Using Tox
    • Web tests with Selenium
  • Python recipes
    • Interactive shell with Python Cmd
    • Tasks with invoke
    • Unpacking items from iterables
    • Using faker to generate fake data
  • Productivity recipes
    • Setup PostgreSQL Sandbox with Docker
Theme by the Executable Book Project

Python recipes

Python recipesΒΆ

  • Interactive shell with Python Cmd
    • Basic shell
    • Change the prompt
    • Welcome message
    • Empty command
    • Command arguments
    • Running shell command
    • Exit the shell on EOF character
    • There is more
    • Summary
  • Tasks with invoke
    • Documenting options
    • Running shell commands
    • Hiding shell command output
    • Capturing the shell command output
    • Further information
  • Unpacking items from iterables
    • Packing with * operator
  • Using faker to generate fake data
    • Examples:
    • Faker pytest fixture
    • Further reading

previous

Web tests with Selenium

next

Interactive shell with Python Cmd

By Ivan Georgiev
© Copyright 2021, Ivan Georgiev.