Hydrogram


NameHydrogram JSON
Version 0.2.0 PyPI version JSON
download
home_pageNone
SummarySleek, advanced, and asynchronous Telegram MTProto API framework in Python, designed for fluid user and bot interactions.
upload_time2024-06-30 22:56:52
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseNone
keywords telegram chat messenger mtproto api client library python
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <p align="center">
    <a href="https://github.com/hydrogram/hydrogram">
        <picture>
            <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/hydrogram/hydrogram/main/docs/source/_static/hydrogram-dark.png">
            <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/hydrogram/hydrogram/main/docs/source/_static/hydrogram-light.png">
            <img alt="Hydrogram" width="128" src="https://raw.githubusercontent.com/hydrogram/hydrogram/main/docs/source/_static/hydrogram-light.png">
        </picture>
    </a>
    <br>
    <b>Python Framework for the Telegram MTProto API</b>
    <br>
    <a href="https://hydrogram.org">
        Homepage
    </a>
    •
    <a href="https://docs.hydrogram.org">
        Documentation
    </a>
    •
    <a href="https://docs.hydrogram.org/en/latest/releases.html">
        Releases
    </a>
    •
    <a href="https://t.me/HydrogramNews">
        News
    </a>
</p>

# Hydrogram

[![We use Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![PyPI package version](https://img.shields.io/pypi/v/hydrogram.svg)](https://pypi.python.org/pypi/hydrogram)
[![PyPI license](https://img.shields.io/pypi/l/hydrogram.svg)](https://pypi.python.org/pypi/hydrogram)
[![PyPI python versions](https://img.shields.io/pypi/pyversions/hydrogram.svg)](https://pypi.python.org/pypi/hydrogram)
[![PyPI download month](https://img.shields.io/pypi/dm/hydrogram.svg)](https://pypi.python.org/pypi/hydrogram/)
[![GitHub Actions status](https://github.com/hydrogram/hydrogram/actions/workflows/python.yml/badge.svg)](https://github.com/hydrogram/hydrogram/actions)

## Description

Hydrogram is a Python library for interacting with the Telegram MTProto API. It provides a simple and intuitive interface for developers to leverage the power of Telegram's API in their Python applications.

## Installation

To install Hydrogram, you need Python 3 installed on your system. If you don't have Python installed, you can download it from the official website.

To install Hydrogram, use pip:

```bash
pip install hydrogram -U
```

## Usage

Here is a basic example of how to use Hydrogram:

```python
from hydrogram import Client, filters

app = Client("my_account")


@app.on_message(filters.private)
async def hello(client, message):
    await message.reply("Hello from Hydrogram!")


app.run()
```

## Features

- **Easy to use:** Hydrogram provides a simple and intuitive interface for developers to leverage the power of Telegram's API in their Python applications, while still allowing advanced usages.
- **Elegant:** Low-level details are abstracted and re-presented in a more convenient way, making the Telegram API more accessible.
- **Fast:** Hydrogram is boosted by [TgCrypto](https://github.com/pyrogram/tgcrypto), a high-performance cryptography library written in C, which makes it faster than other Python Telegram libraries.
- **Type-hinted:** Types and methods are all type-hinted, enabling excellent editor support and making it easier to write and maintain code.
- **Async:** Hydrogram is fully asynchronous, which means it can handle multiple requests at the same time, making it faster and more efficient.
- **Powerful:** Hydrogram provides full access to Telegram's API to execute any official client action and more, giving developers the flexibility to build powerful applications.

## Resources

- The [documentation](https://docs.hydrogram.org) is the technical reference for Hydrogram. It includes detailed usage guides, API reference, and more.
- The [homepage](https://hydrogram.org) is the official website for Hydrogram. It includes a quickstart guide, a list of features, and more.
- Our [Telegram channel](https://t.me/HydrogramNews) is where we post news and updates about Hydrogram.

## Contributing

Hydrogram is an open source project and we welcome contributions from the community. We appreciate all types of contributions, including bug reports, feature requests, documentation improvements, and code contributions.

To get started, please review our [Contribution Guidelines](https://github.com/hydrogram/hydrogram/blob/main/CONTRIBUTING.md) for more information.

All contributors are expected to adhere to the [Code of Conduct](https://github.com/hydrogram/.github/blob/main/CODE_OF_CONDUCT.md). Please read it before contributing.

We appreciate your help in making Hydrogram better!

## Support

Hydrogram is an open source project. Your support helps us maintain and improve the library. You can support the development of Hydrogram through the following platforms:

- [Liberapay](https://liberapay.com/hydrogram)
- [OpenCollective](https://opencollective.com/hydrogram)

## Thanks

- [Pyrogram](https://github.com/pyrogram/pyrogram) and its contributors for the inspiration and base code.

## License

You may copy, distribute and modify the software provided that modifications are described and licensed for free under [LGPL-3](https://www.gnu.org/licenses/lgpl-3.0.html). Derivatives works (including modifications or anything statically linked to the library) can only be redistributed under LGPL-3, but applications that use the library don't have to be.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "Hydrogram",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "telegram chat messenger mtproto api client library python",
    "author": null,
    "author_email": "Hydrogram <contact@hydrogram.org>",
    "download_url": "https://files.pythonhosted.org/packages/34/2d/cbba4c2bedd89b5a42fa15b5d5c061a2d128bba856e95ea47da5de487dc2/hydrogram-0.2.0.tar.gz",
    "platform": null,
    "description": "<p align=\"center\">\n    <a href=\"https://github.com/hydrogram/hydrogram\">\n        <picture>\n            <source media=\"(prefers-color-scheme: dark)\" srcset=\"https://raw.githubusercontent.com/hydrogram/hydrogram/main/docs/source/_static/hydrogram-dark.png\">\n            <source media=\"(prefers-color-scheme: light)\" srcset=\"https://raw.githubusercontent.com/hydrogram/hydrogram/main/docs/source/_static/hydrogram-light.png\">\n            <img alt=\"Hydrogram\" width=\"128\" src=\"https://raw.githubusercontent.com/hydrogram/hydrogram/main/docs/source/_static/hydrogram-light.png\">\n        </picture>\n    </a>\n    <br>\n    <b>Python Framework for the Telegram MTProto API</b>\n    <br>\n    <a href=\"https://hydrogram.org\">\n        Homepage\n    </a>\n    \u2022\n    <a href=\"https://docs.hydrogram.org\">\n        Documentation\n    </a>\n    \u2022\n    <a href=\"https://docs.hydrogram.org/en/latest/releases.html\">\n        Releases\n    </a>\n    \u2022\n    <a href=\"https://t.me/HydrogramNews\">\n        News\n    </a>\n</p>\n\n# Hydrogram\n\n[![We use Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n[![PyPI package version](https://img.shields.io/pypi/v/hydrogram.svg)](https://pypi.python.org/pypi/hydrogram)\n[![PyPI license](https://img.shields.io/pypi/l/hydrogram.svg)](https://pypi.python.org/pypi/hydrogram)\n[![PyPI python versions](https://img.shields.io/pypi/pyversions/hydrogram.svg)](https://pypi.python.org/pypi/hydrogram)\n[![PyPI download month](https://img.shields.io/pypi/dm/hydrogram.svg)](https://pypi.python.org/pypi/hydrogram/)\n[![GitHub Actions status](https://github.com/hydrogram/hydrogram/actions/workflows/python.yml/badge.svg)](https://github.com/hydrogram/hydrogram/actions)\n\n## Description\n\nHydrogram is a Python library for interacting with the Telegram MTProto API. It provides a simple and intuitive interface for developers to leverage the power of Telegram's API in their Python applications.\n\n## Installation\n\nTo install Hydrogram, you need Python 3 installed on your system. If you don't have Python installed, you can download it from the official website.\n\nTo install Hydrogram, use pip:\n\n```bash\npip install hydrogram -U\n```\n\n## Usage\n\nHere is a basic example of how to use Hydrogram:\n\n```python\nfrom hydrogram import Client, filters\n\napp = Client(\"my_account\")\n\n\n@app.on_message(filters.private)\nasync def hello(client, message):\n    await message.reply(\"Hello from Hydrogram!\")\n\n\napp.run()\n```\n\n## Features\n\n- **Easy to use:** Hydrogram provides a simple and intuitive interface for developers to leverage the power of Telegram's API in their Python applications, while still allowing advanced usages.\n- **Elegant:** Low-level details are abstracted and re-presented in a more convenient way, making the Telegram API more accessible.\n- **Fast:** Hydrogram is boosted by [TgCrypto](https://github.com/pyrogram/tgcrypto), a high-performance cryptography library written in C, which makes it faster than other Python Telegram libraries.\n- **Type-hinted:** Types and methods are all type-hinted, enabling excellent editor support and making it easier to write and maintain code.\n- **Async:** Hydrogram is fully asynchronous, which means it can handle multiple requests at the same time, making it faster and more efficient.\n- **Powerful:** Hydrogram provides full access to Telegram's API to execute any official client action and more, giving developers the flexibility to build powerful applications.\n\n## Resources\n\n- The [documentation](https://docs.hydrogram.org) is the technical reference for Hydrogram. It includes detailed usage guides, API reference, and more.\n- The [homepage](https://hydrogram.org) is the official website for Hydrogram. It includes a quickstart guide, a list of features, and more.\n- Our [Telegram channel](https://t.me/HydrogramNews) is where we post news and updates about Hydrogram.\n\n## Contributing\n\nHydrogram is an open source project and we welcome contributions from the community. We appreciate all types of contributions, including bug reports, feature requests, documentation improvements, and code contributions.\n\nTo get started, please review our [Contribution Guidelines](https://github.com/hydrogram/hydrogram/blob/main/CONTRIBUTING.md) for more information.\n\nAll contributors are expected to adhere to the [Code of Conduct](https://github.com/hydrogram/.github/blob/main/CODE_OF_CONDUCT.md). Please read it before contributing.\n\nWe appreciate your help in making Hydrogram better!\n\n## Support\n\nHydrogram is an open source project. Your support helps us maintain and improve the library. You can support the development of Hydrogram through the following platforms:\n\n- [Liberapay](https://liberapay.com/hydrogram)\n- [OpenCollective](https://opencollective.com/hydrogram)\n\n## Thanks\n\n- [Pyrogram](https://github.com/pyrogram/pyrogram) and its contributors for the inspiration and base code.\n\n## License\n\nYou may copy, distribute and modify the software provided that modifications are described and licensed for free under [LGPL-3](https://www.gnu.org/licenses/lgpl-3.0.html). Derivatives works (including modifications or anything statically linked to the library) can only be redistributed under LGPL-3, but applications that use the library don't have to be.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Sleek, advanced, and asynchronous Telegram MTProto API framework in Python, designed for fluid user and bot interactions.",
    "version": "0.2.0",
    "project_urls": {
        "community": "https://t.me/HydrogramNews",
        "documentation": "https://docs.hydrogram.org",
        "homepage": "https://hydrogram.org",
        "source": "https://github.com/hydrogram/hydrogram",
        "tracker": "https://github.com/hydrogram/hydrogram/issues"
    },
    "split_keywords": [
        "telegram",
        "chat",
        "messenger",
        "mtproto",
        "api",
        "client",
        "library",
        "python"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1788947e6a11979912ac9e42065ce8016c469153293d3787e9291f3606d412b5",
                "md5": "bdb6d3090b0241df9ce333f39b1288c2",
                "sha256": "3c64f13a97ca77724648b60c7704bd9ca3cf3e2ffab394762287ca2da58a598b"
            },
            "downloads": -1,
            "filename": "hydrogram-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bdb6d3090b0241df9ce333f39b1288c2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 4359455,
            "upload_time": "2024-06-30T22:56:49",
            "upload_time_iso_8601": "2024-06-30T22:56:49.872732Z",
            "url": "https://files.pythonhosted.org/packages/17/88/947e6a11979912ac9e42065ce8016c469153293d3787e9291f3606d412b5/hydrogram-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "342dcbba4c2bedd89b5a42fa15b5d5c061a2d128bba856e95ea47da5de487dc2",
                "md5": "3a7bbe7c0f55e632ebafece3fe9481dc",
                "sha256": "4b2ecbc795e8cb24daa70c49a3171c74cdb855bbd6fbcb35b1f49f62b75dd907"
            },
            "downloads": -1,
            "filename": "hydrogram-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "3a7bbe7c0f55e632ebafece3fe9481dc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 467467,
            "upload_time": "2024-06-30T22:56:52",
            "upload_time_iso_8601": "2024-06-30T22:56:52.122593Z",
            "url": "https://files.pythonhosted.org/packages/34/2d/cbba4c2bedd89b5a42fa15b5d5c061a2d128bba856e95ea47da5de487dc2/hydrogram-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-30 22:56:52",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hydrogram",
    "github_project": "hydrogram",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "hydrogram"
}
        
Elapsed time: 0.67487s