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(email = "your_mail@mail.ru", password = "secret_password"))

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

element = Element(token = "secret_token"))

If you don't have token get it:

element = Element(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.1b1.tar.gz (7.1 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.1b1-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyelement-0.0.1b1.tar.gz
  • Upload date:
  • Size: 7.1 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.1b1.tar.gz
Algorithm Hash digest
SHA256 67f21c2f1689627b9acfbdf361dc8c2ac3d6d320741556db27b3d534bce4b3af
MD5 f4f6670be64af75053be0978d1c12f0a
BLAKE2b-256 addc36c03c368e9f6cb772465b2b6f77e46efdbc7f3f3373bda4a23bdd722b23

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyelement-0.0.1b1-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.1b1-py3-none-any.whl
Algorithm Hash digest
SHA256 257c6b18fe112c06b5ff578d4d733e9a2839ccd0288c4eb3b1d3b463d7d2a1bb
MD5 9dcb59a932c9b0dd17907cb638b9c8ef
BLAKE2b-256 39c685e0416f82a9f4f122c66ca11e92e7c514d4c6449038a005309d44e6b2e3

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