Python import checker with Rust backend
Project description
Importee
Python import checker with Rust backend. Checks import ordering rules in Python projects.
Features
- Rust-powered import analysis
- Configurable via
pyproject.toml - Linear ordering rules for enforcing module dependencies
- CLI interface
Installation
From PyPI
pip install importee
From Snap Store
snap install importee
From Source
git clone https://github.com/yourusername/importee.git
cd importee
pip install maturin
maturin develop
Quick Start
Check your project's imports:
importee check
Configuration is done via pyproject.toml:
[tool.importee]
source_module = ["myproject"]
[tool.importee.rules.linear]
order = ["models", "utils", "api", "cli"]
Configuration
Importee reads configuration from your pyproject.toml file. Here's what you can configure:
Basic Configuration
[tool.importee]
# Modules to check
source_module = ["myapp"]
Linear Ordering Rules
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.
Development
Prerequisites
- Python 3.9+
- Rust 1.70+
- Maturin
Building
# Development build
make dev
# Clean rebuild
make rebuild
Running Tests
pytest tests/
License
[Add your license here]
Deployment
See DEPLOYMENT.md for information on releasing and deploying this project.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file importee-0.1.0.tar.gz.
File metadata
- Download URL: importee-0.1.0.tar.gz
- Upload date:
- Size: 38.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94c88cc55b3a40a710f84af20b8e7a6045831e170a4c4a2bbe719d9436349ce1
|
|
| MD5 |
ed04511e5eb3384118748c5832d3673b
|
|
| BLAKE2b-256 |
5cd1660f0015406c67d7e1ac16f5de9f3178e474bc50d4e4fd7763ba87680755
|
Provenance
The following attestation bundles were made for importee-0.1.0.tar.gz:
Publisher:
publish.yml on NathanDuboisset/importee
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
importee-0.1.0.tar.gz -
Subject digest:
94c88cc55b3a40a710f84af20b8e7a6045831e170a4c4a2bbe719d9436349ce1 - Sigstore transparency entry: 660634414
- Sigstore integration time:
-
Permalink:
NathanDuboisset/importee@a9a1546bfd550613ad401f1225606c48c05650e7 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/NathanDuboisset
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a9a1546bfd550613ad401f1225606c48c05650e7 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file importee-0.1.0-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: importee-0.1.0-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4377fecf3bcbbde0c201c4a8e6c3066c0a80c201c369b6848f173cd4216cd285
|
|
| MD5 |
0d35de52a6d776f631bfcd653784e11d
|
|
| BLAKE2b-256 |
ddb78e67e5024f80f6ead19e5cae65ea88abe46f21211833b91071820abd8f14
|
Provenance
The following attestation bundles were made for importee-0.1.0-cp312-cp312-win_amd64.whl:
Publisher:
publish.yml on NathanDuboisset/importee
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
importee-0.1.0-cp312-cp312-win_amd64.whl -
Subject digest:
4377fecf3bcbbde0c201c4a8e6c3066c0a80c201c369b6848f173cd4216cd285 - Sigstore transparency entry: 660634418
- Sigstore integration time:
-
Permalink:
NathanDuboisset/importee@a9a1546bfd550613ad401f1225606c48c05650e7 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/NathanDuboisset
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a9a1546bfd550613ad401f1225606c48c05650e7 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file importee-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: importee-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.12, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c08ba66eb05b6bad33376a0b6992ee20f8c6b7c726d16e7d87eb14fd458dd28a
|
|
| MD5 |
b52c8f7cfb98429449eaf243cb66a741
|
|
| BLAKE2b-256 |
de11b06ca9fa7cd48c7c941075e9f1919d7ea0058d04d855ba3fc8f272e2c84f
|
Provenance
The following attestation bundles were made for importee-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl:
Publisher:
publish.yml on NathanDuboisset/importee
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
importee-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl -
Subject digest:
c08ba66eb05b6bad33376a0b6992ee20f8c6b7c726d16e7d87eb14fd458dd28a - Sigstore transparency entry: 660634415
- Sigstore integration time:
-
Permalink:
NathanDuboisset/importee@a9a1546bfd550613ad401f1225606c48c05650e7 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/NathanDuboisset
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a9a1546bfd550613ad401f1225606c48c05650e7 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file importee-0.1.0-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: importee-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a44181cd83f26fa9e54ad59012c5a8617159ab717421ba264a1c976186a46a4
|
|
| MD5 |
3e949dd56c35f337a1b16fb13e0e53cf
|
|
| BLAKE2b-256 |
51ceb42fbb6a2b773e8ebccb7006b583fceaca491d159aa08e20a19417e386e6
|
Provenance
The following attestation bundles were made for importee-0.1.0-cp312-cp312-macosx_11_0_arm64.whl:
Publisher:
publish.yml on NathanDuboisset/importee
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
importee-0.1.0-cp312-cp312-macosx_11_0_arm64.whl -
Subject digest:
4a44181cd83f26fa9e54ad59012c5a8617159ab717421ba264a1c976186a46a4 - Sigstore transparency entry: 660634420
- Sigstore integration time:
-
Permalink:
NathanDuboisset/importee@a9a1546bfd550613ad401f1225606c48c05650e7 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/NathanDuboisset
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a9a1546bfd550613ad401f1225606c48c05650e7 -
Trigger Event:
workflow_dispatch
-
Statement type: