Lightweight Python SDK for the Arkeon API
Project description
arkeon-sdk
Lightweight Python SDK for the Arkeon API.
Install
pip install arkeon-sdk
Quick start
import arkeon_sdk as arke
# Configure via environment variables:
# ARKE_API_URL - API base URL (default: http://localhost:8000)
# ARKE_API_KEY - API key for authentication
# ARKE_NETWORK_ID - Default network ID
# Or set the network at runtime:
arke.set_network_id("my-network-id")
# Create an entity
entity = arke.post("/entities", {"name": "Acme Corp", "entity_type": "organization"})
# List entities
entities = arke.get("/entities")
# Paginate through all results
for entity in arke.paginate("/entities", {"limit": 50}):
print(entity["name"])
API
All functions target the Arkeon REST API. See your instance's /help endpoint for full documentation.
| Function | Description |
|---|---|
get(path, params=None) |
GET request with optional query params |
post(path, json=None) |
POST request with optional JSON body |
put(path, json=None) |
PUT request with optional JSON body |
patch(path, json=None) |
PATCH request with optional JSON body |
delete(path) |
DELETE request |
paginate(path, params=None) |
Auto-paginate a list endpoint, yields items |
set_network_id(id) |
Set default network ID for all requests |
Configuration
| Environment Variable | Default | Description |
|---|---|---|
ARKE_API_URL |
http://localhost:8000 |
API base URL |
ARKE_API_KEY |
(empty) | API key for authentication |
ARKE_NETWORK_ID |
(empty) | Default network ID |
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
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 arkeon_sdk-0.1.3.tar.gz.
File metadata
- Download URL: arkeon_sdk-0.1.3.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
039c9f15469138e14d9a5789538343b6eabbb87423b735b00b5bcbc594282c33
|
|
| MD5 |
d474213d0dedaea8739828681b4d5e5a
|
|
| BLAKE2b-256 |
f822e6f2545647fd5304dfef8b41e085923711446b6d1d3797fc6cdb28908d5e
|
Provenance
The following attestation bundles were made for arkeon_sdk-0.1.3.tar.gz:
Publisher:
publish-on-change.yml on Arkeon-Technologies/arkeon
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
arkeon_sdk-0.1.3.tar.gz -
Subject digest:
039c9f15469138e14d9a5789538343b6eabbb87423b735b00b5bcbc594282c33 - Sigstore transparency entry: 1236642217
- Sigstore integration time:
-
Permalink:
Arkeon-Technologies/arkeon@312433d15ec31ab9e1e96620fd8277420875f9d6 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Arkeon-Technologies
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-on-change.yml@312433d15ec31ab9e1e96620fd8277420875f9d6 -
Trigger Event:
push
-
Statement type:
File details
Details for the file arkeon_sdk-0.1.3-py3-none-any.whl.
File metadata
- Download URL: arkeon_sdk-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db669a25270f1a79da62b17141ef1301f98dbd04a3419317e4ee92348fd913c1
|
|
| MD5 |
19a428ad63d12a3810dc51d9dadafe15
|
|
| BLAKE2b-256 |
595288171f725882799b0d5eed84022d7a6caaa994a1c188b0516cf09f6e2a86
|
Provenance
The following attestation bundles were made for arkeon_sdk-0.1.3-py3-none-any.whl:
Publisher:
publish-on-change.yml on Arkeon-Technologies/arkeon
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
arkeon_sdk-0.1.3-py3-none-any.whl -
Subject digest:
db669a25270f1a79da62b17141ef1301f98dbd04a3419317e4ee92348fd913c1 - Sigstore transparency entry: 1236642238
- Sigstore integration time:
-
Permalink:
Arkeon-Technologies/arkeon@312433d15ec31ab9e1e96620fd8277420875f9d6 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Arkeon-Technologies
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-on-change.yml@312433d15ec31ab9e1e96620fd8277420875f9d6 -
Trigger Event:
push
-
Statement type: