MemoryCasheDataBase_Client
Python API module for MemoryCasheDataBase_Server - this module is a Python client library for connect to DB MemoryCasheDataBase_Server
MemoryCasheDataBase is collaborative project management that streamlines and refines your existing workflow. The intuitive and powerful project management platform loved by software teams of all sizes. Clubhouse is here.
Installation
Install the current version with PyPI:
pip install MkCasheDB_API
Start project
import MkCasheDB_API;
Example
Add record(s) in DataBase.
NewMemoryCasheDataBase_Client : MkCasheDB_API.MemoryCasheDataBase_Client = MkCasheDB_API.MemoryCasheDataBase_Client()
print(NewMemoryCasheDataBase_Client.AddRangeRecords( RequestDictionary = dict( ( ( "Key", "Value" ), ( "Key #2", "Value #2" ) ) ) ))
Change record(s) in DataBase.
NewMemoryCasheDataBase_Client : MkCasheDB_API.MemoryCasheDataBase_Client = MkCasheDB_API.MemoryCasheDataBase_Client()
print(NewMemoryCasheDataBase_Client.ChangeRangeRecords( RequestDictionary = dict( ( ( "Key", "ValueNew" ), ) ) ))
Get record(s) from DataBase.
NewMemoryCasheDataBase_Client : MkCasheDB_API.MemoryCasheDataBase_Client = MkCasheDB_API.MemoryCasheDataBase_Client()
print(NewMemoryCasheDataBase_Client.GetRangeRecords( RequestTuple = ( "Key", "Key #2" ) ))
Delete record(s) from DataBase.
NewMemoryCasheDataBase_Client : MkCasheDB_API.MemoryCasheDataBase_Client = MkCasheDB_API.MemoryCasheDataBase_Client()
print(NewMemoryCasheDataBase_Client.DeleteRangeRecords( RequestTuple = ( "Key #2", ) ))
Add file in DataBase.
NewMemoryCasheDataBase_Client : MkCasheDB_API.MemoryCasheDataBase_Client = MkCasheDB_API.MemoryCasheDataBase_Client()
with open("Image.JPG", "rb") as FileRead:
print(NewMemoryCasheDataBase_Client.AddFile("ImageDB", FileRead.read()));
Get file from DataBase.
NewMemoryCasheDataBase_Client : MkCasheDB_API.MemoryCasheDataBase_Client = MkCasheDB_API.MemoryCasheDataBase_Client()
with open("ImageCopy.JPG", "wb") as FileWrite:
FileWrite.write(NewMemoryCasheDataBase_Client.GetFile("ImageDB"));
Contributing
Bug reports and/or pull requests are welcome
License
The module is available as open source under the terms of the Apache License, Version 2.0