Skip to main content

Import Policies

Project description

python-import-policies

python-import-policies is a Python package designed to enhance the management of import policies within your Python projects. It provides a set of contract types for the incredible import-linter. This package allows you to enforce consistent import practices, improve code readability, and maintain a clean and organized codebase.

Installation

Install the package using pip:

pip install python-import-policies

Usage

An example configuration for import-linter configuration

[importlinter]
root_package = your_package
contract_types =
    import_policy: import_policies.contracts.ImportPolicy

[importlinter:contract:import-policy]
name = Define import policy
type = import_policy
allow_modules =
    your_package.** -> another_package.**
    ** -> your_package.api

Then execute the linter

lint-imports

For more information visit import-linter website.

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_import_policies-1.1.2.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_import_policies-1.1.2-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file python_import_policies-1.1.2.tar.gz.

File metadata

  • Download URL: python_import_policies-1.1.2.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for python_import_policies-1.1.2.tar.gz
Algorithm Hash digest
SHA256 d22c7a177349752f4dac89674e20b6a4ed6f5e77f79baf6b8f9352abf6cdb9dd
MD5 cca2e048e59cc15e54c62fb600df83d4
BLAKE2b-256 f2dd6eda6dd96ef4f7359758f033aa1d0af0e155a60959740eecdcb5d032d84e

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_import_policies-1.1.2.tar.gz:

Publisher: release.yml on yunier-rojas/python-import-policies

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file python_import_policies-1.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for python_import_policies-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2598df6339251d23d325e80f66185fa75e6408d0c9a54d8449a9ee26884f96e0
MD5 c9c1a93a15fe2458b2fd278e417d80e5
BLAKE2b-256 712b27f453d40d774c6eb6c79a49ade96cab16e251d78dadae965f0f27050fce

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_import_policies-1.1.2-py3-none-any.whl:

Publisher: release.yml on yunier-rojas/python-import-policies

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page