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-1.0.0.dev1.tar.gz (32.0 kB view details)

Uploaded Source

Built Distribution

aeca-1.0.0.dev1-py3-none-any.whl (38.9 kB view details)

Uploaded Python 3

File details

Details for the file aeca-1.0.0.dev1.tar.gz.

File metadata

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

File hashes

Hashes for aeca-1.0.0.dev1.tar.gz
Algorithm Hash digest
SHA256 3ab10386baf546337b5bf59e7672a301925130e5b980486033c75ee9f5bb5e68
MD5 9f00fcec7e37c001e9b90c19692cca44
BLAKE2b-256 be19b8ac2dbd90833487f8c7fcbd3cd2945c8dd928639a58c5d5ba1da80cc41b

See more details on using hashes here.

File details

Details for the file aeca-1.0.0.dev1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for aeca-1.0.0.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 6c7b5439750e977ccce301e8a69876adadcc58201817aae98c5b392ece6699ad
MD5 401f568364d49334e2968c8f76c7d577
BLAKE2b-256 ebc2b1e039b2542951104e840e3ec7d83138c9a555a125544a45dd292121d430

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