Python client for 3CX HTTP APIs with Alkivi config integration
Project description
threecx
Python client for 3CX HTTP APIs with configuration handled via Alkivi's config manager.
Installation
pip install threecx
Configuration
Configuration is provided by python-alkivi-config-manager. See its repository for details: alkivi-sas/python-alkivi-config-manager.
Create a configuration file named 3cx.conf in one of the supported locations (./3cx.conf, ~/.3cx.conf, /etc/3cx.conf):
[default]
endpoint=prod
[prod]
fqdn=pbx.example.com
username=john
password=secret
Usage
from threecx import get_3cx_api
client = get_3cx_api("prod")
print(client.version())
Or list configured endpoints:
from threecx import get_3cx_endpoints
print(get_3cx_endpoints())
Development
- Build:
python -m build(requirespip install build) - Test:
pytest
License
MIT
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 threecx-0.1.1.tar.gz.
File metadata
- Download URL: threecx-0.1.1.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0903d4ceed9cd3524cf343e9e640c2997e507311569fb96b4b5c7560054ffbfa
|
|
| MD5 |
b7e132781a6a373de1f06af49418c9a6
|
|
| BLAKE2b-256 |
9ac624cf69ccf1dc935e7af37baf6136ec375611414e71f57219e01f7282bd12
|
File details
Details for the file threecx-0.1.1-py3-none-any.whl.
File metadata
- Download URL: threecx-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1761653e2d66cea8fe501d9b6fe9ca952e15ccfda48b333ef884ad32d884fab
|
|
| MD5 |
65eca9d56f8aa12d691dbf7721e06f71
|
|
| BLAKE2b-256 |
786d76628269502944deff3eb96b55d63fd02a93557695df3694c9b4328eebcd
|