rida-format 2.0.1__tar.gz → 2.0.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rida_format-2.0.1 → rida_format-2.0.2}/CHANGELOG.md +7 -0
- {rida_format-2.0.1/src/rida_format.egg-info → rida_format-2.0.2}/PKG-INFO +15 -24
- {rida_format-2.0.1 → rida_format-2.0.2}/RIDA-README.md +13 -21
- {rida_format-2.0.1 → rida_format-2.0.2}/pyproject.toml +2 -7
- {rida_format-2.0.1 → rida_format-2.0.2}/src/rida/__init__.py +9 -10
- {rida_format-2.0.1 → rida_format-2.0.2}/src/rida/_encryption.py +5 -5
- {rida_format-2.0.1 → rida_format-2.0.2/src/rida_format.egg-info}/PKG-INFO +15 -24
- {rida_format-2.0.1 → rida_format-2.0.2}/src/rida_format.egg-info/requires.txt +0 -2
- {rida_format-2.0.1 → rida_format-2.0.2}/LICENSE +0 -0
- {rida_format-2.0.1 → rida_format-2.0.2}/MANIFEST.in +0 -0
- {rida_format-2.0.1 → rida_format-2.0.2}/RIDA-FORMAT.md +0 -0
- {rida_format-2.0.1 → rida_format-2.0.2}/docs/rida-metadata.html +0 -0
- {rida_format-2.0.1 → rida_format-2.0.2}/setup.cfg +0 -0
- {rida_format-2.0.1 → rida_format-2.0.2}/src/rida/__main__.py +0 -0
- {rida_format-2.0.1 → rida_format-2.0.2}/src/rida_format.egg-info/SOURCES.txt +0 -0
- {rida_format-2.0.1 → rida_format-2.0.2}/src/rida_format.egg-info/dependency_links.txt +0 -0
- {rida_format-2.0.1 → rida_format-2.0.2}/src/rida_format.egg-info/entry_points.txt +0 -0
- {rida_format-2.0.1 → rida_format-2.0.2}/src/rida_format.egg-info/top_level.txt +0 -0
- {rida_format-2.0.1 → rida_format-2.0.2}/tests/fixture_spec.py +0 -0
- {rida_format-2.0.1 → rida_format-2.0.2}/tests/fixtures/golden-source-dictionary.json +0 -0
- {rida_format-2.0.1 → rida_format-2.0.2}/tests/fixtures/golden-source-sequential.json +0 -0
- {rida_format-2.0.1 → rida_format-2.0.2}/tests/fixtures/golden-v1-dictionary-denseData.rida +0 -0
- {rida_format-2.0.1 → rida_format-2.0.2}/tests/fixtures/golden-v1-dictionary-denseIndex.rida +0 -0
- {rida_format-2.0.1 → rida_format-2.0.2}/tests/fixtures/golden-v1-dictionary-sparseData.rida +0 -0
- {rida_format-2.0.1 → rida_format-2.0.2}/tests/fixtures/golden-v1-dictionary-sparseIndex.rida +0 -0
- {rida_format-2.0.1 → rida_format-2.0.2}/tests/fixtures/golden-v1-sequential-denseData.rida +0 -0
- {rida_format-2.0.1 → rida_format-2.0.2}/tests/fixtures/golden-v1-sequential-denseIndex.rida +0 -0
- {rida_format-2.0.1 → rida_format-2.0.2}/tests/fixtures/golden-v1-sequential-sparseData.rida +0 -0
- {rida_format-2.0.1 → rida_format-2.0.2}/tests/fixtures/golden-v1-sequential-sparseIndex.rida +0 -0
- {rida_format-2.0.1 → rida_format-2.0.2}/tests/make_fixtures.py +0 -0
- {rida_format-2.0.1 → rida_format-2.0.2}/tests/test_rida.py +0 -0
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.0.2 — Encryption included in the default install
|
|
4
|
+
|
|
5
|
+
- Made cryptography a required dependency so pip install rida-format includes encryption support.
|
|
6
|
+
- Removed the separate encryption extra from install instructions.
|
|
7
|
+
- The RIDA data format and encryption algorithm are unchanged.
|
|
8
|
+
|
|
9
|
+
|
|
3
10
|
## 2.0.1 — Encrypted delivery and application examples
|
|
4
11
|
|
|
5
12
|
- Added direct encrypted CDN delivery guidance and server-only key handling.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rida-format
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.2
|
|
4
4
|
Summary: Range Indexed Data Access (RIDA) static data format and library
|
|
5
5
|
Author: Syed Ali Hamza Chishty
|
|
6
6
|
Maintainer-email: Qasra Foundation <admin@qasra.org>
|
|
@@ -19,11 +19,10 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
19
19
|
Requires-Python: >=3.10
|
|
20
20
|
Description-Content-Type: text/markdown
|
|
21
21
|
License-File: LICENSE
|
|
22
|
-
|
|
23
|
-
Requires-Dist: cryptography>=42.0; extra == "encryption"
|
|
22
|
+
Requires-Dist: cryptography>=42.0
|
|
24
23
|
Dynamic: license-file
|
|
25
24
|
|
|
26
|
-
# RIDA Python library — 2.0.
|
|
25
|
+
# RIDA Python library — 2.0.2
|
|
27
26
|
|
|
28
27
|
RIDA means **Range Indexed Data Access**. It is an installable Python library
|
|
29
28
|
and terminal tool that builds a RIDA dataset from a collection of JSON records.
|
|
@@ -64,7 +63,7 @@ case, and any JSON collection of the same shape behaves the same way.
|
|
|
64
63
|
From this project folder:
|
|
65
64
|
|
|
66
65
|
```sh
|
|
67
|
-
|
|
66
|
+
pip install .
|
|
68
67
|
```
|
|
69
68
|
|
|
70
69
|
After that, the `rida` command is available in the same Python environment.
|
|
@@ -74,7 +73,7 @@ account, or server process is required.
|
|
|
74
73
|
Install the published package with:
|
|
75
74
|
|
|
76
75
|
```sh
|
|
77
|
-
|
|
76
|
+
pip install rida-format
|
|
78
77
|
```
|
|
79
78
|
|
|
80
79
|
The PyPI package name is `rida-format`. After installation, the terminal
|
|
@@ -115,20 +114,12 @@ individual `.py` file: they use `import rida`, `rida ...`, or `python -m rida`.
|
|
|
115
114
|
## Requirements and downloads
|
|
116
115
|
|
|
117
116
|
- Python **3.10 or newer** and `pip` are required.
|
|
118
|
-
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
-
|
|
122
|
-
`
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
```sh
|
|
126
|
-
python3 -m pip install "rida-format[encryption]"
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
Everything else — building unencrypted files, local reads, remote reads,
|
|
130
|
-
verification — works without it. `rida.encryption_available()` reports
|
|
131
|
-
whether it is importable in the current environment.
|
|
117
|
+
- A single `pip install rida-format` installs RIDA and its `cryptography`
|
|
118
|
+
dependency. Building and reading encrypted datasets is included; there is
|
|
119
|
+
no separate encryption install or extra to choose.
|
|
120
|
+
- JSON, compression, hashing, and HTTP reads use Python's standard modules.
|
|
121
|
+
`rida.encryption_available()` reports whether the installed encryption
|
|
122
|
+
dependency can be imported in the current environment.
|
|
132
123
|
- The `rida` command has its own progress display for loading, scanning, value
|
|
133
124
|
writing, catalog compression, and final file writing. It does not require
|
|
134
125
|
`tqdm`.
|
|
@@ -480,7 +471,7 @@ rida verify UsersData.rida
|
|
|
480
471
|
|
|
481
472
|
## Where RIDA can read data
|
|
482
473
|
|
|
483
|
-
RIDA 2.0.
|
|
474
|
+
RIDA 2.0.2 can read a data file from the local computer or from a direct
|
|
484
475
|
HTTP/HTTPS file URL. For remote reads, RIDA sends ordinary HTTP byte-range
|
|
485
476
|
requests; it does not use a cloud-provider SDK. This makes it compatible with
|
|
486
477
|
object storage that returns the requested bytes as HTTP `206 Partial Content`
|
|
@@ -612,7 +603,7 @@ A data file that is served from a CDN is public. Encrypting it means a scraper
|
|
|
612
603
|
that downloads the file gets bytes it cannot read.
|
|
613
604
|
|
|
614
605
|
```sh
|
|
615
|
-
#
|
|
606
|
+
# Encryption support is included in pip install rida-format
|
|
616
607
|
rida build ./my-data ItemsData.rida --encrypt
|
|
617
608
|
```
|
|
618
609
|
|
|
@@ -670,7 +661,7 @@ client somehow, and a client that holds a key can be studied. Looking after the
|
|
|
670
661
|
key is the publisher's job, exactly like a password.
|
|
671
662
|
|
|
672
663
|
For access control tied to a user account on every read, keep the key on your
|
|
673
|
-
server, check permission there, and return decrypted content rather than the key. `rida.encryption_available()` tells you whether the
|
|
664
|
+
server, check permission there, and return decrypted content rather than the key. `rida.encryption_available()` tells you whether the encryption
|
|
674
665
|
dependency is present before you promise encryption to a caller.
|
|
675
666
|
|
|
676
667
|
### Encrypted data directly from your CDN
|
|
@@ -990,7 +981,7 @@ The filenames are source names, not guaranteed numbered record IDs. The map desc
|
|
|
990
981
|
|
|
991
982
|
## Current scope
|
|
992
983
|
|
|
993
|
-
RIDA 2.0.
|
|
984
|
+
RIDA 2.0.2 implements primary lookup — `record ID + field name → value` — plus
|
|
994
985
|
multi-field reads (`get_many`, `get_record`), numbered folder IDs with a map that
|
|
995
986
|
turns a name into one, a data-file integrity check, and optional AES-256-GCM
|
|
996
987
|
encryption of every stored value. Optional exact-match,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# RIDA Python library — 2.0.
|
|
1
|
+
# RIDA Python library — 2.0.2
|
|
2
2
|
|
|
3
3
|
RIDA means **Range Indexed Data Access**. It is an installable Python library
|
|
4
4
|
and terminal tool that builds a RIDA dataset from a collection of JSON records.
|
|
@@ -39,7 +39,7 @@ case, and any JSON collection of the same shape behaves the same way.
|
|
|
39
39
|
From this project folder:
|
|
40
40
|
|
|
41
41
|
```sh
|
|
42
|
-
|
|
42
|
+
pip install .
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
After that, the `rida` command is available in the same Python environment.
|
|
@@ -49,7 +49,7 @@ account, or server process is required.
|
|
|
49
49
|
Install the published package with:
|
|
50
50
|
|
|
51
51
|
```sh
|
|
52
|
-
|
|
52
|
+
pip install rida-format
|
|
53
53
|
```
|
|
54
54
|
|
|
55
55
|
The PyPI package name is `rida-format`. After installation, the terminal
|
|
@@ -90,20 +90,12 @@ individual `.py` file: they use `import rida`, `rida ...`, or `python -m rida`.
|
|
|
90
90
|
## Requirements and downloads
|
|
91
91
|
|
|
92
92
|
- Python **3.10 or newer** and `pip` are required.
|
|
93
|
-
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
-
|
|
97
|
-
`
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
```sh
|
|
101
|
-
python3 -m pip install "rida-format[encryption]"
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
Everything else — building unencrypted files, local reads, remote reads,
|
|
105
|
-
verification — works without it. `rida.encryption_available()` reports
|
|
106
|
-
whether it is importable in the current environment.
|
|
93
|
+
- A single `pip install rida-format` installs RIDA and its `cryptography`
|
|
94
|
+
dependency. Building and reading encrypted datasets is included; there is
|
|
95
|
+
no separate encryption install or extra to choose.
|
|
96
|
+
- JSON, compression, hashing, and HTTP reads use Python's standard modules.
|
|
97
|
+
`rida.encryption_available()` reports whether the installed encryption
|
|
98
|
+
dependency can be imported in the current environment.
|
|
107
99
|
- The `rida` command has its own progress display for loading, scanning, value
|
|
108
100
|
writing, catalog compression, and final file writing. It does not require
|
|
109
101
|
`tqdm`.
|
|
@@ -455,7 +447,7 @@ rida verify UsersData.rida
|
|
|
455
447
|
|
|
456
448
|
## Where RIDA can read data
|
|
457
449
|
|
|
458
|
-
RIDA 2.0.
|
|
450
|
+
RIDA 2.0.2 can read a data file from the local computer or from a direct
|
|
459
451
|
HTTP/HTTPS file URL. For remote reads, RIDA sends ordinary HTTP byte-range
|
|
460
452
|
requests; it does not use a cloud-provider SDK. This makes it compatible with
|
|
461
453
|
object storage that returns the requested bytes as HTTP `206 Partial Content`
|
|
@@ -587,7 +579,7 @@ A data file that is served from a CDN is public. Encrypting it means a scraper
|
|
|
587
579
|
that downloads the file gets bytes it cannot read.
|
|
588
580
|
|
|
589
581
|
```sh
|
|
590
|
-
#
|
|
582
|
+
# Encryption support is included in pip install rida-format
|
|
591
583
|
rida build ./my-data ItemsData.rida --encrypt
|
|
592
584
|
```
|
|
593
585
|
|
|
@@ -645,7 +637,7 @@ client somehow, and a client that holds a key can be studied. Looking after the
|
|
|
645
637
|
key is the publisher's job, exactly like a password.
|
|
646
638
|
|
|
647
639
|
For access control tied to a user account on every read, keep the key on your
|
|
648
|
-
server, check permission there, and return decrypted content rather than the key. `rida.encryption_available()` tells you whether the
|
|
640
|
+
server, check permission there, and return decrypted content rather than the key. `rida.encryption_available()` tells you whether the encryption
|
|
649
641
|
dependency is present before you promise encryption to a caller.
|
|
650
642
|
|
|
651
643
|
### Encrypted data directly from your CDN
|
|
@@ -965,7 +957,7 @@ The filenames are source names, not guaranteed numbered record IDs. The map desc
|
|
|
965
957
|
|
|
966
958
|
## Current scope
|
|
967
959
|
|
|
968
|
-
RIDA 2.0.
|
|
960
|
+
RIDA 2.0.2 implements primary lookup — `record ID + field name → value` — plus
|
|
969
961
|
multi-field reads (`get_many`, `get_record`), numbered folder IDs with a map that
|
|
970
962
|
turns a name into one, a data-file integrity check, and optional AES-256-GCM
|
|
971
963
|
encryption of every stored value. Optional exact-match,
|
|
@@ -4,11 +4,11 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "rida-format"
|
|
7
|
-
version = "2.0.
|
|
7
|
+
version = "2.0.2"
|
|
8
8
|
description = "Range Indexed Data Access (RIDA) static data format and library"
|
|
9
9
|
readme = "RIDA-README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
11
|
-
dependencies = []
|
|
11
|
+
dependencies = ["cryptography>=42.0"]
|
|
12
12
|
license = "LicenseRef-Proprietary"
|
|
13
13
|
license-files = ["LICENSE"]
|
|
14
14
|
authors = [
|
|
@@ -35,11 +35,6 @@ classifiers = [
|
|
|
35
35
|
PyPI = "https://pypi.org/project/rida-format/"
|
|
36
36
|
Changelog = "https://pypi.org/project/rida-format/#history"
|
|
37
37
|
|
|
38
|
-
[project.optional-dependencies]
|
|
39
|
-
# Catalog encryption (``rida build --encrypt`` and ``key=`` readers).
|
|
40
|
-
# Every other RIDA feature runs on the standard library alone.
|
|
41
|
-
encryption = ["cryptography>=42.0"]
|
|
42
|
-
|
|
43
38
|
[project.scripts]
|
|
44
39
|
rida = "rida:main"
|
|
45
40
|
|
|
@@ -88,7 +88,7 @@ CATALOG_HEADER = struct.Struct(">8sIIQIIIQ")
|
|
|
88
88
|
MODE_DENSE = 1
|
|
89
89
|
MODE_SPARSE = 2
|
|
90
90
|
_READ_BLOCK = 1024 * 1024
|
|
91
|
-
__version__ = "2.0.
|
|
91
|
+
__version__ = "2.0.2"
|
|
92
92
|
ProgressCallback = Callable[[str, int, int], None]
|
|
93
93
|
|
|
94
94
|
|
|
@@ -123,16 +123,15 @@ __all__ = [
|
|
|
123
123
|
"verify",
|
|
124
124
|
]
|
|
125
125
|
|
|
126
|
-
#: Raised when encryption is requested but the
|
|
126
|
+
#: Raised when encryption is requested but the encryption dependency is missing.
|
|
127
127
|
EncryptionUnavailable = _encryption.EncryptionUnavailable
|
|
128
128
|
|
|
129
129
|
|
|
130
130
|
def encryption_available() -> bool:
|
|
131
131
|
"""Return True when catalog encryption can run in this environment.
|
|
132
132
|
|
|
133
|
-
Encryption
|
|
134
|
-
|
|
135
|
-
without it.
|
|
133
|
+
Encryption uses the ``cryptography`` dependency, installed automatically
|
|
134
|
+
with ``pip install rida-format``.
|
|
136
135
|
"""
|
|
137
136
|
return _encryption.is_available()
|
|
138
137
|
|
|
@@ -3064,8 +3063,8 @@ def build(
|
|
|
3064
3063
|
key = _encryption.generate_key()
|
|
3065
3064
|
if key is not None and not _encryption.is_available():
|
|
3066
3065
|
raise EncryptionUnavailable(
|
|
3067
|
-
"Data encryption needs the
|
|
3068
|
-
'Install it with: pip install
|
|
3066
|
+
"Data encryption needs the 'cryptography' dependency installed with RIDA. "
|
|
3067
|
+
'Install it with: pip install rida-format'
|
|
3069
3068
|
)
|
|
3070
3069
|
source_path = Path(source)
|
|
3071
3070
|
selected_input = _resolve_record_directory(
|
|
@@ -4005,7 +4004,7 @@ def _ask_build_encoding_options(args: Any) -> Any:
|
|
|
4005
4004
|
if args.encrypt and not _encryption.is_available():
|
|
4006
4005
|
print(
|
|
4007
4006
|
" 'cryptography' is not installed, so encryption is not available.\n"
|
|
4008
|
-
' Install it with: pip install
|
|
4007
|
+
' Install it with: pip install rida-format'
|
|
4009
4008
|
)
|
|
4010
4009
|
args.encrypt = False
|
|
4011
4010
|
if not args.encrypt:
|
|
@@ -4338,8 +4337,8 @@ def _main() -> int:
|
|
|
4338
4337
|
if args.command == "build" and (getattr(args, "key", None) or getattr(args, "encrypt", False)):
|
|
4339
4338
|
if not _encryption.is_available():
|
|
4340
4339
|
print(
|
|
4341
|
-
"RIDA error: Data encryption needs the
|
|
4342
|
-
'Install it with: pip install
|
|
4340
|
+
"RIDA error: Data encryption needs the 'cryptography' dependency installed with RIDA. "
|
|
4341
|
+
'Install it with: pip install rida-format',
|
|
4343
4342
|
file=sys.stderr,
|
|
4344
4343
|
)
|
|
4345
4344
|
return 1
|
|
@@ -6,9 +6,9 @@ a scraper that reads the catalog region gets ciphertext, not LZMA data.
|
|
|
6
6
|
|
|
7
7
|
Keys are 256-bit (32 bytes), carried as URL-safe base64 strings (44 chars).
|
|
8
8
|
|
|
9
|
-
This module needs the
|
|
9
|
+
This module needs the ``cryptography`` package installed with RIDA::
|
|
10
10
|
|
|
11
|
-
pip install
|
|
11
|
+
pip install rida-format
|
|
12
12
|
|
|
13
13
|
Everything else in the library runs on the standard library alone, so a
|
|
14
14
|
build that never passes ``encrypt=True`` never touches this module.
|
|
@@ -37,14 +37,14 @@ def _load_aesgcm() -> object:
|
|
|
37
37
|
from cryptography.hazmat.primitives.ciphers.aead import AESGCM
|
|
38
38
|
except ImportError as exc: # pragma: no cover - depends on the environment
|
|
39
39
|
raise EncryptionUnavailable(
|
|
40
|
-
"
|
|
41
|
-
'Install it with: pip install
|
|
40
|
+
"Encryption needs the 'cryptography' dependency installed with RIDA. "
|
|
41
|
+
'Install it with: pip install rida-format'
|
|
42
42
|
) from exc
|
|
43
43
|
return AESGCM
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
def is_available() -> bool:
|
|
47
|
-
"""Return True when the
|
|
47
|
+
"""Return True when the encryption dependency is importable."""
|
|
48
48
|
try:
|
|
49
49
|
_load_aesgcm()
|
|
50
50
|
except EncryptionUnavailable:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rida-format
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.2
|
|
4
4
|
Summary: Range Indexed Data Access (RIDA) static data format and library
|
|
5
5
|
Author: Syed Ali Hamza Chishty
|
|
6
6
|
Maintainer-email: Qasra Foundation <admin@qasra.org>
|
|
@@ -19,11 +19,10 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
19
19
|
Requires-Python: >=3.10
|
|
20
20
|
Description-Content-Type: text/markdown
|
|
21
21
|
License-File: LICENSE
|
|
22
|
-
|
|
23
|
-
Requires-Dist: cryptography>=42.0; extra == "encryption"
|
|
22
|
+
Requires-Dist: cryptography>=42.0
|
|
24
23
|
Dynamic: license-file
|
|
25
24
|
|
|
26
|
-
# RIDA Python library — 2.0.
|
|
25
|
+
# RIDA Python library — 2.0.2
|
|
27
26
|
|
|
28
27
|
RIDA means **Range Indexed Data Access**. It is an installable Python library
|
|
29
28
|
and terminal tool that builds a RIDA dataset from a collection of JSON records.
|
|
@@ -64,7 +63,7 @@ case, and any JSON collection of the same shape behaves the same way.
|
|
|
64
63
|
From this project folder:
|
|
65
64
|
|
|
66
65
|
```sh
|
|
67
|
-
|
|
66
|
+
pip install .
|
|
68
67
|
```
|
|
69
68
|
|
|
70
69
|
After that, the `rida` command is available in the same Python environment.
|
|
@@ -74,7 +73,7 @@ account, or server process is required.
|
|
|
74
73
|
Install the published package with:
|
|
75
74
|
|
|
76
75
|
```sh
|
|
77
|
-
|
|
76
|
+
pip install rida-format
|
|
78
77
|
```
|
|
79
78
|
|
|
80
79
|
The PyPI package name is `rida-format`. After installation, the terminal
|
|
@@ -115,20 +114,12 @@ individual `.py` file: they use `import rida`, `rida ...`, or `python -m rida`.
|
|
|
115
114
|
## Requirements and downloads
|
|
116
115
|
|
|
117
116
|
- Python **3.10 or newer** and `pip` are required.
|
|
118
|
-
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
-
|
|
122
|
-
`
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
```sh
|
|
126
|
-
python3 -m pip install "rida-format[encryption]"
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
Everything else — building unencrypted files, local reads, remote reads,
|
|
130
|
-
verification — works without it. `rida.encryption_available()` reports
|
|
131
|
-
whether it is importable in the current environment.
|
|
117
|
+
- A single `pip install rida-format` installs RIDA and its `cryptography`
|
|
118
|
+
dependency. Building and reading encrypted datasets is included; there is
|
|
119
|
+
no separate encryption install or extra to choose.
|
|
120
|
+
- JSON, compression, hashing, and HTTP reads use Python's standard modules.
|
|
121
|
+
`rida.encryption_available()` reports whether the installed encryption
|
|
122
|
+
dependency can be imported in the current environment.
|
|
132
123
|
- The `rida` command has its own progress display for loading, scanning, value
|
|
133
124
|
writing, catalog compression, and final file writing. It does not require
|
|
134
125
|
`tqdm`.
|
|
@@ -480,7 +471,7 @@ rida verify UsersData.rida
|
|
|
480
471
|
|
|
481
472
|
## Where RIDA can read data
|
|
482
473
|
|
|
483
|
-
RIDA 2.0.
|
|
474
|
+
RIDA 2.0.2 can read a data file from the local computer or from a direct
|
|
484
475
|
HTTP/HTTPS file URL. For remote reads, RIDA sends ordinary HTTP byte-range
|
|
485
476
|
requests; it does not use a cloud-provider SDK. This makes it compatible with
|
|
486
477
|
object storage that returns the requested bytes as HTTP `206 Partial Content`
|
|
@@ -612,7 +603,7 @@ A data file that is served from a CDN is public. Encrypting it means a scraper
|
|
|
612
603
|
that downloads the file gets bytes it cannot read.
|
|
613
604
|
|
|
614
605
|
```sh
|
|
615
|
-
#
|
|
606
|
+
# Encryption support is included in pip install rida-format
|
|
616
607
|
rida build ./my-data ItemsData.rida --encrypt
|
|
617
608
|
```
|
|
618
609
|
|
|
@@ -670,7 +661,7 @@ client somehow, and a client that holds a key can be studied. Looking after the
|
|
|
670
661
|
key is the publisher's job, exactly like a password.
|
|
671
662
|
|
|
672
663
|
For access control tied to a user account on every read, keep the key on your
|
|
673
|
-
server, check permission there, and return decrypted content rather than the key. `rida.encryption_available()` tells you whether the
|
|
664
|
+
server, check permission there, and return decrypted content rather than the key. `rida.encryption_available()` tells you whether the encryption
|
|
674
665
|
dependency is present before you promise encryption to a caller.
|
|
675
666
|
|
|
676
667
|
### Encrypted data directly from your CDN
|
|
@@ -990,7 +981,7 @@ The filenames are source names, not guaranteed numbered record IDs. The map desc
|
|
|
990
981
|
|
|
991
982
|
## Current scope
|
|
992
983
|
|
|
993
|
-
RIDA 2.0.
|
|
984
|
+
RIDA 2.0.2 implements primary lookup — `record ID + field name → value` — plus
|
|
994
985
|
multi-field reads (`get_many`, `get_record`), numbered folder IDs with a map that
|
|
995
986
|
turns a name into one, a data-file integrity check, and optional AES-256-GCM
|
|
996
987
|
encryption of every stored value. Optional exact-match,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rida_format-2.0.1 → rida_format-2.0.2}/tests/fixtures/golden-v1-dictionary-sparseIndex.rida
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rida_format-2.0.1 → rida_format-2.0.2}/tests/fixtures/golden-v1-sequential-sparseIndex.rida
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|