Skip to main content

Like aiogram but more easy

Project description

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)

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

usefulgram-0.0.0b1.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

usefulgram-0.0.0b1-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

Details for the file usefulgram-0.0.0b1.tar.gz.

File metadata

  • Download URL: usefulgram-0.0.0b1.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for usefulgram-0.0.0b1.tar.gz
Algorithm Hash digest
SHA256 6b487cb309d0567ce14fb2e1dcf5de24b9933110d453bd885fc06d881dbf24b7
MD5 35a476d8a3e2f40d3deaf612578bae6c
BLAKE2b-256 6a1d87bb8b77063aafa82568ae22d17b6577c8ce43a62eccea3f0511f60d4ff9

See more details on using hashes here.

File details

Details for the file usefulgram-0.0.0b1-py3-none-any.whl.

File metadata

File hashes

Hashes for usefulgram-0.0.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 9493a305e99db1af45258e9b43c29a3be43427fdf3d62a045b302cba03ef9226
MD5 c4ecb2437ef211e1b580e4ce75ccbac1
BLAKE2b-256 e3d03b6475267c7e6d7f4cecf889644e2f8216a1a88462cfb71c893ad87c76fb

See more details on using hashes here.

Supported by

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