HDX Python Utilities for streaming tabular data, date and time handling and other helpful functions
Actively maintained. Last release 4 weeks ago, commits in 7 of the last 26 weeks. A safe choice.
pip install hdx-python-utilitiesThe HDX Python Utilities Library provides a range of helpful utilities for Python developers. Note that these are not specific to HDX.
- Easy downloading of files with support for authentication, streaming and hashing
- Retrieval of data from url with saving to file or from data previously saved
- Date utilities
- Loading and saving JSON and YAML (maintaining order)
- Dictionary and list utilities
- HTML utilities (inc. BeautifulSoup helper)
- Compare files (eg. for testing)
- Simple emailing
- Easy logging setup and error logging
- State utility
- Path utilities
- URL utilities
- Text processing
- Stable file hashing
- Matching utilities
- Encoding utilities
- Check valid UUID
- Easy building and packaging
For more information, please read the documentation.
This library is part of the Humanitarian Data Exchange (HDX) project. If you have humanitarian related data, please upload your datasets to HDX.
Development
Environment
Development is currently done using Python 3.13. The environment can be created with:
uv sync
This creates a .venv folder with the versions specified in the project's uv.lock file.
Pre-commit
pre-commit will be installed when syncing uv. It is run every time you make a git commit if you call it like this: