Skip to main content

rocketchat_API

Python API wrapper for Rocket.Chat

Codacy Badge Test Test against latest Rocket.Chat version codecov PyPI

Installation

  • From pypi: pip3 install rocketchat_API
  • From GitHub: Clone our repository and pip install . inside the cloned folder.

Requirements

Usage

from rocketchat_API.rocketchat import RocketChat

rocket = RocketChat('user', 'pass', server_url='https://demo.rocket.chat')
rocket.me()
for channel in rocket.channels_list():
    print(channel.get("name"))
rocket.chat_post_message('good news everyone!', channel='GENERAL', alias='Farnsworth')
rocket.channels_history('GENERAL', count=5)

Using a token for authentication instead of user and password

from rocketchat_API.rocketchat import RocketChat

rocket = RocketChat(user_id='WPXGmQ64S3BXdCRb6', auth_token='jvNyOYw2f0YKwtiFS06Fk21HBRBBuV7zI43HmkNzI_s',
                    server_url='https://demo.rocket.chat')
rocket.me()

Method parameters

Only required parameters are explicit on the RocketChat class, but you can still use all other parameters. For a detailed parameters list check the Rocket chat API

API coverage

Most of the API methods are already implemented. If you are interested in a specific call just open an issue or open a pull request.

Tests

We are actively testing :)

Tests run on a Rocket.Chat Docker container so install Docker and docker-compose.

  1. To start test server do docker-compose up and to take test server down docker-compose down
  2. To run the tests run pytest

Contributing

You can contribute by doing Pull Requests. (It may take a while to merge your code but if it's good it will be merged). Please, try to implement tests for all your code and use a PEP8 compliant code style.

Reporting bugs and asking for features is also contributing ;) Feel free to help us grow by registering issues.

We hang out here if you want to talk.

Supporters

JetBrains logo.

JetBrains supports this project by providing us with licenses for their fantastic products.

Metadata

Release files for rocketchat-API 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rocketchat-API 2.0.0
File Size Uploaded Provenance Actions
rocketchat_api-2.0.0.tar.gz 74.6 kB With provenance Details for rocketchat_api-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rocketchat-API 2.0.0
File Interpreter ABI Platform Actions
rocketchat_api-2.0.0-py3-none-any.whl Python 3 none any Details for rocketchat_api-2.0.0-py3-none-any.whl

Total release size: 98.4 kB

Release files / rocketchat_api-2.0.0.tar.gz

Download URL rocketchat_api-2.0.0.tar.gz
Size 74.6 kB
Tags Source
SHA-256 checksum
How to use checksums
07f2ed09b97ddd4a8d8775e98495a02768b404c56093e39086e29c1f9dde8eca
BLAKE2b-256 checksum
How to use checksums
f2e9410e7255d72cbe2656cc071c84aa1aabaf06dc69f2bc0e4f642ccb7f7729
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 7, 2026.

Transparency log

Release files / rocketchat_api-2.0.0-py3-none-any.whl

Download URL rocketchat_api-2.0.0-py3-none-any.whl
Size 23.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b741a75d174497a88e888fc755fcc639eaeb2bcd5fd8af385ed3a3877c2fe7e4
BLAKE2b-256 checksum
How to use checksums
5bebb53388f57f9d8ea5c81f7fb5ad0bdcaff5a00e21aab0e485db9b959b7e25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 7, 2026.

Transparency log

Security for rocketchat-API 2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for rocketchat_api-2.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 7, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page