| Crates.io | ria |
| lib.rs | ria |
| version | 0.3.0 |
| created_at | 2024-12-16 12:35:26.239673+00 |
| updated_at | 2025-02-06 15:52:02.955368+00 |
| description | An adapter for converting the RefractiveIndex.INFO database into a flat, key-value store. |
| homepage | |
| repository | https://github.com/kmdouglass/refractiveindex.info-adapters |
| max_upload_size | |
| id | 1484957 |
| size | 66,363 |
Adapters to transform the refractiveindex.info database into single-file key/value stores.
ria provides two tools:
Store datatype and methods for extracting the data, andThe CLI tool is an optional feature that can be installed from crates.io as
cargo install ria --features cli
To install from this source code repository:
cargo install --path . --features cli
This assumes that you are currently inside the root folder of the refractiveindex.info-database repository. It will write a file called results.dat containing the data in JSON format.
ria store
The database is in refractiveindex.info-database/database.
ria -f bitcode store -p refractiveindex.info-database/database
The file should contain one key per line.
ria store -p refractiveindex.info-database/database -i misc/cherry-initial-data.txt
The file results.dat contains JSON data.
ria -f json validate -i results.dat
ria --help
Git provides two options to clone this repository, which contains the database as a submodule:
# Assuming you're using SSH and not HTTPS
git clone --recurse-submodules git@github.com:kmdouglass/refractiveindex.info-adapters.git
# Assuming you're using SSH and not HTTPS
git clone git@github.com:kmdouglass/refractiveindex.info-adapters.git
cd refractiveindex.info-database
git submodule init
git submodule update
cd refractiveindex.info-database
git fetch
git merge origin/master
cargo test --all-features
cargo fmt