Skip to main content

License Documentation Status

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)

Source distribution for rlish 1.0.1
File Size Uploaded
rlish-1.0.1.tar.gz 14.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rlish 1.0.1
File Interpreter ABI Platform
rlish-1.0.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page