Synthetic business datasets for the fictional Contoso company
Project description
contoso
Synthetic business datasets for the fictional Contoso company. This Python package provides access to 8 interconnected business datasets stored as Parquet files on Cloudflare R2, loaded efficiently via DuckDB.
Installation
pip install contoso
Or install from source:
pip install git+https://codeberg.org/usrbinr/contoso.py
Usage
import contoso
# Create a DuckDB connection with Contoso datasets
db = contoso.create_duckdb(size="small")
# Access tables (lazy evaluation via DuckDB relations)
db["sales"].limit(10).fetchdf()
db["customer"].filter("Country = 'United States'").fetchdf()
# Available tables
# - sales: Sales transaction data
# - product: Product details (name, manufacturer, category)
# - customer: Customer demographics and geography
# - store: Store locations and attributes
# - fx: Foreign exchange rates
# - calendar: Date dimension table
# - orders: Order header information
# - orderrows: Order line items
# Launch interactive web UI
contoso.launch_ui(db["con"])
# Close connection when done
db["con"].close()
Dataset Sizes
| Size | Sales Rows |
|---|---|
| small | ~8,000 |
| medium | ~2.3 million |
| large | ~47 million |
| mega | ~237 million |
Requirements
- Python >= 3.9
- DuckDB >= 1.0.0
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
contoso-0.1.0.tar.gz
(4.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file contoso-0.1.0.tar.gz.
File metadata
- Download URL: contoso-0.1.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b0c6b79c4f1867a73b2c3c19e5022d48f1bdadb753c9ffc9662b5f83ad9fba2
|
|
| MD5 |
89ea414086102deca4dab6d009061104
|
|
| BLAKE2b-256 |
ddf659dd2f730ff2714e1ee5b79c962788088d73c86169df22a5f33fb7631645
|
File details
Details for the file contoso-0.1.0-py3-none-any.whl.
File metadata
- Download URL: contoso-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0f4b96dc2c60aafa28fdc6141168fb7c55a293e7b4e59040a4bde743643e813
|
|
| MD5 |
419e728d90be559079968225786bf0dc
|
|
| BLAKE2b-256 |
e5ed0f257911700abd2d13052a523988be264218b5e5c91f5c1789b72e8037f5
|