Skip to main content

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.

Metadata

Release files for importee 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for importee 0.1.3
File Size Uploaded
importee-0.1.3.tar.gz 38.2 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for importee 0.1.3
File Interpreter ABI Platform
importee-0.1.3-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
importee-0.1.3-cp312-cp312-manylinux_2_34_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.34+ x86-64 Details
importee-0.1.3-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details

Total release size: 6.4 MB

Release files / importee-0.1.3.tar.gz

Download URL importee-0.1.3.tar.gz
Size 38.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0dd2f63d44884130b19acb5bfccdaca2f637b4fcc785e49d002f08ce2eb7ae24
BLAKE2b-256 checksum
How to use checksums
3fe7b3baf2f2db729ed3f09f4007c83bde36f0aed111f40feb82f0b153f2d1ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2025.

Transparency log

Release files / importee-0.1.3-cp312-cp312-win_amd64.whl

Download URL importee-0.1.3-cp312-cp312-win_amd64.whl
Size 2.0 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
db7360dd0126bdb4369496072f93fc22a08763d75feb96cda24aa45c9e5040f7
BLAKE2b-256 checksum
How to use checksums
8b399280f534bbbc3feff903236d4208006e792b900b9c768428b0af42d60189
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2025.

Transparency log

Release files / importee-0.1.3-cp312-cp312-manylinux_2_34_x86_64.whl

Download URL importee-0.1.3-cp312-cp312-manylinux_2_34_x86_64.whl
Size 2.3 MB
Tags CPython 3.12 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
6ab78c914fef6300e892424a4bebeab183f7fc2226449cbfa0e30d66dbd84796
BLAKE2b-256 checksum
How to use checksums
a98a69d94535f477d46574c1c4fa3d8d052dd7231d79f4b3c5395cf90ab07ddb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2025.

Transparency log

Release files / importee-0.1.3-cp312-cp312-macosx_11_0_arm64.whl

Download URL importee-0.1.3-cp312-cp312-macosx_11_0_arm64.whl
Size 2.0 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1241930ef3e2fa39515ea69a1f174f35fa09956e870e2e8dfd24bcbf72f37443
BLAKE2b-256 checksum
How to use checksums
7c0afab6004179dc3626a75cd137ad6e53fa100013993a8e57a114261de688a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.3 This release

4 release files

0.1.0

4 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page