Installation#
Pain001 is available on PyPI and can be installed using various package managers.
Quick Installation#
The easiest way to install Pain001 is via pip:
pip install pain001
This will install Pain001 and all its required dependencies.
Installation Methods#
Using pip (Recommended)#
pip install pain001
Using pip with extras#
Install with optional development dependencies:
# Development tools (formatting, linting, type checking)
pip install pain001[dev]
# Documentation build tools
pip install pain001[docs]
# All extras
pip install pain001[all]
Using Poetry#
If you’re using Poetry for dependency management:
poetry add pain001
For development:
poetry add --group dev pain001
Using Conda#
If you prefer Conda, Pain001 can be installed from the default channels:
conda install pain001
Development Installation#
For contributing to Pain001 or running tests locally:
Clone the repository
git clone https://github.com/sebastienrousseau/pain001.git cd pain001
Install with development dependencies
Using Poetry (recommended):
poetry installUsing pip:
pip install -e ".[dev]"
Run tests
poetry run pytest # or make test
Run code quality checks
make lint make format make type
System Requirements#
Python: 3.9 or higher
Operating System: Linux, macOS, or Windows
Dependencies: Automatically installed with Pain001
Verifying Installation#
To verify that Pain001 is correctly installed:
import pain001
print(pain001.__version__)
You should see the version number of the installed Pain001 package.
Troubleshooting#
Issue: “ModuleNotFoundError: No module named ‘pain001’”
Ensure you’ve activated the correct Python environment and installed Pain001:
python -m pip install --upgrade pain001
Issue: “Permission denied” during installation
On Unix-like systems, you may need to use –user:
pip install --user pain001
Issue: Dependency conflicts
If you encounter dependency conflicts, try creating a fresh virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install pain001
Issue: XML schema validation errors
Ensure you have the correct XSD schema files. Pain001 supports schemas from pain.001.001.03 to pain.001.001.11. Download official schemas from: - ISO 20022 UNIFI Schemas
Getting Help#
If you encounter installation issues:
Check the FAQ
Search existing GitHub Issues
Create a new GitHub issue with: - Python version (python –version) - OS information - Full error message and traceback - Steps to reproduce
Next Steps#
After installation, check out the Getting Started Guide to start using Pain001.