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()
Фичи в разработке
- Полноценная поддержка автокомплитера на Linux
- Возможность настройки захвата stdout при обработке хэндлером ввода
Полная документация | 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.3.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.3-py3-none-any.whl
(23.9 kB
view details)
File details
Details for the file argenta-1.0.3.tar.gz.
File metadata
- Download URL: argenta-1.0.3.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 |
ba46c23a6442e84e9ccbe18539c5928202ece911d7410290bdb4aa2d924dab0c
|
|
| MD5 |
20d31de57f113132a7e776dcb1689597
|
|
| BLAKE2b-256 |
bbc3f167cd4a0cb1594d7b1d477634d1d5eb033d31cc8c55b7c1c5f2399ffb52
|
File details
Details for the file argenta-1.0.3-py3-none-any.whl.
File metadata
- Download URL: argenta-1.0.3-py3-none-any.whl
- Upload date:
- Size: 23.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c14b988b761705aa3548bc1ca6d42f9ff19145a3257b426936ffcc1ddfbf0020
|
|
| MD5 |
c6ffdced090616263e760e761b962615
|
|
| BLAKE2b-256 |
cc05da57a58764dfb059b5eeb601b77ef4b6876ad457696864fdfc1ffa7919d5
|