Skip to main content

Snippets and utils for python projects

Project description

python‑purse

python‑purse is a library that collects a variety of snippets and utilities for both asynchronous and synchronous Python projects. Whether you're building bots, web applications, or other tools, this library provides ready-to-use code modules to speed up development.

Features

  • Dataclasses Utilities
    Enhance your work with Python dataclasses with extra helpers and shortcuts.

  • Datetime Helpers
    Tools for common datetime operations.

  • HTTP Clients
    Built-in support for multiple HTTP clients including httpx, requests, and builtin http module.

  • Framework Extensions

    • aiogram: Bootstrap modules, decorators, routers, and utilities for Telegram bots.
    • aiohttp: Simplified app creation and server utilities.
    • django: ASGI/WSGI handlers, repository patterns, and more for Django projects.
  • Logging
    Custom logging configurations and integrations (including Telegram-based logging).

  • Interfaces and Repositories
    Protocol definitions and in-memory repository implementations for fast prototyping.

  • JSON and Functional Helpers
    Utility functions to simplify JSON handling and functional programming patterns.

  • Additional Utilities
    Signal handling, system-level helpers, type utilities, and more.

Installation

If python‑purse is published on PyPI, you can install it via pip:

pip install python-purse

Or, with extras:

pip install python-purse[aiogram]

Contributing

Contributions are welcome! If you’d like to contribute, please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/my-feature).
  3. Commit your changes (git commit -am 'Add new feature').
  4. Push your branch (git push origin feature/my-feature).
  5. Open a pull request.

License

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

Contacts

email telegram

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

python_purse-1.0.24.tar.gz (28.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_purse-1.0.24-py3-none-any.whl (34.5 kB view details)

Uploaded Python 3

File details

Details for the file python_purse-1.0.24.tar.gz.

File metadata

  • Download URL: python_purse-1.0.24.tar.gz
  • Upload date:
  • Size: 28.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.10

File hashes

Hashes for python_purse-1.0.24.tar.gz
Algorithm Hash digest
SHA256 f763cbc5e0b33162b41b891a100391bd28547bf7911775cbf52822c901f508ec
MD5 27472f48636ba65033dd7e35cad721f7
BLAKE2b-256 600217a99163068ce44f3d5f792d48bf80a95378db6bfe87d3596dbd36af32ff

See more details on using hashes here.

File details

Details for the file python_purse-1.0.24-py3-none-any.whl.

File metadata

File hashes

Hashes for python_purse-1.0.24-py3-none-any.whl
Algorithm Hash digest
SHA256 9d5fa65d045a8f0a0b6e2c67f8dfc019c7fe3428c5d63d885991528a243a3f00
MD5 61533847f309bb497513e9cb8f489a81
BLAKE2b-256 ea4cec969e1aac739147f657c4e94afe5084d87307e1794916f13d3821169f51

See more details on using hashes here.

Supported by

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