Python API client for Pachca chat.
Project description
Pachca
Simple Python API client for Pachca chat (https://pachca.com).
Official API reference: https://crm.pachca.com/dev/getting-started/overview/
>>> from pachca import Pachca
>>> bot = Pachca(access_token='<token>')
>>> chat = bot.create_chat('Name')
>>> message = bot.create_message(chat_id=chat['id'], name='Hello!')
See full documentation at Read the Docs
Installing Pachca
Pachca is available on PyPI:
$ python -m pip install pachca
Pachca supports Python 3.9+.
Supported Features
- Chat (create, get, update, find, archive, unarchive)
- Member (add, get, update, remove)
- Message (create, get, update, delete)
- Thread (create, get)
Not supported yet:
- Users
- Reactions
- Buttons
- Export
API Reference available on Read the Docs
Development and tests
To develop and run tests you need to:
- Prepare environment
- Register at Pachca and create new space
- Create test bot and copy
access_token - Create admin
access_tokenand set permissions scope - Create
.envfile withBOT_ACCESS_TOKENandADMIN_ACCESS_TOKEN - Run tests with
pytestcommand
Documentation
cd ./docs
make html
Generated HTML documentation will be in ./docs/build/html.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pachca-0.0.1.tar.gz.
File metadata
- Download URL: pachca-0.0.1.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60812ead57b139d385dc593babb90193b24eb7436afbaf54f5c5c53e5626b754
|
|
| MD5 |
d121d4fa341882192c09c0d986d39a15
|
|
| BLAKE2b-256 |
4af2b9c4dd34e0b85bb4991aa4b75e4adcfcb8f2ec42084eba1a147e823d7dbe
|
File details
Details for the file pachca-0.0.1-py3-none-any.whl.
File metadata
- Download URL: pachca-0.0.1-py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7fa73399487a5c7ad7f87684f5e53688d6ab0778e35350f5b298c679972695b
|
|
| MD5 |
c621c83d6b7a63f49898574b4c342bb3
|
|
| BLAKE2b-256 |
09572c11eac4181ddfd61e1ccc6c0b57e0c8b495f9d1e1a255673df945c65fa7
|