Python library for building modular CLI applications
Project description
Argenta
Библиотека для создания модульных CLI приложeний
Установка
pip install argenta
or
poetry add argenta
Быстрый старт
Пример простейшего приложения
# 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()
Полная документация | 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.1.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.1-py3-none-any.whl
(23.7 kB
view details)
File details
Details for the file argenta-1.0.1.tar.gz.
File metadata
- Download URL: argenta-1.0.1.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 |
befd7c9b9a4023b5264f5410b461202118c9e6ca0ef1c3678a47618063959ac1
|
|
| MD5 |
ae64ed5585c6f95522bd3b2122d680dd
|
|
| BLAKE2b-256 |
fe5aa277cedf2ffbb8cd8030bf232bf220f9c2bfe980a5a45930f6ad3a50402b
|
File details
Details for the file argenta-1.0.1-py3-none-any.whl.
File metadata
- Download URL: argenta-1.0.1-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 |
03ca4a46017f098e395a5529644cb6fd841e45489fb68b5d6a2ffabbc0906788
|
|
| MD5 |
aed31ff38c5b27e5867e03477f3811f6
|
|
| BLAKE2b-256 |
fee80e20be69e842d3e46f0cb39ac569a058a36e6a98c282fc1a8ff05fece514
|