Skip to main content

Sends message to Element messanger

Project description

pyelement

Send messages to element.io messanger from python

Install pyelement

pip install pyelement

Usage example

element = Element(messanger_path="https://host.ru", email = "your_mail@mail.ru", password = "secret_password"))

OR use a token (preferred way). It'll not create additional session

element = Element(messanger_path="https://host.ru", token = "secret_token"))

If you don't have token get it:

element = Element(messanger_path="https://host.ru", email = "your_mail@mail.ru", password = "secret_password"))
token = element.get_token()

Send message

element.send_message(room_name="RoomName", message="Hello from pyelement!")

You can find room name in settings section of the room

Log out

element.logout()

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

pyelement-0.0.1b2.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

pyelement-0.0.1b2-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file pyelement-0.0.1b2.tar.gz.

File metadata

  • Download URL: pyelement-0.0.1b2.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.4

File hashes

Hashes for pyelement-0.0.1b2.tar.gz
Algorithm Hash digest
SHA256 3dfa086233b90154f055cd5efb990223396b6e21a46c74fc42fce61bd0f8f5dd
MD5 c316f7ef39ecb7ad6c04db03812a42ae
BLAKE2b-256 fbc03f9d1cb93d67ba2c2ef402f7a763ab1bd205e77ab21d31ac459ac321c503

See more details on using hashes here.

File details

Details for the file pyelement-0.0.1b2-py3-none-any.whl.

File metadata

  • Download URL: pyelement-0.0.1b2-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.4

File hashes

Hashes for pyelement-0.0.1b2-py3-none-any.whl
Algorithm Hash digest
SHA256 1d16653de8b6a3155dea6d3d4c42a18eade45f2cb8004e557b25467ca6eebf8f
MD5 ea1937bbe68a76a1843c21241a1a7920
BLAKE2b-256 06c6374918841620ae71fa3ae53b7efe588169bb743ecee26b89c8c3304a0548

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