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
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 Distribution
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d22c7a177349752f4dac89674e20b6a4ed6f5e77f79baf6b8f9352abf6cdb9dd
|
|
| MD5 |
cca2e048e59cc15e54c62fb600df83d4
|
|
| BLAKE2b-256 |
f2dd6eda6dd96ef4f7359758f033aa1d0af0e155a60959740eecdcb5d032d84e
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
python_import_policies-1.1.2.tar.gz -
Subject digest:
d22c7a177349752f4dac89674e20b6a4ed6f5e77f79baf6b8f9352abf6cdb9dd - Sigstore transparency entry: 777987329
- Sigstore integration time:
-
Permalink:
yunier-rojas/python-import-policies@98538dd976f6cf9240d5658ac564ebf3c2043a82 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/yunier-rojas
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@98538dd976f6cf9240d5658ac564ebf3c2043a82 -
Trigger Event:
push
-
Statement type:
File details
Details for the file python_import_policies-1.1.2-py3-none-any.whl.
File metadata
- Download URL: python_import_policies-1.1.2-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2598df6339251d23d325e80f66185fa75e6408d0c9a54d8449a9ee26884f96e0
|
|
| MD5 |
c9c1a93a15fe2458b2fd278e417d80e5
|
|
| BLAKE2b-256 |
712b27f453d40d774c6eb6c79a49ade96cab16e251d78dadae965f0f27050fce
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
python_import_policies-1.1.2-py3-none-any.whl -
Subject digest:
2598df6339251d23d325e80f66185fa75e6408d0c9a54d8449a9ee26884f96e0 - Sigstore transparency entry: 777987331
- Sigstore integration time:
-
Permalink:
yunier-rojas/python-import-policies@98538dd976f6cf9240d5658ac564ebf3c2043a82 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/yunier-rojas
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@98538dd976f6cf9240d5658ac564ebf3c2043a82 -
Trigger Event:
push
-
Statement type: