Installation¶
Requirements¶
- Python: 3.11 or higher
- Pydantic: 2.0 or higher
Install from PyPI¶
The recommended way to install PDC Struct:
Install from Source¶
For the latest development version:
Install for Development¶
If you want to contribute:
This installs the package in editable mode with all development dependencies including:
pytestandpytest-covfor testingblackfor code formattingrufffor lintingmkdocs-materialfor documentation
Verify Installation¶
Optional Dependencies¶
Documentation¶
To build the documentation locally:
Testing¶
To run tests:
Troubleshooting¶
ImportError: No module named 'pydantic'¶
PDC Struct requires Pydantic 2.0+. Install it:
Python Version Error¶
Ensure you're using Python 3.11 or higher:
If needed, create a virtual environment with the correct Python version.
Next Steps¶
Continue to Quick Start to create your first struct!