Skip to main content

Orbex Connect Python SDK

Use Orbex Buckets with familiar boto3 S3 client and resource patterns.

python -m pip install -e sdks/python-orbex-bucket
export ORBEX_API_KEY="your-64-character-api-key"

Low-level client:

import orbex_connect

s3 = orbex_connect.client("s3")
s3.create_bucket(Bucket="analytics-data")
s3.upload_file("orders.csv", "analytics-data", "incoming/orders.csv")

response = s3.get_object(Bucket="analytics-data", Key="incoming/orders.csv")
data = response["Body"].read()

for item in s3.list_objects_v2(Bucket="analytics-data", Prefix="incoming/")["Contents"]:
    print(item["Key"], item["Size"])

s3.download_file("analytics-data", "incoming/orders.csv", "downloaded.csv")
s3.delete_object(Bucket="analytics-data", Key="incoming/orders.csv")

Resource API:

orbex = orbex_connect.resource("s3")
bucket = orbex.Bucket("analytics-data")
bucket.put_object(Key="reports/summary.json", Body='{"status":"ready"}', ContentType="application/json")

for obj in bucket.objects.filter(Prefix="reports/"):
    print(obj.key, obj.size)

Supported client methods include list_buckets, create_bucket, delete_bucket, head_bucket, put_object, get_object, head_object, delete_object, delete_objects, copy_object, list_objects_v2, upload_file, upload_fileobj, download_file, download_fileobj, and get_paginator.

For local development pass endpoint_url="http://localhost:3000" to orbex_connect.client() or set ORBEX_ENDPOINT_URL.

Managed Genorbex notebooks can use the injected ORBEX_API_TOKEN and ORBEX_API_URL variables automatically; no credentials need to appear in code.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

orbex_connect-0.1.0.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

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

orbex_connect-0.1.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file orbex_connect-0.1.0.tar.gz.

File metadata

  • Download URL: orbex_connect-0.1.0.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.2

File hashes

Hashes for orbex_connect-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3b53e617fdf862095215b22203fa327a7c50948d5fe62eb19e7127f527beba99
MD5 3edba1f1accbcea44726a525b7da5358
BLAKE2b-256 a5e8236ae48ccdcd3ce31d7310902f16a770db180bea042b924a9b87dd792b8b

See more details on using hashes here.

File details

Details for the file orbex_connect-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: orbex_connect-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.2

File hashes

Hashes for orbex_connect-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 218eef0e0e6bd63365ef2566483d1a2bf4831fbe84bb006325122bfac308934c
MD5 a69f07827cb19ede485a163c14f82d2d
BLAKE2b-256 4576074f92af052cc524d2253dd511c8d03505b6f2df96b434bd0641cfd89fbd

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.1

2 files

This release

0.1.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page