Installation¶
Requirements¶
- Python 3.13 or higher
- pip or uv package manager
Using pip¶
Install the latest version from PyPI:
Using uv (Recommended)¶
uv is a fast Python package installer:
Development Installation¶
For development or to get the latest unreleased features:
# Clone the repository
git clone https://github.com/mcala/nj_legislative_api.git
cd nj_legislative_api
# Install with development dependencies using uv
uv sync --dev
# Or using pip
pip install -e ".[dev]"
Verify Installation¶
Optional Dependencies¶
The package includes optional development dependencies for:
- Testing: pytest, pytest-cov
- Documentation: mkdocs, mkdocstrings
- Code quality: ruff, pyright, ty
- Release management: python-semantic-release
Install development dependencies:
Environment Setup¶
API Key (Optional)¶
While not required, an API key provides better rate limits:
Cache Directory¶
By default, caching uses XDG Base Directory specification. Override if needed:
Next Steps¶
After installation, proceed to the Quick Start Guide to learn how to use the library.