Skip to content

Latest commit

 

History

History
150 lines (100 loc) · 2.46 KB

File metadata and controls

150 lines (100 loc) · 2.46 KB

Python Library Examples

This is my spellbook: a collection of copy-paste recipes using my favourite Python libraries. Once you are familiar with the basics of Python and know how to install a library, most of the recipes should be accessible for beginners.

The purpose of this collection is to give you an impression what kind of things are possible with Python.

Numbers

.. toctree::
   :maxdepth: 2

   math/README.rst
   random/README.rst


Lists and Dictionaries

.. toctree::
   :maxdepth: 2

   itertools/README.rst
   random/random_list.rst

Text

.. toctree::
   :maxdepth: 1

   re/README.rst
   thefuzz/README.rst
   vader/README.rst
   wordcloud/README.rst

Date and Time

.. toctree::
   :maxdepth: 2

   time/README.rst

Paths and Directories

.. toctree::
   :maxdepth: 2

   os/README.rst
   pathlib/README.rst # TODO

Read and Write Files

.. toctree::
   :maxdepth: 2

   json/README.rst
   xml/README.rst
   zipfile/README.rst
   pydocx/README.rst
   pypdf/README.rst

Plotting

.. toctree::
   :maxdepth: 2

   matplotlib/README.rst
   folium/README.rst
   networkx/README.rst

Image Processing

.. toctree::
   :maxdepth: 1

   pillow/README.rst

Data Science

.. toctree::
   :maxdepth: 2

   numpy/README.rst
   pandas/README.rst
   scipy/README.rst
   sklearn/README.rst
   PuLP/README.rst


Databases

.. toctree::
   :maxdepth: 1

   pymongo/README.rst
   sqlite3/README.rst

Web programming

.. toctree::
   :maxdepth: 1

   httpx/README.rst
   beautiful_soup/README.rst
   playwright/README.rst
   email/README.rst

User Interfaces

.. toctree::
   :maxdepth: 1

   tqdm/README.rst
   tkinter/README.rst
   curses/README.rst

The Python Interpreter

.. toctree::
   :maxdepth: 2

   sys/README.rst


Acknowledgements

Thanks to Emely Henninger for finding a nasty bug in networkx!

License

© 2026 Dr. Kristian Rother (kristian.rother@posteo.de)

The code is distributed under the conditions of the MIT License. See :download:`LICENSE.TXT` for details.

Text may be reused under the conditions of the Creative Commons Attribution Share-alike License 4.0 (CC-BY-SA 4.0). See creativecommons.org for details