Skip to main content

aldheeb-pytools 🛠️

PyPI version Python versions License: MIT

aldheeb-pytools is a modern Python utilities library providing async-ready helpers for backend systems, databases, cryptography, and Telegram automation.


✨ Features

  • ⚡ Async-first design built for modern asyncio applications
  • 🗄️ MongoDB utilities for cleaner and safer database operations
  • 🔐 Cryptography helpers (AES-GCM, secure key derivation)
  • 🤖 Telegram utilities using Kurigram integration
  • 📧 IMAP email utilities for fetching and parsing emails
  • 🌍 Country & phone utilities for region and number handling
  • 🧰 General utilities for parsing, validation, and data handling
  • 🧩 Fully typed codebase with strict type hints support

📦 Installation

Starting from v0.2.0, the library uses optional dependencies — install only what you need.

Minimal install (no optional dependencies)

pip install aldheeb-pytools

Install specific features

Extra Installs Use for
crypto cryptography Encryption & key derivation
mongo pymongo MongoDB utilities
phone phonenumbers Phone number parsing
country pycountry, phonenumbers Country info & region codes
tg kurigram Telegram automation
imap aioimaplib IMAP email fetching
bs4 beautifulsoup4 HTML email parsing
full everything above All features
# Single feature
pip install "aldheeb-pytools[crypto]"

# Multiple features
pip install "aldheeb-pytools[crypto, mongo, phone]"

# Everything
pip install "aldheeb-pytools[full]"

Note: If you try to use a feature without its required packages installed, you'll get a clear ImportError with the exact install command needed.

Install the latest version from GitHub

To install directly from the main branch (ahead of the latest PyPI release):

pip install git+https://github.com/eeeob/aldheeb-pytools.git --force-reinstall

🚀 Quick Start

🔐 Encryption example

pip install "aldheeb-pytools[crypto]"
from pytools import encrypt, decrypt

key = "my-secure-key"

encrypted = encrypt("secret data", key)
print(encrypted)

decrypted = decrypt(encrypted, key)
print(decrypted)

🗄️ MongoDB example

pip install "aldheeb-pytools[mongo]"
from pytools import MongoIndex

index = MongoIndex.from_dict({"key": {"field": 1}})

🤖 Telegram example

pip install "aldheeb-pytools[tg]"
from pytools import format_tg_username, mention_tg_user

username = format_tg_username("@myuser")
mention = mention_tg_user(123456789, "John")

🧪 Development Setup

git clone https://github.com/eeeob/aldheeb-pytools.git
cd aldheeb-pytools
pip install -e ".[full,dev]"

Running tests

pytest

Tests run in CI across every Python version listed in the classifiers above (3.10 through 3.14), both with the minimal (no-extras) install and with [full,dev].


📄 License

This project is licensed under the MIT License. See the LICENSE file for details.


📬 Contact

Metadata

Release files for aldheeb-pytools 0.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aldheeb-pytools 0.3.3
File Size Uploaded Provenance Actions
aldheeb_pytools-0.3.3.tar.gz 62.0 kB With provenance Details for aldheeb_pytools-0.3.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aldheeb-pytools 0.3.3
File Interpreter ABI Platform Actions
aldheeb_pytools-0.3.3-py3-none-any.whl Python 3 none any Details for aldheeb_pytools-0.3.3-py3-none-any.whl

Total release size: 127.3 kB

Release files / aldheeb_pytools-0.3.3.tar.gz

Download URL aldheeb_pytools-0.3.3.tar.gz
Size 62.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a7c47b1a44ac047480ee6b04df8e4aebae533aafa7c70b6df09e17a1c6263f2a
BLAKE2b-256 checksum
How to use checksums
cc689c6c07c830ecf685dd81c32a58a5278a533ff582729c900955c37a12ab54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 3, 2026.

Transparency log

Release files / aldheeb_pytools-0.3.3-py3-none-any.whl

Download URL aldheeb_pytools-0.3.3-py3-none-any.whl
Size 65.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8ee5f6ce29785029be03c690c7bf16f7d27bd5e0aa44989800a89eff2ac814b5
BLAKE2b-256 checksum
How to use checksums
521e04be698548e809560149089652f7aed30053dc031e80fdaa18fe10235ba2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 3, 2026.

Transparency log

Security for aldheeb-pytools 0.3.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for aldheeb_pytools-0.3.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 3, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.3 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page