Skip to content

My notes, implementations, and experiments related to principles presented in *Powerful Python* by Aaron Maxwell.

Notifications You must be signed in to change notification settings

fujifilmfan/pp-powerful_python

Repository files navigation

Project summary

My notes, implementations, and experiments related to principles presented in Powerful Python by Aaron Maxwell.

Project set up

I'm using Poetry for package and venv management and pyenv for python version management.

  • $ poetry init
  • $ poetry install --no-root installed Python 3.7.8 into .venv.
    • I have Python 3.7.8 set as my global Python version ($ pyenv global 3.7.8).
    • If I wanted a different version, I think I could do something like pyenv local 3.8.1 assuming that is installed.
  • $ source .venv/bin/activate (so I don't need to use poetry run before each python command)

Documentation

The documentation can be viewed and navigated via web browser using MkDocs. To start the server on MacOS:

  • navigate to the directory that hosts mkdocs.yml
  • activate a virtual environment (mine is called "docs")
  • install mkdocs (like $ poetry add mkdocs mkdocs-material mkdocs-material-extensions)
  • start the server:
$ mkdocs serve --dev-addr 127.0.0.1:8001

where --dev-addr is used to override the default IP address, I think. The server polls the docs for changes so that one can see real-time updates to pages as they are written.

Helpful MkDocs-related references:

About

My notes, implementations, and experiments related to principles presented in *Powerful Python* by Aaron Maxwell.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages