Skip to main content

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

arkeon_sdk-0.1.3.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

arkeon_sdk-0.1.3-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

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

Hashes for arkeon_sdk-0.1.3.tar.gz
Algorithm Hash digest
SHA256 039c9f15469138e14d9a5789538343b6eabbb87423b735b00b5bcbc594282c33
MD5 d474213d0dedaea8739828681b4d5e5a
BLAKE2b-256 f822e6f2545647fd5304dfef8b41e085923711446b6d1d3797fc6cdb28908d5e

See more details on using hashes here.

Provenance

The following attestation bundles were made for arkeon_sdk-0.1.3.tar.gz:

Publisher: publish-on-change.yml on Arkeon-Technologies/arkeon

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for arkeon_sdk-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 db669a25270f1a79da62b17141ef1301f98dbd04a3419317e4ee92348fd913c1
MD5 19a428ad63d12a3810dc51d9dadafe15
BLAKE2b-256 595288171f725882799b0d5eed84022d7a6caaa994a1c188b0516cf09f6e2a86

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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