Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Dara

Release 0.6.0a1. Dara is a modular Python library for financial data. The PyPI distribution is named pydara; its Python import is dara. The currently implemented public module is dara.tse, providing TSETMC quotes, instrument lookup, history, market data, sync/async workflows, Pandas outputs, versioned SQLite storage and typed file exports.

Install

Requires Python 3.12 or newer. After publication on PyPI:

python -m pip install --upgrade pydara==0.6.0a1

Optional Excel, Parquet and notebook support:

python -m pip install --upgrade "pydara[files,notebook]==0.6.0a1"

For a local release bundle, activate your Python environment and run python install.py (--core-only omits optional file/notebook dependencies). Restart the Jupyter kernel after installation or upgrade.

Use

from dara import tse

# Synthetic teaching data; no external request.
sample = tse.load_sample()
reference = tse.api_reference('instrument')

# Real data: network access or an eligible cache entry is required.
matches = tse.instrument(symbol="فولاد", on_multiple="all")
history = tse.history("فولاد", start="1403-01-01", end="1403-12-30")
from dara.tse import Client, AsyncClient
from dara.tse.exceptions import DaraError

Instrument lookup defaults to all matching rows. on_multiple="first" returns the first source-ordered match; "error" rejects ambiguity. on_conflict="error" checks supplied constraints. "ins_code" explicitly prioritizes a supplied instrument code.

Scope and data contracts

The TSE module includes public quotes/history, market watch, client types, indices, reported trades/books/states/thresholds, ownership/share counts, adjustment events, source-adjusted chart data, fund/NAV data, messages and options. Availability depends on the source endpoint. The separate futures exchange gateway is experimental. Current catalog coverage is not a complete historical instrument registry. Source-adjusted data does not certify total return or point-in-time history.

Analysis, ML, Bitcoin, exchange rates, gold and other countries' markets are planned extensions. They are not implemented modules in this release.

Importing dara creates no network connection, database or worker thread. Explicit offline use is tse.FetchPolicy.offline(allow_stale=True). A queued storage receipt is not durable storage. Preserve the JSON sidecar when copying a CSV Dara archive.

Migration from tse-dara

Replace from tse_dara import data with from dara import tse, and use tse.history(...), tse.instrument(...), etc. Alternatively, from dara import tse as data keeps existing local variable names. Exceptions move to dara.tse.exceptions. The old Python namespace is not shipped.

The existing default cache path and the legacy tse_dara metadata key and tse-dara-frame storage marker are retained for stored-data compatibility. No user database is deleted or migrated by this rename. See migration instructions.

Documentation and development

python -m pip install -e ".[test,files]" build twine
python tools/generate_api_reference.py
python -m build --wheel --outdir dist
python tools/update_bundle.py
python -m pytest -q

Offline/synthetic tests verify local contracts and do not certify live source accuracy or endpoint availability. The code is MIT licensed; data rights are separate from the code license.

Metadata

Release files for pydara 0.6.0a1

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

Source distribution (sdist)

Source distribution for pydara 0.6.0a1
File Size Uploaded
pydara-0.6.0a1.tar.gz 243.9 kB Details

Built distribution (wheel)

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

Total release size: 422.7 kB

Release files / pydara-0.6.0a1.tar.gz

Download URL pydara-0.6.0a1.tar.gz
Size 243.9 kB
Tags Source
SHA-256 checksum
How to use checksums
fb6407f6b9882e83a46d7020605db602bf4784bfaa93f79922c77c4f06f9d0db
BLAKE2b-256 checksum
How to use checksums
2b7cfbcb420fb82cae5a38a0a3e84160524407126ab6623da0e1f3faf5adedd1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.1

Release files / pydara-0.6.0a1-py3-none-any.whl

Download URL pydara-0.6.0a1-py3-none-any.whl
Size 178.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ab1137ea6f800a4a3e6a550979134c4aea965d47857ed5ff57a9a9a0558f5f14
BLAKE2b-256 checksum
How to use checksums
08e26c416d6fef9077f77f6ba4b54fddf019b33b7a161c0e8916b383cb0d7a82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.1
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