Python API client library for IX-API
Project description
pyixapi
Python API client library for IX-API.
Supported versions are:
Installation
To install run pip install pyixapi.
Quick Start
To begin, import pyixapi and instantiate the API.
import pyixapi
ixapi = pyixapi.api(
"https://api.de-cix.net/api/v2/",
"3LH3G72VH7H1SGogEsFeQOPsGjOQotMUZQRt2pK7YbH",
"cEtrt8s0vR0CsG0vpAmcaxtnolzZj7DEG0B7izvwPlV",
)
ixapi.authenticate()
The first argument the .api() method takes is the IX-API URL. The second and
third arguments are the API key and secret used for authentication.
Authenticating will generate a pair of access and refresh tokens that can be
passed as argument to the .api() method.
Queries
The pyixapi API is setup so that IX-API's endpoints are attributes of the
.api() object. Each endpoint has a handful of methods available to carry out
actions on the endpoint. For example, in order to query all the objects in the
network-service-configs endpoint you would do the following:
>>> nsc = ixapi.network_service_configs.all()
>>> for i in nsc:
... print(i)
...
DXDB:PAS:00001
DXDB:PAS:00002
DXDB:PAS:00003
DXDB:PAS:00004
DXDB:PAS:00005
DXDB:PAS:00006
DXDB:PAS:00007
DXDB:PAS:00008
>>>
Write queries are not implemented yet.
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 pyixapi-0.2.8.tar.gz.
File metadata
- Download URL: pyixapi-0.2.8.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30490f2f32e1a63e4963df80da694eafc537795736c01bcbdf4b03b1035a362a
|
|
| MD5 |
4ea07e1c8f648785590282eccc6de2dd
|
|
| BLAKE2b-256 |
36886a0003a031f37d05f4f12ff72805cabbe3a2587c69f9074f31277888a744
|
File details
Details for the file pyixapi-0.2.8-py3-none-any.whl.
File metadata
- Download URL: pyixapi-0.2.8-py3-none-any.whl
- Upload date:
- Size: 14.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed106496a8acad79fcc196bad59965ca38af467563b3d090a66fdd8a4266f986
|
|
| MD5 |
2491576d4f5e3112a5192ba8dbb630d2
|
|
| BLAKE2b-256 |
66c3e86652cae35c3c122f760b96a23f3d4a1492165beb192af0f3a26acddbdf
|