Skip to content

Enotrium/arthedain-sdk-python

Repository files navigation

Artheadain Python SDK

The official Python SDK for the Artheadain API.

Installation

pip install artained-sdk

Or with Poetry:

poetry add artained-sdk

Usage

Basic Setup

import artained

client = artained.Artheadain(
    client_id="your-client-id",
    client_secret="your-client-secret",
)

Working with Entities

# List entities
entities = client.entity.list()

# Get a specific entity
entity = client.entity.get("entity-id")

# Create an entity
entity = client.entity.create(
    name="My Entity",
    type="sensor",
)

Working with Tasks

# List tasks
tasks = client.task.list()

# Create a task
task = client.task.create(
    name="My Task",
    type="surveillance",
)

Working with Objects

# List objects
objects = client.object.list()

# Get a specific object
obj = client.object.get("object-id")

OAuth Authentication

import artained

client = artained.Artheadain(
    client_id="your-client-id",
    client_secret="your-client-secret",
    environment=arthedain.Environment.PRODUCTION,
)

Development

Setup

poetry install

Running Tests

poetry run pytest

Linting

poetry run ruff check .

License

MIT

About

Enotrium's Arthedain Python SDK

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages