GithubHelp home page GithubHelp logo

andrewrgarcia / rlish Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 310 KB

Saving and loading data in Python has never been easier!

Home Page: https://pypi.org/project/rlish/

License: GNU General Public License v3.0

Python 100.00%
load pickle save save-files serialization

rlish's Introduction

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.

simplescreenrecorder-2024-06-23_11.09.05.mp4

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.

rlish's People

Contributors

andrewrgarcia avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.