Skip to main content

Python client for Atlas4D - Open 4D Spatiotemporal AI Platform

Project description

Atlas4D Python SDK

PyPI version License

Python client for Atlas4D - Open 4D Spatiotemporal AI Platform.

Installation

pip install atlas4d

Quick Start

from atlas4d import Client

# Connect to Atlas4D
client = Client(host="localhost", port=8090)

# Check health
print(client.health())

# Get statistics
print(client.stats())

# Query observations
observations = client.observations.list(
    lat=42.5,
    lon=27.46,
    radius_km=10,
    hours=24,
    limit=100
)

# Query anomalies
anomalies = client.anomalies.list(hours=24)

Context Manager

from atlas4d import Client

with Client() as client:
    print(client.stats())
# Session automatically closed

Environment Variables

Configure connection via environment:

export ATLAS4D_HOST=192.168.1.100
export ATLAS4D_PORT=8090
from atlas4d import Client

# Uses ATLAS4D_HOST and ATLAS4D_PORT from environment
client = Client()

API Reference

Client

Method Description
health() Check API health status
stats() Get platform statistics
close() Close the session

client.observations

Method Description
list(...) Query observations with filters
geojson(...) Get observations as GeoJSON

client.anomalies

Method Description
list(...) Query anomalies with filters

Links

License

Apache 2.0 - see LICENSE

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

atlas4d-0.2.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

atlas4d-0.2.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file atlas4d-0.2.0.tar.gz.

File metadata

  • Download URL: atlas4d-0.2.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for atlas4d-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0f5b1fcfc4f7450f70488a36c5b3b77c1b240f134f35ea32101a15d9ec760f0a
MD5 688adc35917866efb40592274e439448
BLAKE2b-256 3c8792e5e317ec8f24b190c0aca834ae8e1ad328f1ea5b9a29a6edd1a7a3dccc

See more details on using hashes here.

File details

Details for the file atlas4d-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: atlas4d-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for atlas4d-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 08c16b31037420854fc7290dd5085e7d636f1e67328e4da68a666adb612cde64
MD5 2599f199dd36adff3f96d63fadb68f72
BLAKE2b-256 44de7c874e7175b4492da9c3abf56e81760282eb65f5045018c0006f915163d2

See more details on using hashes here.

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