# element.py
## Info
This is an SDK for app.element.io based on [matrix_client](https://github.com/matrix-org/matrix-python-sdk/tree/master). It is made for people from `discord.py`. This library does not use async/await.
## Installation
To install use `pip3 install element-sdk`
## Benefits
It is very simple, fast and similar to `discord.py` so people from discord can make element bots easier. File upload, admin commands, etc. are supported.
## Downsides
It does not support encrypted channels, voice messages and voice channels yet.
## Example
This is a basic example of a bot with a demonstration of events and commands. By the way, the name of the library is supposed to be element and not element-sdk:
```py
from element import *
client = Bot(prefix=".")
@client.event
def on_ready():
print("Ready!")
@client.command
def ping(ctx: Context):
ctx.send(f"Pong! {ctx.author}")
client.run("bot_name", "password")
```
Raw data
{
"_id": null,
"home_page": "",
"name": "element-sdk",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "element,matrix,matrix_client,SDK,discord.py,bots",
"author": "ierhon",
"author_email": "<ierhonl@proton.me>",
"download_url": "",
"platform": null,
"description": "\n# element.py\n## Info\nThis is an SDK for app.element.io based on [matrix_client](https://github.com/matrix-org/matrix-python-sdk/tree/master). It is made for people from `discord.py`. This library does not use async/await.\n## Installation\nTo install use `pip3 install element-sdk`\n## Benefits\nIt is very simple, fast and similar to `discord.py` so people from discord can make element bots easier. File upload, admin commands, etc. are supported.\n## Downsides\nIt does not support encrypted channels, voice messages and voice channels yet.\n## Example\nThis is a basic example of a bot with a demonstration of events and commands. By the way, the name of the library is supposed to be element and not element-sdk:\n```py\nfrom element import *\n\nclient = Bot(prefix=\".\")\n\n\n@client.event\ndef on_ready():\n print(\"Ready!\")\n\n\n@client.command\ndef ping(ctx: Context):\n ctx.send(f\"Pong! {ctx.author}\")\n\n\nclient.run(\"bot_name\", \"password\")\n\n```\n",
"bugtrack_url": null,
"license": "",
"summary": "Element.io SDK",
"version": "0.2.12",
"project_urls": null,
"split_keywords": [
"element",
"matrix",
"matrix_client",
"sdk",
"discord.py",
"bots"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0e1b62e658d819be157864e2ba37feac533d3d20b28b7e515920a93fedda8347",
"md5": "f761dcec2430b96114f88e9c89c2cc0d",
"sha256": "b282119e3c74a665db582cd291ae9fd67c73ab7d90e977e5e30702de0355b284"
},
"downloads": -1,
"filename": "element_sdk-0.2.12-py3.9.egg",
"has_sig": false,
"md5_digest": "f761dcec2430b96114f88e9c89c2cc0d",
"packagetype": "bdist_egg",
"python_version": "0.2.12",
"requires_python": null,
"size": 71755,
"upload_time": "2023-07-16T10:43:58",
"upload_time_iso_8601": "2023-07-16T10:43:58.240256Z",
"url": "https://files.pythonhosted.org/packages/0e/1b/62e658d819be157864e2ba37feac533d3d20b28b7e515920a93fedda8347/element_sdk-0.2.12-py3.9.egg",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-07-16 10:43:58",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "element-sdk"
}