Metadata-Version: 2.4
Name: zenit
Version: 1.1.1
Summary: Scaffold your next Python project with one command
Author-email: Bojan Konjevic <konjevicbojan1@gmail.com>
License: MIT License
        
        Copyright (c) 2025 Bojan Konjevic
        
        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/BojanKonjevic/zenit
Project-URL: Repository, https://github.com/BojanKonjevic/zenit
Project-URL: Issues, https://github.com/BojanKonjevic/zenit/issues
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Operating System :: OS Independent
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Code Generators
Classifier: Topic :: Software Development :: Build Tools
Requires-Python: >=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: jinja2
Requires-Dist: typer>=0.12
Requires-Dist: tomlkit
Requires-Dist: libcst
Requires-Dist: ruamel-yaml>=0.19.1
Dynamic: license-file

<h1 align="center">
  <a href="https://bojankonjevic.github.io/zenit/" target="_blank" rel="noopener noreferrer">
    zenit
  </a>
</h1>

<p align="center">
  Scaffold Python projects without lock-in. Add what you need. Remove cleanly.
</p>

<p align="center">
  <a href="https://github.com/BojanKonjevic/zenit/actions/workflows/ci.yml">
    <img src="https://github.com/BojanKonjevic/zenit/actions/workflows/ci.yml/badge.svg" alt="CI">
  </a>
  <a href="https://github.com/BojanKonjevic/zenit/blob/main/LICENSE">
    <img src="https://img.shields.io/github/license/BojanKonjevic/zenit" alt="License">
  </a>
  <a href="https://pypi.org/project/zenit/">
    <img src="https://img.shields.io/pypi/v/zenit" alt="PyPI">
  </a>
  <a href="https://pypi.org/project/zenit/">
    <img src="https://img.shields.io/pypi/pyversions/zenit" alt="Python">
  </a>
  <a href="https://codecov.io/gh/BojanKonjevic/zenit">
    <img src="https://img.shields.io/codecov/c/github/BojanKonjevic/zenit" alt="Coverage">
  </a>
</p>

---

**Zenit** is a CLI tool that scaffolds Python projects from declarative templates and addons. It generates production-ready code - FastAPI apps, database layers, Docker configs, CI pipelines - then gets out of the way. Everything it adds can be removed cleanly. Delete `.zenit.toml` and the project keeps working exactly the same.

## Demos

Create a project non-interactively, then add and remove addons later:

![zenit flags demo](https://raw.githubusercontent.com/BojanKonjevic/zenit/main/assets/demo-flags.gif)

The interactive selector - template first, then addons:

![zenit interactive demo](https://raw.githubusercontent.com/BojanKonjevic/zenit/main/assets/demo-interactive.gif)

## Quick Start

```bash
# Install
uv tool install zenit

# Create a project
zenit create my-api

# Add capabilities later
zenit add redis
zenit add auth-manual
```

## Documentation

Full documentation is available at **[bojankonjevic.github.io/zenit/docs](https://bojankonjevic.github.io/zenit/docs/)**.

- [Getting Started](https://bojankonjevic.github.io/zenit/docs/getting-started) - install, create, and run in under five minutes
- [Architecture](https://bojankonjevic.github.io/zenit/docs/architecture/) - how the manifest, libcst injection, and declarative addons work
- [Commands](https://bojankonjevic.github.io/zenit/docs/commands/) - `create`, `add`, `remove`, `doctor`, `list`, `config`, `graph`, `migrate`
- [Templates](https://bojankonjevic.github.io/zenit/docs/templates/) - `blank` and `fastapi`
- [Addons](https://bojankonjevic.github.io/zenit/docs/addons/) - Docker, Redis, Celery, auth, Sentry, GitHub Actions, SQLAlchemy, PostgreSQL, SQLModel
- [Contributing](https://bojankonjevic.github.io/zenit/docs/contributing) - coding standards, tests, and how to submit changes

## Studio

Explore templates, browse addons, inspect their files and dependencies, and build commands visually - all in your browser.

**[bojankonjevic.github.io/zenit/studio/](https://bojankonjevic.github.io/zenit/studio/)**

## Why Zenit?

- **No lock-in** - generated projects have zero runtime dependency on Zenit
- **Clean removal** - `zenit remove <addon>` undoes every file, injection, and dependency
- **Declarative addons** - addons describe what they add, not arbitrary scripts
- **Structural injection** - libcst-based code injection that survives formatting
- **Fingerprint tracking** - every injected block is hashed so removal is exact
- **Copier migration** - `zenit migrate` imports any Copier template into a Zenit-managed project
- **Dependency graph** - `zenit graph` renders addon dependencies in the terminal or as DOT/JSON

## License

[MIT](LICENSE)
