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(self, path_to_file: str)#

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

get_data_from_collection(self, collection_address: str)#

Returns data of the selected collection from the database.

delete_doc_from_collection(self, collection_address: str)#

Delete data of the selected collection from the database.

Parameters:

collection_address – “database_url/id_collection”.

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

Add collection to the database.

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

Modifies data in a collection of data in a database.