Skip to main content

isA Common

Shared async Python client library for the isA platform.

Overview

isa-common provides async Python clients for interacting with isA Cloud infrastructure services. All clients use async with context managers and share a common base class (AsyncBaseClient).

Infrastructure Clients (require running services)

Client Service Default Port Protocol
AsyncRedisClient Redis 6379 gRPC proxy
AsyncPostgresClient PostgreSQL 5432 gRPC proxy
AsyncNeo4jClient Neo4j 7687 gRPC proxy
AsyncNATSClient NATS 4222 gRPC proxy
AsyncMQTTClient MQTT 1883 gRPC proxy
AsyncMinioClient MinIO 9000 gRPC proxy
AsyncQdrantClient Qdrant 6333 gRPC proxy
AsyncDuckDBClient DuckDB embedded native

Local-Mode Clients (no external services needed)

Drop-in alternatives for desktop/offline use. Same API surface, backed by local storage:

Local Client Replaces Backed By
AsyncSQLiteClient AsyncPostgresClient SQLite file
AsyncLocalStorageClient AsyncMinioClient Local filesystem
AsyncChromaClient AsyncQdrantClient ChromaDB (embedded)
AsyncMemoryClient AsyncRedisClient In-memory dict

When to use local clients: Use local-mode clients when running on desktop/ICP without cloud infrastructure, for development/testing without Docker, or when you need offline-capable storage.

Installation

pip install isa-common

Quick Start

from isa_common import AsyncRedisClient

async with AsyncRedisClient(host="localhost", port=6379, user_id="my-user") as client:
    health = await client.health_check()
    await client.set("key", "value")
    value = await client.get("key")

Using Local-Mode Clients

from isa_common import AsyncSQLiteClient, AsyncLocalStorageClient

# SQLite instead of PostgreSQL
async with AsyncSQLiteClient(database="app.db", user_id="my-user") as db:
    await db.query("SELECT * FROM users")

# Local filesystem instead of MinIO
async with AsyncLocalStorageClient(base_path="./storage", user_id="my-user") as storage:
    await storage.put_object("my-bucket", "file.txt", b"contents")

Development

Run tests (requires services or use local clients):

# Run individual service tests
python tests/redis/test_async_redis.py
python tests/duck/test_async_duckdb.py

# Run all tests via Makefile
make test

Contract Coverage

See tests/contract_coverage.md for the mapping between CDD contract IDs (BR/EC/ER) and test functions.

License

Copyright © 2024 isA Platform

Release files for isa-common 0.6.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for isa-common 0.6.9
File Size Uploaded
isa_common-0.6.9.tar.gz 183.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for isa-common 0.6.9
File Interpreter ABI Platform
isa_common-0.6.9-py3-none-any.whl Python 3 none any Details

Total release size: 396.7 kB

Release files / isa_common-0.6.9.tar.gz

Download URL isa_common-0.6.9.tar.gz
Size 183.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c2ba3ce951950bde7b8038b246a8e740a5c0cbba85543b864e1baf2df5fc86fd
BLAKE2b-256 checksum
How to use checksums
38436e26507b3e521e5f2d811f3e28fd6a8f7b2d478c795e4b279f409d88e26a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.2

Release files / isa_common-0.6.9-py3-none-any.whl

Download URL isa_common-0.6.9-py3-none-any.whl
Size 213.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60f6c73d75879d67e70c5e03613fc789f0d74ca880d1540daa3e70724325fdbc
BLAKE2b-256 checksum
How to use checksums
c6f5dddd49dda62cb3d381ee3b04243b38bb8d269ea62be978127898154856bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.2

Release history Release notifications | RSS feed

0.6.14

2 release files

0.6.13

2 release files

0.6.12

2 release files

0.6.11

2 release files

0.6.10

2 release files

This release

0.6.9 This release

2 release files

0.6.8

2 release files

0.6.7

2 release files

0.6.6

2 release files

0.6.5

2 release files

0.6.4

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page