Skip to main content

No project description provided

Project description

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.

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

rlish-1.0.1.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

rlish-1.0.1-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file rlish-1.0.1.tar.gz.

File metadata

  • Download URL: rlish-1.0.1.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.11 Linux/6.5.0-44-generic

File hashes

Hashes for rlish-1.0.1.tar.gz
Algorithm Hash digest
SHA256 fea41e89c5e2e8a3ac477cc14bc5512fe2820774e796ad9ed5627c5b3657004a
MD5 fd94467b65c40aa5165508c96fe8c5ed
BLAKE2b-256 65009520f3253609ad28b278934826f206b6e9f951b097a86be18a3e35901b29

See more details on using hashes here.

File details

Details for the file rlish-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: rlish-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.11 Linux/6.5.0-44-generic

File hashes

Hashes for rlish-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5ba99c4638057aa40286aba0870e8089288bbf457fa8c39aae97d673693b01cd
MD5 f919fcf17aaf38419b93b53b80ad4724
BLAKE2b-256 5c8bcde40b68f1ad33ebd8ea7e9ff0a976037d769d164472404788c6d5db4bfb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page