Python import checker with Rust backend. Checks import ordering rules in Python projects.
- Rust-powered import analysis
- Configurable via
pyproject.toml - Linear ordering rules for enforcing module dependencies
- CLI interface
pip install importeesnap install importeegit clone https://github.com/yourusername/importee.git
cd importee
pip install maturin
maturin developCheck your project's imports:
importee checkConfiguration is done via pyproject.toml:
[tool.importee]
source_module = ["myproject"]
[tool.importee.rules.linear]
order = ["models", "utils", "api", "cli"]Importee reads configuration from your pyproject.toml file. Here's what you can configure:
[tool.importee]
# Modules to check
source_module = ["myapp"]Enforce a specific order for imports within your project:
[tool.importee.rules.linear]
# Modules must be imported in this order
order = ["config", "database", "models", "services", "api"]This ensures that modules listed earlier in the order cannot import from modules listed later.
- Python 3.9+
- Rust 1.70+
- Maturin
# Development build
make dev
# Clean rebuild
make rebuildpytest tests/[Add your license here]
See DEPLOYMENT.md for information on releasing and deploying this project.