Python library for building modular CLI applications
Project description
Argenta
Library for creating modular CLI applications
RU - README.ru.md
Installing
pip install argenta
or
poetry add argenta
Quick start
An example of a simple application
# routers.py
from argenta.router import Router
from argenta.command import Command
from argenta.response import Response
router = Router()
@router.command(Command("hello"))
def handler(response: Response):
print("Hello, world!")
# main.py
from argenta.app import App
from argenta.orchestrator import Orchestrator
from routers import router
app: App = App()
orchestrator: Orchestrator = Orchestrator()
def main() -> None:
app.include_router(router)
orchestrator.start_polling(app)
if __name__ == '__main__':
main()
Features in development
- Full support for autocompleter on Linux
- Ability to configure stdout capture when handling input by the handler
Full docs | MIT 2025 kolo | made by kolo
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
argenta-1.0.4.tar.gz
(4.7 MB
view details)
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
argenta-1.0.4-py3-none-any.whl
(23.7 kB
view details)
File details
Details for the file argenta-1.0.4.tar.gz.
File metadata
- Download URL: argenta-1.0.4.tar.gz
- Upload date:
- Size: 4.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f09c90c77f819ac56822d7cbb49514e10843c783795d63cdb41e355ca4481980
|
|
| MD5 |
3fea9104de3a929bd336226772711d95
|
|
| BLAKE2b-256 |
3c53dd1efbcac3d332026777790f59e255ac8fb4d647fbced97ce2c6fb84834b
|
File details
Details for the file argenta-1.0.4-py3-none-any.whl.
File metadata
- Download URL: argenta-1.0.4-py3-none-any.whl
- Upload date:
- Size: 23.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6052c7cce3e045805487a1fe8e0a429ccf36fd52f528ed1011eb71b2311f361
|
|
| MD5 |
c19672d0b5dc4a971c8ec8c2aebf4014
|
|
| BLAKE2b-256 |
d4ff40742be36184a69d32f70b3483888530ed2b46eea5f1fa42399c410399d1
|