Metadata-Version: 2.1
Name: json-store-client
Version: 0.0.1b1
Summary: A client library for jsonstore
Home-page: https://github.com/leon332157/json-store-client
Author: leon332157
Author-email: leon332157@gmail.com
License: UNKNOWN
Description: # json-store-client
        A Python client for [jsonstore.io](https://www.jsonstore.io/)
        
        ## Installation
        ```bash
        pip install json-store-client
        ```
        
        ## Usage
        
        #### Demo of storing a Python object with json-store-client on [repl.it](https://repl.it/@leon332157/json-store-client-demo).
        
        ```python
        import json_store_client
        
        jsonStoreToken = "..." # Insert your token here.
        client = json_store_client.Client(jsonStoreToken)
        
        # Save data to the "foo" key.
        client.store("foo", {"alfa": "bravo", "charlie": "delta"})
        
        # Get the data from the "foo" key.
        data = client.retrieve("foo")
        
        print(data["alfa"]) # => "bravo"
        
        # Deletes the data after printing parts of it.
        client.delete("foo")
        ```
        
        ## json-store-client API
        
        ### json_store_client.Client(token)
        
        Returns the client to use for data operations.
        
        ###### token (str): The API token from [jsonstore.io](https://www.jsonstore.io)
        
        
        ### client.store(key, data[, timeout])
        
        Storing data in jsonstore with a key
        
        ###### key (str): The key to be stored on jsonstore
        ###### data (any): The data to be stored under the key. It can be any Python objects. Will be processed with [jsonpickle](https://github.com/jsonpickle/jsonpickle)
        ###### timeout (int): The timeout for the http request. Default 5 seconds
        
        
        ### client.retrieve(key[, timeout])
        
        Retrieve data in jsonstore with a key
        
        ###### key (str): The key to get on jsonstore
        ###### timeout (int): The timeout for the http request. Default 5 seconds
        
        
        ### client.delete(key[, timeout])
        
        Delete data in jsonstore with a key
        
        ###### key (str): The key to get on jsonstore
        ###### timeout (int): The timeout for the http request. Default 5 seconds
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Internet
Description-Content-Type: text/markdown
