Metadata-Version: 2.4
Name: pyarchrules
Version: 0.0.1a1
Summary: Architecture validation library for Python projects
Author: Sergei Mikheev
License: MIT License
        
        Copyright (c) 2026 Sergei Mikheev
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/yourusername/pyarchrules
Project-URL: Documentation, https://github.com/yourusername/pyarchrules#readme
Project-URL: Repository, https://github.com/yourusername/pyarchrules
Project-URL: Issues, https://github.com/yourusername/pyarchrules/issues
Keywords: architecture,validation,testing,monorepo,microservices
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.12
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: Testing
Requires-Python: >=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: tomlkit==0.14.0
Requires-Dist: typer==0.23.0
Requires-Dist: pydantic==2.12.5
Requires-Dist: loguru==0.7.0
Dynamic: license-file

<p align="center">
  <img src="https://gist.githubusercontent.com/mspitb/862bc8c4b0e176e98f06e624761519da/raw/f4237236769bd2739132790f6c6f1157e3be5131/pyarchrules_logo.svg" alt="PyArchRules Logo" width="600">
</p>

<p align="center">
  <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="License" height="18"></a>
  <a href="https://www.python.org/"><img src="https://img.shields.io/badge/python-3.12+-blue.svg" alt="Python 3.12+" height="18"></a>
</p>

<p align="center">
  <strong>Define and enforce architectural rules for Python projects with ease.</strong><br>
  Perfect for monorepos, microservices, and maintaining clean architecture boundaries.
</p>

## Installation

```bash
pip install pyarchrules
```

## Quick Start

Initialize in your project:

```bash
pyarchrules init-project
```

This creates configuration in `pyproject.toml`:

```toml
[tool.pyarchrules]
project_name = "my-project"
description = "Architecture rules for this project"

[tool.pyarchrules.services]
root = "."
```

## CLI Commands

```bash
# Initialize project
pyarchrules init-project

# Add a service
pyarchrules add-service api services/api

# List services
pyarchrules list-services

# Remove a service
pyarchrules remove-service api
```

## Configuration

Define services in `pyproject.toml`:

```toml
[tool.pyarchrules]
project_name = "my-project"
description = "Architecture rules"

[tool.pyarchrules.services]
root = "."

[tool.pyarchrules.services.api]
path = "services/api"

[tool.pyarchrules.services.billing]
path = "services/billing"
```

## Python API

```python
from pyarchrules import PyArchRules

# Load configuration
rules = PyArchRules(".")

# Access services
print(rules.services)  # {'root': '.', 'api': 'services/api', ...}
```

## Development Status

⚠️ **Alpha Release** - API may change in future versions.

## Development

### Setup

```bash
# Install with dev dependencies
uv pip install -e ".[dev]"
```

### Code Quality Tools

Using Make (recommended):

```bash
# Run all linters
make lint

# Auto-format code
make format

# Run tests
make test
```

## License

MIT

