Restdb.io API Wrapper#

#

This package is an API Wrapper for the website restdb.io, which allows for online databases.

API - kivymd.tools.patterns.MVC.Model.database_restdb#

kivymd.tools.patterns.MVC.Model.database_restdb.get_connect(func, host='8.8.8.8', port=53, timeout=3)#

Checks for an active Internet connection.

class kivymd.tools.patterns.MVC.Model.database_restdb.DataBase#
name = 'RestDB'#
upload_file(path_to_file: str) dict | bool#

Uploads a file to the database. You can upload a file to the database only from a paid account.

get_data_from_collection(collection_address: str) bool | list#

Returns data of the selected collection from the database.

delete_doc_from_collection(collection_address: str) bool#

Delete data of the selected collection from the database.

Parameters:

collection_address – “database_url/id_collection”.

add_doc_to_collection(data: dict, collection_address: str) bool#

Add collection to the database.

edit_data(collection: dict, collection_address: str, collection_id: str) bool#

Modifies data in a collection of data in a database.