Metadata-Version: 2.4
Name: python-import-policies
Version: 1.1.2
Summary: Import Policies
License: MIT
License-File: LICENSE.md
Keywords: python,import,policy
Author: Yunier Rojas
Author-email: yunier.rojas@gmail.com
Maintainer: Yunier Rojas García
Maintainer-email: yunier.rojas@gmail.com
Requires-Python: >=3.10,<4.0
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Dist: import-linter (>=2.9,<3.0)
Project-URL: Repository, https://github.com/yunier-rojas/python-import-policies
Description-Content-Type: text/markdown

# 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](https://github.com/seddonym/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:

```bash
pip install python-import-policies
```

## Usage

An example configuration for `import-linter` configuration

```ini
[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

```bash
lint-imports

```

For more information visit [import-linter](https://import-linter.readthedocs.io/) website.

## License
MIT License

