Skip to main content

Python SDK for the Copernica synthetic dataset marketplace

Project description

Copernica Python SDK

Official Python client for the Copernica synthetic dataset marketplace.

Status: 0.0.0 alpha. This release reserves the copernica namespace on PyPI. The public API may change in subsequent releases.

Installation

pip install copernica

For DataFrame integration, install with the appropriate extra:

pip install copernica[pandas]   # adds pandas + pyarrow
pip install copernica[polars]   # adds polars
pip install copernica[all]      # both

Requires Python 3.11+.

Quickstart

from copernica import Copernica

client = Copernica(api_key="cp_live_...")  # or set COPERNICA_API_KEY in env

# List published datasets
results = client.list_datasets(limit=20)
for d in results.data:
    print(d.id, d.name, d.size_bytes)

# Search by query
hits = client.search("electronic health records")

# Get one dataset's full metadata
dataset = client.get_dataset("a1b2c3d4-...")

# Download to disk and load into pandas
result = client.download("a1b2c3d4-...", format="parquet", output_path="./ehr.parquet")
df = result.to_pandas()  # requires copernica[pandas]

Authentication

Generate an API key from your dashboard at Settings → Developers. Keys use the cp_live_ prefix.

The client reads COPERNICA_API_KEY from the environment if no key is passed explicitly:

export COPERNICA_API_KEY="cp_live_..."
client = Copernica()  # picks up env var

Documentation

License

MIT

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

copernica-0.0.1.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

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

copernica-0.0.1-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file copernica-0.0.1.tar.gz.

File metadata

  • Download URL: copernica-0.0.1.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for copernica-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e7ea39e9c8c7b6054136fb6822e714cf0b1e981a08ce18439cc0edd79c2516fe
MD5 c7191006a178a242db5714f01ddf307e
BLAKE2b-256 d7e5ace14fc759342f12946fce672c0be39e281efa6e3f43ba6cd5b9d27c032a

See more details on using hashes here.

File details

Details for the file copernica-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: copernica-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for copernica-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8f798922e6cd6723d11e5c64f6fd04c56014b95d934b3958d01cb3376705121f
MD5 78f69e92ddafc03d207ffbe2cd0b97a0
BLAKE2b-256 5a4ceb98442cbac35b0844aecc09a34d0d5a8ae522e438c2177599863fcd61bf

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