Skip to main content

SharedData

A comprehensive ultrafast Python library for financial data.

📖 Table of Contents

🏗️ Core Features

SharedData provides a comprehensive set of features for high-performance financial data management:

  • 🗃️ Database Schema & Indexing - Optimized schemas for financial data types
  • 🌐 Storage & Integration - Multi-storage support (Local, S3, MongoDB, Redis)
  • 📈 Performance & Scalability - Parallel processing and advanced querying
  • 📊 Data Containers - Tables, Collections, Time Series, Streams, Cache, Metadata
  • ⚡ Multiprocessing & Parallel Computing - Sophisticated parallel processing library
  • 🤖 Distributed Worker System - Automated task execution and job scheduling
  • 📋 Comprehensive Logging System - Enterprise-grade logging with multiple destinations
  • 🌐 Remote API Client - REST API for remote data access and operations

📚 Read the complete Core Features guide →

⚡ Quick Start

Get up and running with SharedData in minutes:

Installation

# Create virtual environment
python -m venv venv
source venv/bin/activate

# Install SharedData
pip install -r requirements.txt
pip install -e .

Basic Usage

import pandas as pd
from SharedData.SharedData import SharedData

# Initialize SharedData
shdata = SharedData(__file__, user='master')

# Quick example - Tables
dates = pd.date_range('2025-01-01', '2025-01-10', freq='D')
symbols = ['AAPL', 'GOOGL', 'MSFT']
idx = pd.MultiIndex.from_product([dates, symbols], names=['date', 'symbol'])
df = pd.DataFrame({'price': 100, 'volume': 1000}, index=idx)

# Write and read data
tbl = shdata.table('MarketData', 'D1', 'TEST', 'PRICES', value=df)
tbl.write()
data = tbl.loc['2025-01-05':, 'AAPL']  # Fast symbol lookup
print(f"Retrieved {data.shape[0]} rows")

📚 Read the complete Quick Start guide →

🔧 Configuration

Configure SharedData with environment variables for your specific needs:

# Required Variables
SHAREDDATA_SECRET_KEY="your-secret-key"
SHAREDDATA_TOKEN="your-auth-token"
AWS_ACCESS_KEY_ID="your-aws-access-key"
S3_BUCKET="s3://your-bucket-name"
MONGODB_HOST="your-mongodb-host"
SHAREDDATA_ENDPOINT="http://your-server:port"

📚 Read the complete Configuration guide →

🚀 Advanced Usage

For power users and complex scenarios:

  • Advanced Data Operations - Complex queries and aggregations
  • Performance Optimization - Memory management and parallel processing
  • Distributed Computing - Worker pools and distributed data processing
  • Custom Extensions - Custom data containers and worker types
  • Production Deployment - High availability and monitoring
  • Monitoring & Debugging - Performance profiling and health checks

📚 Read the complete Advanced Usage guide →

🧭 Data by Symbol

Fetch data by what it is instead of where it is stored. The server picks the source, the container and the partitions, and every answer says where its rows came from:

bars = shdata.dataframe('marketdata', 'AAPL', period='M15', start='2026-10-05')
bars.attrs['provenance']['dataset']        # which container answered

from SharedData.IO.ClientAPI import ClientAPI
surface = ClientAPI.get_vol('AAPL', product='tenor', tenor='1M')

Market data, signals, portfolios, risk factors and volatility are served this way over GET /api/data/.... This is a convenience, not the fast path: producers and other performance-critical code keep using table(), timeseries() and collection().

📚 Read the Data by Symbol guide →

🔄 Development & Documentation

For developers contributing to SharedData:

Building Documentation

# Generate documentation from docstrings
make gitea

# Alternative methods
python generate_docs.py
python update_docs.py
make all

Running Tests

python -m pytest tests/

📚 Read the complete Development guide →

📄 License

MIT: free to use, change and distribute, commercially too. See the LICENSE file.

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Update documentation: make gitea
  5. Submit a pull request

📚 Read the complete Contributing guide →


📚 Documentation Index


⬆️ Back to top

Metadata

Release files for shareddata 6.85.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shareddata 6.85.0
File Size Uploaded
shareddata-6.85.0.tar.gz 728.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for shareddata 6.85.0
File Interpreter ABI Platform
shareddata-6.85.0-py3-none-any.whl Python 3 none any Details

Total release size: 1.5 MB

Release files / shareddata-6.85.0.tar.gz

Download URL shareddata-6.85.0.tar.gz
Size 728.3 kB
Tags Source
SHA-256 checksum
How to use checksums
eeac0379593e22edb9f6f144c1949cf0054184426196af4355e46b142d584758
BLAKE2b-256 checksum
How to use checksums
07d3616edaddb9639658c58b708c282d5a8af9cdab6216dc1f7fea877a1aa02a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.3

Release files / shareddata-6.85.0-py3-none-any.whl

Download URL shareddata-6.85.0-py3-none-any.whl
Size 803.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d7b324001f4dc3e02f5d22eff3c7b8f8f2801771b7834a541c83d621050bd586
BLAKE2b-256 checksum
How to use checksums
f76d61c1c4b9b4f3b922a14153b84948d03352abfbdb93b4f15b004954a49b4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.3

Release history Release notifications | RSS feed

This release

6.85.0 This release

2 release files

6.83.15

1 release file

6.83.10

1 release file

6.83.9

1 release file

6.83.8

2 release files

6.83.7

2 release files

6.83.6

1 release file

6.83.4

2 release files

6.83.3

1 release file

6.83.2

1 release file

6.83.1

1 release file

6.83.0

1 release file

6.80.7

1 release file

6.80.6

1 release file

6.80.5

1 release file

6.80.4

1 release file

6.80.2

1 release file

6.80.1

1 release file

6.80.0

1 release file

6.79.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page