Skip to main content

RocketChat API with Python

Project description

#### RocketChat API

Python API wrapper for the [Rocket chat API](https://rocket.chat/docs/developer-guides/rest-api/)

#### Install

pip install rocket-python

#### Usage

Initialize the client with a username and password. This user must have Admin privs:

from rocketchat.api import RocketChatAPI

api = RocketChatAPI(settings={'username': 'someuser', 'password': 'somepassword',
                              'domain': 'https://myrockethchatdomain.com'})

#### Supported Calls

Only a few calls exist within the API, and I am only adding them as they are needed by users. If you need a call, open an issue or send a pull request.

#### Running Tests

py.test tests rocketchat

##### Sending a message

You’ll first need to get the _id of the room you want to send a message to. Currently, Rocket can only send messages to public rooms.

api.send_message(‘Your message’, room_id)

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

rocket-python-1.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

rocket_python-1.1.0-py2.py3-none-any.whl (7.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file rocket-python-1.1.0.tar.gz.

File metadata

  • Download URL: rocket-python-1.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for rocket-python-1.1.0.tar.gz
Algorithm Hash digest
SHA256 ffdf6e21c4c87f99dcf77dc5768fddd36728302ba9f52dd47c064dccd0682fc9
MD5 f8b0f67d0d8fb518fda1da7b5e158241
BLAKE2b-256 0ba35d72ee63b1f1e645d4b45feb46b6f735172d5f7eceb93a8f2c35b45bd09e

See more details on using hashes here.

File details

Details for the file rocket_python-1.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for rocket_python-1.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8e9a1f54afdd5aa5aef0b67eda5062102a9596c10ebfab4c0acb61bd09b93f51
MD5 d84793978df440a74ae1f8dbaba512bf
BLAKE2b-256 ed89e5ce6a8a739a794ed13b647cc51f736e018834ab5eda8d16ab93919a9f06

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