aiogram CLI
Project description
aiogram-cli
Command line interface for developers
Works only with aiogram 3.0+ (Is under development)
Here is only bootstrap for CLI interface with extensions based on pkg_resources
Installation
From PyPi
pip install --extra-index-url https://dev-docs.aiogram.dev/simple --pre aiogram-cli
Poetry
Add this block to pyproject.toml
file:
[[tool.poetry.source]]
name = "aiogram-dev"
url = "https://dev-docs.aiogram.dev/simple"
secondary = true
And then run: poetry add -D aiogram-cli
Extensions
aiogram_cli_generator
(WIP) - Project files generator based on pre-defined cookiecutter templatesaiogram_cli_executor
(WIP) - Executor for bots- ...
Usage
Just run in terminal aiogram-cli
(Or alias - aiogram
) and see what you can do with it.
Example
Writing extensions
Any aiogram-cli extension package should provide an entry point like this:
[aiogram_cli.plugins]
my_extension = my_package.module:MyCommand
Or with poetry like this:
[tool.poetry.plugins."aiogram_cli.plugins"]
"builtin-about" = "aiogram_cli.commands.about:AboutCommand"
"builtin-plugins" = "aiogram_cli.commands.plugins:PluginsListCommand"
This application is based on cleo framework and that mean all plugins should be one of:
- subclass of
cleo.Command
- instance of
cleo.Command
- sequence of subclasses or instances of
cleo.Command
- callable which accepts
app: cleo.Application
and returns any of 1-3 formats
Examples: aiogram_cli.commands.about aiogram_cli.commands.plugins
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
Built Distribution
Hashes for aiogram_cli-0.0.1a3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea0ed04e41cdac4a7af415aab24a48ea2003c9d1ce0da1da164534b7d8419a88 |
|
MD5 | 65d6d646d5b602bb5618372a4d9b4eb3 |
|
BLAKE2b-256 | b957607f8db385792bc359dc43a5c498d23465067340a05b8ee2112b0f4eb314 |