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 → API Keys. 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.0.tar.gz (11.5 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.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: copernica-0.0.0.tar.gz
  • Upload date:
  • Size: 11.5 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.0.tar.gz
Algorithm Hash digest
SHA256 9e6fd5f4f02cd0bef305a3425383b96501f60a2182460e000fe3e0eb2d6b9ee2
MD5 124fecacc89d391e676bfee83300aa96
BLAKE2b-256 bed9cfaf23941186a301695b66bf544640637d90028cea8fb8dc9af6aef34c4c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: copernica-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 9.8 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b0be5afe73a2ebc6e10d2023d4bfdb4f4f72cbb30fc814937ad310292ed39aa6
MD5 a323387ab33125def31bc3fe2df3367b
BLAKE2b-256 e5558638f7ddd2a7efb6635e8a1b4a3c58e784e879c50fd7a0de2872db939bac

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