This release is a pre-release and may not be stable for production use.
Usefulgram
Installation:
pip install usefulgram
A little history:
angiogram is a wonderful framework. However, when working with it, I came across the fact that I transfer many functions and classes from project to project. First, common classes were created for convenient transportation, then it grew into a shared folder, and now into a separate project. I hope that this small add-in will become a useful tool not only for me, but also for you
What it includes:
- LazyEditor - this is a class aimed at handling any editing-related errors. For example, the expiration of time, as well as much, much more. Also, it unifies work with media (currently only photo and video are supported)
- LazySender - A class that unifies sending for callback and message types. Partially similar in functionality to LazyEditing
- Builder, Row, Button and its Reply analogs - classes for representing the keyboard in a array-like form
- BasePydanticFilter - Base class, a somewhat developed version the Callback Factory capable of type hints, supporting inheritance, date time and pedantic classes within itself. It is indispensable when used together with a plugin for pydantic hints in your IDE
- TrottlingMiddleware - A class that allows you to prevent spam. A slightly modified version of this code
- StackerMiddleware - The class that adds all these classes to handlers
- calendar_menager - A simple calendar menu built on library functions
- And much more!
Usage examples:
Along the path examples -> fully_example you will find most of the examples of using the library. Over time, they will get bigger
Documentation:
In development and will be available soon
Roadmap:
- Improve the code ✔️
- Add more usage examples ✔️(~75% done)
- Translate all texts in the library into English ✔️(it can be painful in some places)
- Add documentation 🔨🔨🔨 (in progress)
- Add more comments to the code 🔨🔨🔨 (in progress)
Release files for usefulgram 0.0.0b3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| usefulgram-0.0.0b3.tar.gz | 15.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| usefulgram-0.0.0b3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 38.7 kB
Release files / usefulgram-0.0.0b3.tar.gz
| Download URL | usefulgram-0.0.0b3.tar.gz |
|---|---|
| Size | 15.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
436b0c19f552fff2de49879a5a638ffe9caf35f0acf67436db7162748397cc9b
|
|
BLAKE2b-256 checksum How to use checksums |
d024118a1f27f4aef73758d5279c7a6a58fec1b351cb0325f92be07468d6bf42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / usefulgram-0.0.0b3-py3-none-any.whl
| Download URL | usefulgram-0.0.0b3-py3-none-any.whl |
|---|---|
| Size | 23.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bad36d72dc727a0d0f00b6f698c01faccee284905c38f47874e9aba60493664d
|
|
BLAKE2b-256 checksum How to use checksums |
aa7c0a078e99f8127ea09b934d5049d53e17e99e161f67eb92a6695214e057c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|