easy

DataStore

Free simple, easy to use datastore!

Get started with free storage. We allow you to create an acoount and have free storage up to one gb. You can use this to store simple information for small test projects!

Save data in python

The save() function allows you to store data using EasyDataStore. It takes three arguments: username (your account username), password (your account password), and data (the information you want to save). It sends this information to the API using a POST request. The function returns True if the data was successfully saved, or False if the operation failed, for example because the login information was incorrect.

                
                                    API_URL = "https://data.easydatastore.com"
                def save(username, password, data):
                    response = requests.post(
                        API_URL,
                        json={
                            "action": "save",
                            "username": username,
                            "password": password,
                            "data": data
                        }
                    )
                    return response.json()
                
               

Get data in python

The get() function retrieves previously saved data from EasyDataStore. It takes two arguments: username (your account username) and password (your account password). It sends this information to the API, which checks your login credentials and retrieves your saved data. The function returns your saved data as a Python dictionary. If the username or password is incorrect, or the data cannot be found, it returns None.

                
                                    def get(username, password):
                        response = requests.post(
                            API_URL,
                            json={
                                "action": "get",
                                "username": username,
                                "password": password
                            }
                        )

                        return response.json()


                    # Example
                    result = get("John", "1234")
                    print(result)                   
                
               

Save data in JavaScript

The save() function allows you to store data using EasyDataStore. It takes three arguments: username (your account username), password (your account password), and data (the information you want to save). It sends this information to the API using a POST request. The function returns true if the data was successfully saved, or false if the operation failed.

const API_URL = "https://data.easydatastore.com";

            async function save(username, password, data) {
                const response = await fetch(API_URL, {
                    method: "POST",
                    headers: {
                        "Content-Type": "application/json"
                    },
                    body: JSON.stringify({
                        action: "save",
                        username: username,
                        password: password,
                        data: data
                    })
                });

                return await response.json();
            }

            // Example
            const result = await save("John", "1234", { score: 100 });
            console.log(result);

Get data in JavaScript

The get() function retrieves previously saved data from EasyDataStore. It takes two arguments: username and password. It sends these credentials to the API, which checks your login information and retrieves your saved data. The function returns your saved data as a JavaScript object. If the username or password is incorrect, or the data cannot be found, it returns null.

async function get(username, password) {
                const response = await fetch(API_URL, {
                    method: "POST",
                    headers: {
                        "Content-Type": "application/json"
                    },
                    body: JSON.stringify({
                        action: "get",
                        username: username,
                        password: password
                    })
                });

                return await response.json();
            }

            // Example
            const result = await get("John", "1234");
            console.log(result);