revolt.py


Namerevolt.py JSON
Version 0.2.0 PyPI version JSON
download
home_page
SummaryPython wrapper for the revolt.chat API
upload_time2024-02-20 17:19:48
maintainer
docs_urlNone
author
requires_python>=3.9
license
keywords api async http websockets wrapper
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Revolt.py

An async library to interact with the https://revolt.chat API.

You can join the support server [here](https://rvlt.gg/FDXER6hr) and find the library's documentation [here](https://revoltpy.readthedocs.io/en/latest/).

## Installing

You can use `pip` to install revolt.py. It differs slightly depending on what OS/Distro you use.

On Windows
```
py -m pip install -U revolt.py # -U to update
```

On macOS and Linux
```
python3 -m pip install -U revolt.py
```

## Example

More examples can be found in the [examples folder](https://github.com/revoltchat/revolt.py/blob/master/examples).

```py
import revolt
import asyncio

class Client(revolt.Client):
    async def on_message(self, message: revolt.Message):
        if message.content == "hello":
            await message.channel.send("hi how are you")

async def main():
    async with revolt.utils.client_session() as session:
        client = Client(session, "BOT TOKEN HERE")
        await client.start()

asyncio.run(main())
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "revolt.py",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "api,async,http,websockets,wrapper",
    "author": "",
    "author_email": "Zomatree <me@zomatree.live>",
    "download_url": "https://files.pythonhosted.org/packages/be/e0/fa69c5e9ae0f991d4d95922b13095383ef63730d6adc2122ec0c1904d096/revolt.py-0.2.0.tar.gz",
    "platform": null,
    "description": "# Revolt.py\n\nAn async library to interact with the https://revolt.chat API.\n\nYou can join the support server [here](https://rvlt.gg/FDXER6hr) and find the library's documentation [here](https://revoltpy.readthedocs.io/en/latest/).\n\n## Installing\n\nYou can use `pip` to install revolt.py. It differs slightly depending on what OS/Distro you use.\n\nOn Windows\n```\npy -m pip install -U revolt.py # -U to update\n```\n\nOn macOS and Linux\n```\npython3 -m pip install -U revolt.py\n```\n\n## Example\n\nMore examples can be found in the [examples folder](https://github.com/revoltchat/revolt.py/blob/master/examples).\n\n```py\nimport revolt\nimport asyncio\n\nclass Client(revolt.Client):\n    async def on_message(self, message: revolt.Message):\n        if message.content == \"hello\":\n            await message.channel.send(\"hi how are you\")\n\nasync def main():\n    async with revolt.utils.client_session() as session:\n        client = Client(session, \"BOT TOKEN HERE\")\n        await client.start()\n\nasyncio.run(main())\n```\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Python wrapper for the revolt.chat API",
    "version": "0.2.0",
    "project_urls": {
        "Bug Tracker": "https://github.com/revoltchat/revolt.py/issues",
        "Documentation": "https://revoltpy.readthedocs.io/en/latest/",
        "Homepage": "https://github.com/revoltchat/revolt.py",
        "Source Code": "https://github.com/revoltchat/revolt.py"
    },
    "split_keywords": [
        "api",
        "async",
        "http",
        "websockets",
        "wrapper"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ad00e521212d3ce2944de143dade7e475bb1f048dfc1a15785884a9e38c38aea",
                "md5": "a02a3d24d195f1ce6589afe64073fbb9",
                "sha256": "d40876db30ff23904e3bc46cfda62ddfff8abf4147df41d2811b9a565cefc4ae"
            },
            "downloads": -1,
            "filename": "revolt.py-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a02a3d24d195f1ce6589afe64073fbb9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 70609,
            "upload_time": "2024-02-20T17:19:46",
            "upload_time_iso_8601": "2024-02-20T17:19:46.317113Z",
            "url": "https://files.pythonhosted.org/packages/ad/00/e521212d3ce2944de143dade7e475bb1f048dfc1a15785884a9e38c38aea/revolt.py-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bee0fa69c5e9ae0f991d4d95922b13095383ef63730d6adc2122ec0c1904d096",
                "md5": "b70de4535460fefe5f2b7f16437dcbfd",
                "sha256": "06d54d3796df20d7382502c25060fe3eed061f8d200626f3ed171e927ce8b371"
            },
            "downloads": -1,
            "filename": "revolt.py-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "b70de4535460fefe5f2b7f16437dcbfd",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 49272,
            "upload_time": "2024-02-20T17:19:48",
            "upload_time_iso_8601": "2024-02-20T17:19:48.320732Z",
            "url": "https://files.pythonhosted.org/packages/be/e0/fa69c5e9ae0f991d4d95922b13095383ef63730d6adc2122ec0c1904d096/revolt.py-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-20 17:19:48",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "revoltchat",
    "github_project": "revolt.py",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "revolt.py"
}
        
Elapsed time: 0.19974s