INSTALLPython in, RIDA out.
Python 3.10 or newer is required (or Node.js 20+ via npm install rida-format). Encryption support is installed automatically with the package.
pip install rida-format
rida --version
| Name | Purpose |
|---|
rida.build | Build a dataset from JSON input. |
rida.scan | Measure fields and recommend dense or sparse. |
rida.open_reader | Open a local path or HTTP(S) URL. |
rida.RidaFile | Local reader: get, get_many, get_record, folders, resolve. |
rida.RemoteRidaFile | HTTP range reader with timeout, cache and keepalive. |
rida.verify | Stream the data region and return an integrity report. |
rida.inspect_metadata | Return index contents as a dictionary. |
rida.MERGE_GAP_LIMIT | 660 bytes: the measured merge threshold. |
rida.VALUE_CODECS | deflate-per-field and plain. |
ONE COMPLETE FLOW
Scan, build, read, verify.
import rida
report = rida.scan("users.json")
print(report.recommended_mode)
rida.build("users.json", "UsersData.rida")
with rida.RidaFile("UsersData.rida") as data:
print(data.get("ali", "city"))
print(rida.verify("UsersData.rida")["ok"])
Reader options and utility functions
RidaFile accepts index= for a local index. RemoteRidaFile also accepts timeout=, cache_dir=, use_cache=, keepalive= and key=. Both readers provide field and record lookups; use a local reader for a full-file verification.
rida.open_reader selects a reader for a local path or an HTTP(S) URL. Pass the corresponding reader’s options. value_codec= selects the codec for rida.scan and rida.build.
Show build progress inside your application
A desktop application can show RIDA’s stages in its own interface through a progress callback. The terminal display is not the only way to observe a build.
def progress(stage, completed, total):
print(f"{stage}: {completed}/{total}")
rida.build("items.json", "ItemsData.rida", progress=progress)
What the current release supports
The library builds static datasets, finds values by record ID and field name, reads several fields, resolves folder names through a map, checks local data integrity and optionally encrypts stored values.
Exact-match search indexes, numeric range search and Unicode full-text search indexes are not included. Python 3.0.1 and Node.js 3.0.1 packages are available; a standalone browser JavaScript reader is not included. HTTP byte ranges describe how bytes are fetched; they do not provide a search engine.
Work with the source project
From an extracted source project, install locally with python3 -m pip install .. The package and command are both named rida; the distribution name is rida-format. Run the installed package or import it rather than executing an internal source file.
rida/
pyproject.toml package metadata
MANIFEST.in source archive contents
RIDA-README.md usage manual
RIDA-FORMAT.md binary format specification
CHANGELOG.md release history
LICENSE license terms
docs/rida-metadata.html optional metadata helper
src/rida/ library and command-line code
tests/ suite and compatibility fixtures
python3 -m pip install .
python3 -m unittest discover -s tests -v
The core test suite uses a local range server rather than an external network service. Fixtures preserve known data and catalog bytes; tests/make_fixtures.py regenerates them when the format changes. The cryptography dependency is installed automatically with RIDA. Official macOS and Windows Python installers include LZMA support; minimal Linux installations may need their Python LZMA component installed separately.
Use RIDA in your application
The RIDA Proprietary License permits using and modifying RIDA as a component of free or paid applications. It does not permit publishing, redistributing or selling it as a standalone library or software product. The license does not apply to the data files you create.
Applications that include RIDA must display this notice in an About, Licenses or Third-Party Notices section:
Uses RIDA (Range Indexed Data Access).
Copyright (c) 2026 Syed Ali Hamza Chishty.
Used under the RIDA Proprietary License.
Read the LICENSE supplied with the source or installed distribution for the full terms.
RELEASE HISTORYRIDA is a format
that keeps moving.
The current website covers Python 3.0.1 and Node.js 3.0.1. This timeline keeps the important format and behavior changes visible instead of hiding them in marketing copy.
3.0.1Current release
Storage-agnostic architecture & unified release
- Unified release 3.0.1 across Python (rida-format) and Node.js readers.
- Enhanced storage-agnostic support across any standard HTTP 206 byte-range server, object store, or CDN.
- Zero-overhead byte seek optimizations and built-in AES-256-GCM encryption with server-side environment variables (.env).
- Automatic companion discovery for data, index, key, and folder map files.
2.0.2Previous
Encryption in one install
- pip install rida-format now installs encryption support automatically.
- No separate encryption extra is needed; cryptography is a required dependency.
- The data format and encryption algorithm are unchanged.
2.0.1Previous
Practical application guides
- Added detailed product catalogue and multilingual help-centre examples.
- Expanded encrypted CDN delivery guidance and server-only key handling.
- Clarified whole-field reads, nested values and multi-field requests.
2.0.0Previous
Aligned release numbering
- Aligned Python and Node.js package version numbers.
- Expanded the Node.js usage guide; Python implementation remained unchanged.
0.3.3Previous
One build process, clearer identities
- Build and scan now process one JSON record at a time; memory-mode selection was removed.
- Several JSON groups can be combined after comparing shared and union schemas.
- Records are identified by tree position, with an optional Map.json for human folder names.
- Raw deflate replaces the gzip wrapper, saving 18 bytes per value.
- Progress shows stage, count, elapsed time, estimate and rate.
- Breaking change: rebuild datasets written by 0.3.2 or earlier.
0.3.2Previous
Catalog encryption and cache
- Added AES-256-GCM catalog encryption and separate key files.
- Added a pre-computed catalog cache for remote reads.
- Added --key, --encrypt, --timeout, --version and encryption availability checks.
- Expanded tests around real range servers, wrong keys and cache behavior.
0.3.1Previous
Documentation release
- Made README examples generic instead of centering one dataset.
- Clarified that reference-dataset benchmark figures are measurements, not a special case.
0.3.0Previous
More ways to read
- Added get_many() and get_record() with nearby-range merging.
- Added the fields command and open_reader() for local paths or HTTP URLs.
- Removed reader_url: the library does not pretend to know an end-user app.