• Stars
    star
    1,689
  • Rank 26,743 (Top 0.6 %)
  • Language
    HTML
  • License
    Other
  • Created almost 10 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An open collection of Python anti-patterns and worst practices.

The Little Book of Python Anti-Patterns

This is an open-source book of Python anti-patterns and worst practices. Check out docs/index.rst for more information.

Notice: This is still (and will always be) a work-in-progress, feel free to contribute by suggesting improvements, adding new articles, improving existing ones, or translating this into other languages.

PDF Version

You can find a PDF version of the book here.

New articles

If you add new articles, please use the provided templates. Depending on the pattern you are creating, use either the anti-pattern or the migration-pattern template.

Building the Documentation

To build the documentation, first install the required packages:

pip install -r requirements.txt

Then, go to the src directory and run make:

# HTML pages
make html
# PDF version
make latexpdf

For the PDF version, you will need a working LaTeX installation (e.g. texlive).

You will find the updated documentation in the docs folder afterwards. You can clean the folder by running make clean.

License

The book is made available under a Creative Commons Attribution-Non-Commercial-ShareAlike 4.0 license. This allows you to use and distribute it freely for your own non-commercial projects (e.g. for teaching) if you make your contributions available under the same license.

When using content from the book on your website or elsewhere, please add a visible link to our website or this Github project, so that your readers can easily find the original articles and make contributions.

Enjoy :)

Creative Commons License This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.