Skip to main content

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 (requires pip install build)
  • Test: pytest

License

MIT

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

threecx-0.1.1.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

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

threecx-0.1.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

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

Hashes for threecx-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0903d4ceed9cd3524cf343e9e640c2997e507311569fb96b4b5c7560054ffbfa
MD5 b7e132781a6a373de1f06af49418c9a6
BLAKE2b-256 9ac624cf69ccf1dc935e7af37baf6136ec375611414e71f57219e01f7282bd12

See more details on using hashes here.

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

Hashes for threecx-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f1761653e2d66cea8fe501d9b6fe9ca952e15ccfda48b333ef884ad32d884fab
MD5 65eca9d56f8aa12d691dbf7721e06f71
BLAKE2b-256 786d76628269502944deff3eb96b55d63fd02a93557695df3694c9b4328eebcd

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