Skip to main content

Python library for building modular CLI applications

Project description

Argenta

Библиотека для создания модульных CLI приложeний

preview


Установка

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

argenta-1.0.3-py3-none-any.whl (23.9 kB view details)

Uploaded Python 3

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

Hashes for argenta-1.0.3.tar.gz
Algorithm Hash digest
SHA256 ba46c23a6442e84e9ccbe18539c5928202ece911d7410290bdb4aa2d924dab0c
MD5 20d31de57f113132a7e776dcb1689597
BLAKE2b-256 bbc3f167cd4a0cb1594d7b1d477634d1d5eb033d31cc8c55b7c1c5f2399ffb52

See more details on using hashes here.

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

Hashes for argenta-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c14b988b761705aa3548bc1ca6d42f9ff19145a3257b426936ffcc1ddfbf0020
MD5 c6ffdced090616263e760e761b962615
BLAKE2b-256 cc05da57a58764dfb059b5eeb601b77ef4b6876ad457696864fdfc1ffa7919d5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page