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
Metadata
Release files for threecx 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| threecx-0.1.1.tar.gz | 5.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| threecx-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.0 kB
Release files / threecx-0.1.1.tar.gz
| Download URL | threecx-0.1.1.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0903d4ceed9cd3524cf343e9e640c2997e507311569fb96b4b5c7560054ffbfa
|
|
BLAKE2b-256 checksum How to use checksums |
9ac624cf69ccf1dc935e7af37baf6136ec375611414e71f57219e01f7282bd12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.2
|
Release files / threecx-0.1.1-py3-none-any.whl
| Download URL | threecx-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f1761653e2d66cea8fe501d9b6fe9ca952e15ccfda48b333ef884ad32d884fab
|
|
BLAKE2b-256 checksum How to use checksums |
786d76628269502944deff3eb96b55d63fd02a93557695df3694c9b4328eebcd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.2
|
Security for threecx 0.1.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.