A module for reading and writing an RSV document file.
Project description
rsv.py
Description
A module for reading and writing an RSV document file.
Using
import rsv
sample_data = [
["Name", "Description", None],
[],
[None, ":)"]
]
with open("document.rsv", "wb") as file:
rsv.dump(sample_data, file)
# The first load method.
# It is the most efficient and suitable for working even with large arrays.
# Since it loads data from the file sequentially when loading.
with open("document.rsv", "rb") as file:
data = rsv.load(file)
# The second load method.
# It is suitable for working with small arrays.
# Since it loads the entire file into memory at once and only then parses it.
with open("document.rsv", "rb") as file:
data = rsv.load_split(file)
# The third load method.
# This is the most efficient possible method suitable for working with any arrays of any size.
# Loads the file line by line, the use of `for` is required.
with open("document.rsv", "rb") as file:
lines = []
for line in file.load_generator():
# And here you can do whatever you want...
lines.append(line)
Notes
It is also worth noting that no one forbids you to use the Encoder
/Decoder
directly:
import rsv
rsv_encoder = rsv.Encoder(open("document.rsv", "wb"))
rsv_decoder = rsv.Decoder(open("document.rsv", "rb"))
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file rsv-1.5.3.tar.gz
.
File metadata
- Download URL: rsv-1.5.3.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
96abe8e0fa1b2c865e1f40f24378b0230bd4dd8fb9d78fdb7a7f6cf7410936ca
|
|
MD5 |
f237ab61672f6371278827779d17c06a
|
|
BLAKE2b-256 |
017acd2f3abcf69353e2ba0e403af67cc4995cccae32bac3a3284cdcc2df7612
|
Provenance
The following attestation bundles were made for rsv-1.5.3.tar.gz
:
Publisher:
build.yml
on romanin-rf/rsv
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
rsv-1.5.3.tar.gz
-
Subject digest:
96abe8e0fa1b2c865e1f40f24378b0230bd4dd8fb9d78fdb7a7f6cf7410936ca
- Sigstore transparency entry: 197682688
- Sigstore integration time:
-
Permalink:
romanin-rf/rsv@c0e7d1eef5e385ac7d2f5204ad78265e78504340
-
Branch / Tag:
refs/heads/main
- Owner: https://github.com/romanin-rf
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
build.yml@c0e7d1eef5e385ac7d2f5204ad78265e78504340
-
Trigger Event:
push
-
Statement type:
File details
Details for the file rsv-1.5.3-cp313-cp313-win_amd64.whl
.
File metadata
- Download URL: rsv-1.5.3-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 55.6 kB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
d353f57383685da0c838cf471bd1671811047e9e2520beff47639dc86192a3ae
|
|
MD5 |
9b0fba8a8bf28d1a57939398455171dc
|
|
BLAKE2b-256 |
b1f359d413dca3646025eb93918464ad8523304fa23c3fe3bd09fdf383260e12
|
File details
Details for the file rsv-1.5.3-cp313-cp313-musllinux_1_2_x86_64.whl
.
File metadata
- Download URL: rsv-1.5.3-cp313-cp313-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 82.4 kB
- Tags: CPython 3.13, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
57a63af1e002d6a5703d4eb1ff6eafb5bd55041ee2085c2d89d3e227d1b5c969
|
|
MD5 |
db63e63fae400ffca90abf77d9a34967
|
|
BLAKE2b-256 |
1c753c87abb9c1a1ea4234f8ad3aa7469e9f19af31d91921a560dcf0dc543912
|
File details
Details for the file rsv-1.5.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: rsv-1.5.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 80.6 kB
- Tags: CPython 3.13, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
9bf385cab407ea0bb9ae7729af15ff5af97389e3a284c5ab710d87cddcae099c
|
|
MD5 |
f303961f76f51d5a0b17ebfdc5f148f9
|
|
BLAKE2b-256 |
5bd525d04a0aff6ff89684f5ba3db9c18ea757aac1209b3dde1cca05f81e3b0f
|
File details
Details for the file rsv-1.5.3-cp313-cp313-macosx_11_0_arm64.whl
.
File metadata
- Download URL: rsv-1.5.3-cp313-cp313-macosx_11_0_arm64.whl
- Upload date:
- Size: 61.3 kB
- Tags: CPython 3.13, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
49ec1c09c916831dadb4b8047544eb4c9a332b3c5517f69ee927ace65d7c27a8
|
|
MD5 |
0a10555954a5c854a5bbe6c2e970802e
|
|
BLAKE2b-256 |
d7849d700d8e286e57319da33d0e4e2bbd91d8d39eae73941308c2f371d4df6a
|
File details
Details for the file rsv-1.5.3-cp313-cp313-macosx_10_13_x86_64.whl
.
File metadata
- Download URL: rsv-1.5.3-cp313-cp313-macosx_10_13_x86_64.whl
- Upload date:
- Size: 63.2 kB
- Tags: CPython 3.13, macOS 10.13+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
7d1aa3f1bc14598a12046b384790c3ea3fe9ef96d2367084891cbca1a7db1dd4
|
|
MD5 |
fec2641c7682497f42e9d0edf12f35dd
|
|
BLAKE2b-256 |
1cec6f9d9e3f2412543d2fdf3caa73e823160b390af626b5f06f642993061753
|
File details
Details for the file rsv-1.5.3-cp312-cp312-win_amd64.whl
.
File metadata
- Download URL: rsv-1.5.3-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 55.6 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
4c5fe1c7fd85a5fe530c70207feb6d338f57da6c582d29bf8def90f32dad8854
|
|
MD5 |
5e7e8771bfb40c45c83972cf18f45976
|
|
BLAKE2b-256 |
ba84f8cc0b0e3796bfc2763d912ec60b488dd7359785890f139b348045e617de
|
File details
Details for the file rsv-1.5.3-cp312-cp312-musllinux_1_2_x86_64.whl
.
File metadata
- Download URL: rsv-1.5.3-cp312-cp312-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 82.5 kB
- Tags: CPython 3.12, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
2da1d94f5d273a4832d7a463390f43e3d1b8f9bdf74e36d3de2f2a51fd586bea
|
|
MD5 |
75c4411b4d293f789b389b1e2b1af2a5
|
|
BLAKE2b-256 |
5a87a3d67018bf8dddc4d8bd0ddd87b2618b766eb2eddca3c69a61aec4551584
|
File details
Details for the file rsv-1.5.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: rsv-1.5.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 80.8 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
b477637b1db4be092a0894038c0c60b2491abfe4adbee8b5e4728eb040d52a01
|
|
MD5 |
8edec3993f619df2f53c4cff484f05c2
|
|
BLAKE2b-256 |
77eb63a307e9b6ba31b0900902242f681592f7c5be900cc213ad902e96937f8e
|
File details
Details for the file rsv-1.5.3-cp312-cp312-macosx_11_0_arm64.whl
.
File metadata
- Download URL: rsv-1.5.3-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 61.3 kB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
7ae3e328232502a0b95b0bd71e3e7da361bcc1399bf42683302cb8e832c14aca
|
|
MD5 |
6b5df392f88232d52437f336160b22e3
|
|
BLAKE2b-256 |
92b6e70cf4cac1df7a10b3f11712669bac175275947694a046845dba5032faaa
|
File details
Details for the file rsv-1.5.3-cp312-cp312-macosx_10_13_x86_64.whl
.
File metadata
- Download URL: rsv-1.5.3-cp312-cp312-macosx_10_13_x86_64.whl
- Upload date:
- Size: 63.3 kB
- Tags: CPython 3.12, macOS 10.13+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
d5fc4b9d5cefbd06c6e7fbc8c84450ffe704e2aa60cc06771f0f82a45efbf47c
|
|
MD5 |
908c6106da86d47c6f8a19af05521a73
|
|
BLAKE2b-256 |
d6244c2515ecaea6989f0b27329eff022cbc1bc7d2bd2113935cb0926d730326
|
File details
Details for the file rsv-1.5.3-cp311-cp311-win_amd64.whl
.
File metadata
- Download URL: rsv-1.5.3-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 55.4 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
be3db6839adb57c15b2bcdc3ea4a7f1cf8a105604a0db52ac2976e56fa59ed12
|
|
MD5 |
112b5fa85bed9ce284b341a9c568171b
|
|
BLAKE2b-256 |
128ac459ee111878bdb75da212805d398893e2424e9e5c3773cd77aa4b0e6c20
|
File details
Details for the file rsv-1.5.3-cp311-cp311-musllinux_1_2_x86_64.whl
.
File metadata
- Download URL: rsv-1.5.3-cp311-cp311-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 81.2 kB
- Tags: CPython 3.11, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
3367b2bca1099707fb1ea097b47cb196e0a306e637d8514763dae05b18463bc1
|
|
MD5 |
79e7d0c0564126d94d40e8afcd69096e
|
|
BLAKE2b-256 |
814c614cfe0fb56fb797d4ca386353ec7d2e5d072c3ae3ea4cf11cf0744417e8
|
File details
Details for the file rsv-1.5.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: rsv-1.5.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 80.2 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
3025c67d506528dd27ed5ba349639a23cf9ac5bd3dc517d1ebf97a43d4de53b9
|
|
MD5 |
ff1abec01bac468f735fd2e568c37ead
|
|
BLAKE2b-256 |
55a7bf33ceeb5c6eef47e3a0bcd86371a581318c2abe276d3689a07d4b3fccb8
|
File details
Details for the file rsv-1.5.3-cp311-cp311-macosx_11_0_arm64.whl
.
File metadata
- Download URL: rsv-1.5.3-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 60.7 kB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
a28d6fc5c376267d77783afbc5d3c555a2fa1813c4b48a02f76e9bea08454a10
|
|
MD5 |
b600d63081d58e7f11e7fbbe9cc72dc1
|
|
BLAKE2b-256 |
cceb1f8b9243eef5e4e1f317d04106457155c3d92ff81d5e12ace4e3d8ccaa12
|
File details
Details for the file rsv-1.5.3-cp311-cp311-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: rsv-1.5.3-cp311-cp311-macosx_10_9_x86_64.whl
- Upload date:
- Size: 61.8 kB
- Tags: CPython 3.11, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
750325d4edc8c57a4221a22bf18597464d8d1059a80ab1c89668da0ab33718d1
|
|
MD5 |
e65f19b5bf51231cee6d522c43096a34
|
|
BLAKE2b-256 |
1bcce4590d38d8f9ad6a6d58982e93fa52b43c18268a1832e4bda78909a486fd
|
File details
Details for the file rsv-1.5.3-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: rsv-1.5.3-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 55.7 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
4be53ac2ab0aeb113361012d0b34d1faaef6af700fb20480e0ac952974904b49
|
|
MD5 |
4c24ed367a83f1368de0a25fbf47fc47
|
|
BLAKE2b-256 |
e0a1230804999fd8fa132028e28231be90981b29483f4aec8ccbf79176232af9
|
File details
Details for the file rsv-1.5.3-cp310-cp310-musllinux_1_2_x86_64.whl
.
File metadata
- Download URL: rsv-1.5.3-cp310-cp310-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 81.8 kB
- Tags: CPython 3.10, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
32bc9cb7903bc8bce4c232e070a3425b8477c782cf4410fc7742db6f97749747
|
|
MD5 |
784e6f2b97e2a1d3265d8ef1dcd6ff5d
|
|
BLAKE2b-256 |
a57472f5fc94422b1bc42ae29ff8294022abc8e3a80f2e2db65cfd3c82ae29cb
|
File details
Details for the file rsv-1.5.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: rsv-1.5.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 80.7 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
cc7d84d57e690f29f98bb0ab063eed894a764147d64d803d1a7ea357bb8b76d3
|
|
MD5 |
8aaa2fee401258f42827026b0c6081d3
|
|
BLAKE2b-256 |
6cffa6a5cb1f1d52c7098d83d460d3411e537c9c01297fb938996f505ae22b08
|
File details
Details for the file rsv-1.5.3-cp310-cp310-macosx_11_0_arm64.whl
.
File metadata
- Download URL: rsv-1.5.3-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 61.1 kB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
88f4a72664cd0d85f68a2bfaeafbfd351efe181791679b220344ab6fc86e82d1
|
|
MD5 |
33d8942ee23b024591d57782607e6505
|
|
BLAKE2b-256 |
3dcc8736349de86b35d1075861b447f611b067c2ff078ec823bd604af97acf79
|
File details
Details for the file rsv-1.5.3-cp310-cp310-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: rsv-1.5.3-cp310-cp310-macosx_10_9_x86_64.whl
- Upload date:
- Size: 62.2 kB
- Tags: CPython 3.10, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
35c25530fd90bfd8cc1692c1a19651af1a23c82ce8f9b4165079e5639fd6a4c4
|
|
MD5 |
6dc18e7b5b81c08a0390464d218919c0
|
|
BLAKE2b-256 |
b44713ddb834a0396a4167b101ed7175f527bc9b5d8479d6194743e791847dc2
|