These Python Snippets are tested with Python 3.7.x. and are available as Jupyter notebooks (http://jupyter.org/).
All the required Python packages can be installed with pipenv
.
First you nee to install pipenv
.
$ pip install --user pipenv
Install all the required packages
pipenv install --dev
You can start jupyter-lab
to play around with the Juypter notebooks.
pipenv run jupyter-lab
To test the Jupyter notebooks this project uses nbval, which is a py.test
plugin for validating Jupyter notebooks.
This will check all Jupyter notebooks for errors.
pipenv run py.test --nbval-lax
Check which packages have changed.
pipenv update --outdated
This will upgrade everything.
pipenv update
The Python snippets are organized by topic.
GeoJSON
RSS
HTTP
- Load the content from a website with urllib.request
- Extract the text from a HTML document with Beautiful Soup
Image