Saving and loading information in Python should be shorter and easier.
rlish is a Python package for simple and efficient data serialization and deserialization. It supports both pickle and joblib serialization methods, making it suitable for a wide range of data types, including large NumPy arrays and machine learning models.
https://github.com/andrewrgarcia/rlish/assets/10375211/0bb82ada-7974-44fe-8b04-371a948285ad
Installation
You can install rlish using pip:
pip install rlish
Usage
Saving Data
To save data, use the save function. You can choose between pickle and joblib formats:
import rlish
dictionary = {'a': 1, 'b': 2, 'c': 3}
tensor = np.random.randint(0,10,(200,200,200))
# Save dictionary using pickle
rlish.save(dictionary, 'my_dictio')
# Save data using joblib
rlish.save(tensor, 'huge_tensor', format='joblib')
Loading Data
To load data, use the load function:
# Load data saved with pickle
loaded_data_pickle = rlish.load('my_dictio')
# Load data saved with joblib
loaded_data_joblib = rlish.load('huge_tensor')
# Load your data with the format printed out (if you forgot)
loaded_data_joblib = rlish.load('huge_tensor', what_is=True)
Contributing
Contributions to rlish are welcome! Feel free to open an issue or submit a pull request.
Metadata
Release files for rlish 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rlish-1.0.1.tar.gz | 14.8 kB | Without provenance | Details for rlish-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rlish-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for rlish-1.0.1-py3-none-any.whl |
Total release size: 30.3 kB
Release files / rlish-1.0.1.tar.gz
| Download URL | rlish-1.0.1.tar.gz |
|---|---|
| Size | 14.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fea41e89c5e2e8a3ac477cc14bc5512fe2820774e796ad9ed5627c5b3657004a
|
|
BLAKE2b-256 checksum How to use checksums |
65009520f3253609ad28b278934826f206b6e9f951b097a86be18a3e35901b29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.10.11 Linux/6.5.0-44-generic
|
Release files / rlish-1.0.1-py3-none-any.whl
| Download URL | rlish-1.0.1-py3-none-any.whl |
|---|---|
| Size | 15.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5ba99c4638057aa40286aba0870e8089288bbf457fa8c39aae97d673693b01cd
|
|
BLAKE2b-256 checksum How to use checksums |
5c8bcde40b68f1ad33ebd8ea7e9ff0a976037d769d164472404788c6d5db4bfb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.10.11 Linux/6.5.0-44-generic
|
Security for rlish 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.