mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 10:05:28 +03:00
translate readme
This commit is contained in:
@@ -1,12 +1,14 @@
|
|||||||
# Argenta
|
# Argenta
|
||||||
|
|
||||||
### Библиотека для создания модульных CLI приложeний
|
### Library for creating modular CLI applications
|
||||||
|
|
||||||
|
#### RU - [README.ru.md](https://github.com/koloideal/Argenta/blob/kolo/README.ru.md)
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# Установка
|
# Installing
|
||||||
```bash
|
```bash
|
||||||
pip install argenta
|
pip install argenta
|
||||||
```
|
```
|
||||||
@@ -17,9 +19,9 @@ poetry add argenta
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# Быстрый старт
|
# Quick start
|
||||||
|
|
||||||
Пример простейшего приложения
|
An example of a simple application
|
||||||
```python
|
```python
|
||||||
# routers.py
|
# routers.py
|
||||||
from argenta.router import Router
|
from argenta.router import Router
|
||||||
@@ -55,12 +57,12 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# Фичи в разработке
|
# Features in development
|
||||||
|
|
||||||
- Полноценная поддержка автокомплитера на Linux
|
- Full support for autocompleter on Linux
|
||||||
- Возможность настройки захвата stdout при обработке хэндлером ввода
|
- Ability to configure stdout capture when handling input by the handler
|
||||||
|
|
||||||
## Полная [документация](https://argenta-docs.vercel.app) | MIT 2025 kolo | made by [kolo](https://t.me/kolo_id)
|
## Full [docs](https://argenta-docs.vercel.app) | MIT 2025 kolo | made by [kolo](https://t.me/kolo_id)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,66 @@
|
|||||||
|
# Argenta
|
||||||
|
|
||||||
|
### Библиотека для создания модульных CLI приложeний
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Установка
|
||||||
|
```bash
|
||||||
|
pip install argenta
|
||||||
|
```
|
||||||
|
or
|
||||||
|
```bash
|
||||||
|
poetry add argenta
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Быстрый старт
|
||||||
|
|
||||||
|
Пример простейшего приложения
|
||||||
|
```python
|
||||||
|
# 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!")
|
||||||
|
```
|
||||||
|
|
||||||
|
```python
|
||||||
|
# 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 при обработке хэндлером ввода
|
||||||
|
|
||||||
|
## Полная [документация](https://argenta-docs.vercel.app) | MIT 2025 kolo | made by [kolo](https://t.me/kolo_id)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "argenta"
|
name = "argenta"
|
||||||
version = "1.0.3"
|
version = "1.0.4"
|
||||||
description = "Python library for building modular CLI applications"
|
description = "Python library for building modular CLI applications"
|
||||||
authors = [{ name = "kolo", email = "kolo.is.main@gmail.com" }]
|
authors = [{ name = "kolo", email = "kolo.is.main@gmail.com" }]
|
||||||
requires-python = ">=3.8"
|
requires-python = ">=3.8"
|
||||||
|
|||||||
Reference in New Issue
Block a user