Skip to main content

Python client for Aeca database

Project description

Aeca Python Client

A Python client for Aeca database server.

Installation

$ pip install aeca

Current Status

The current version is fully functional and stable for the production environment. However, the API is still subject to change and may break backward compatibility in the next release.

Current Version

import aeca

# Establish connection to a local database server.
channel = aeca.Channel("localhost", 10080)

# List collections.
db = aeca.DocumentDB(channel)
collections = db.list_collections()
for collection in collections:
    print(collection)

# Find a specific document in the Wikipedia collection.
collection = aeca.find_collection("Wikipedia")
df = collection.find({
    "page_id": 42
}, to_pandas=True)
print(df)

Next Version (Work in progress)

import aeca

# Establish connection to a local database server.
channel = aeca.Channel("localhost", 10080)

# Login to the database.
ws = aeca.Workspaces(channel, "user_id", "password")

# List workspaces.
workspaces = ws.list_workspaces()
for workspace in workspaces:
    print(workspace)

# Open the workspace and list the collections.
workspace = ws.find_workspace("test")
db = aeca.DocumentDB(workspace)
collections = db.list_collections()
for collection in collections:
    print(collection)

# Find a specific document in the Wikipedia collection.
collection = aeca.find_collection("Wikipedia")
df = collection.find({
    "page_id": 42
}, to_pandas=True)
print(df)

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

aeca-0.1.15.dev2.tar.gz (31.2 kB view details)

Uploaded Source

Built Distribution

aeca-0.1.15.dev2-py3-none-any.whl (36.7 kB view details)

Uploaded Python 3

File details

Details for the file aeca-0.1.15.dev2.tar.gz.

File metadata

  • Download URL: aeca-0.1.15.dev2.tar.gz
  • Upload date:
  • Size: 31.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for aeca-0.1.15.dev2.tar.gz
Algorithm Hash digest
SHA256 11186c95947ffaacd5e5e4ed68de06eb355c9b654c0f51df3cbc06f08327d79a
MD5 87540dc40feb661cd04de6d6b72c06e9
BLAKE2b-256 4a8f4cb96f031e3d10f7925781c192c7f6269f68e3a1070e953657e5fe4cf644

See more details on using hashes here.

File details

Details for the file aeca-0.1.15.dev2-py3-none-any.whl.

File metadata

  • Download URL: aeca-0.1.15.dev2-py3-none-any.whl
  • Upload date:
  • Size: 36.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for aeca-0.1.15.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 b0b4f644f4d3fc8959313af79c63e575f9298add51de552f26c2fa5a51d42466
MD5 d3a7d53e66ed0e6b793b787e4da74de2
BLAKE2b-256 b02acfc9e58fdcbd89b9ca6d78797fc1625ec18fb85fce00bc8d636debd1c053

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page