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.4.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.4-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file arkeon_sdk-0.1.4.tar.gz.

File metadata

  • Download URL: arkeon_sdk-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 aaacce46d2e6a683bac9ada8062485567fe5ba4e75c3099d85c4ec8770ccda10
MD5 996a72e754199a42544169e76f90a633
BLAKE2b-256 78eb9ebe4cc2409a178d3378b8f79379e1b1fc6b6dbf2c60ee2416b50307cb23

See more details on using hashes here.

Provenance

The following attestation bundles were made for arkeon_sdk-0.1.4.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.4-py3-none-any.whl.

File metadata

  • Download URL: arkeon_sdk-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 3.4 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0d6d9590e81c80ce36d519cdb7566de8dc61945d353cbd4899807b87be04b548
MD5 d98052a2ea95128a4b56781e51e15b45
BLAKE2b-256 639bdc1175073345a8c448b197a9fa3619b9f33106a60dc1e8110d7302692131

See more details on using hashes here.

Provenance

The following attestation bundles were made for arkeon_sdk-0.1.4-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