Package: beardb
bearDBDatabase system implementing AES encrypted versions JSON of data. Easy to access, manage and deploy remotelyWeb DocumentationDatabase ArchitectureProject
 -Database
   -Bucket
      -DataOutlineInstall LibrariesImport LibrariesInitialize ProjectInsert Data into BucketFetch Data From IDFetch Data From QueryUpdata Data in Bucket From QueryUpdate Data From Bucket From IDDelete Data From Bucket From QueryWorking With BeardbAPIInstall Libraries$python3-mpipinstallbearDBImport LibrariesfrombeardbimportBeardbfrombeardbimportBucketInitialize Projectproject=Beardb('projectname')project.load_database('class')Initialize Bucket(DataBase File)users=Bucket(project=project,bucket_name='users')# Project variable defined in the initializationInsert Data into Bucketdata={'name':'Teddy Oweh','Random Data':'Golf'}users.insert(data=data)Fetch Data From IDuserinfo=users.fetchbyID(id="ae0ca44e-5301-11ed-8d24-a6bd5a94b3a6")Fetch Data From Queryquery={'name':'Teddy Oweh','Random Data':'Golf'}userinfo=users.fetchData(query=query)Updata Data in Bucket From Queryquery={'name':'Teddy Oweh','Random Data':'Golf'}newdata={'name':'Teddy Oweh','Random Data':'Ping Pong','Added Data':'College'}users.update(query=query,data=newdata)Update Data From Bucket From IDnewdata={'name':'Teddy Oweh','Random Data':'Ping Pong','Added Data':'College'}users.updatebyId(id='ae0ca44e-5301-11ed-8d24-a6bd5a94b3a6',data=newdata})Delete Data From Bucket From Queryquery={'name':'Teddy Oweh','Random Data':'Golf'}users.delete(query=query})Delete Data From Bucket From IDusers.deletebyId(id="ae0ca44e-5301-11ed-8d24-a6bd5a94b3a6")### Test Code```pybeardb_=Beardb('projects')beardb_.load_database('computers')computers=Bucket(beardb_,'computers')computers.insert({'model':'lenovo','ram':'8gb','hdd':'1tb','processor':'i5'})Working with BeardbAPIIn Order to communicate with the microservicebeardbAPIdeploys when launched. This client Library consumes APIs effienctly and returns the data and status code.OutlineImport LibraryInitialize Client ObjectGet User DataCreate New ProjectCreate New DatabaseCreate New BucketInsert DataFetch Data by QueryFetch Data by IDUpdate Data by QueryUpdate Data by IDDelete Data by QueryDelete Data by IDGet BucketsGet DatabasesGet ProjectsImporting LibraryfrombeardbimportClientInitialize Client ObjectWhenever a new user is created, is always returns the secret to be able to access the data.host='127.0.0.1'port=5555email='teddyoweh@gmail.com'secret='3687065edf2fdc64bbeb8cdac409ac352fdb65f01423159842d19283309cb70c'client=Client(host=host,port=port,email=email,secret=secret)Get User Datacient.mydata()Create New Useremail='teddyoweh@gmail.com'password='myrealpassword'fullname='Teddy Oweh'client.createnewuser(fullname=fullnameemail=emailpassword=password)Create New Projectproject='TestProject'client.createnewproject(project=project)Create New Databaseproject='TestProject'database='TestDatabase'client.createnewdatabase(project=project,database=database)Create New Bucketproject='TestProject'database='TestDatabase'bucket='TestBucket'client.createnewbucket(project=project,database=database,bucket=bucket)Insert Dataproject='TestProject'database='TestDatabase'bucket='TestBucket'data={'name':'teddy',age:1}client.insertdata(project=project,database=database,bucket=bucket)Fetch Data by Queryproject='TestProject'database='TestDatabase'bucket='TestBucket'query={'name':'teddy',age:1}client.fetchdata(project=project,database=database,bucket=bucket,query=query)Fetch Data by IDproject='TestProject'database='TestDatabase'bucket='TestBucket'id='b419840a-7e04-11ed-84f8-324d38bf6d75'client.fetchBYID(project=project,database=database,bucket=bucket,id=id)Update Data by Queryproject='TestProject'database='TestDatabase'bucket='TestBucket'data={'name':'teddy',age:1}query='{name':'teddy'}client.updatedata(project=project,database=database,bucket=bucket,data=data,query=query)Update Data by IDproject='TestProject'database='TestDatabase'bucket='TestBucket'data={'name':'teddy',age:1}id='b419840a-7e04-11ed-84f8-324d38bf6d75'client.updatebyid(project=project,database=database,bucket=bucket,data=data,id=id)Delete Data by Queryproject='TestProject'database='TestDatabase'bucket='TestBucket'query={'name':'teddy',age:1}client.deletedata(project=project,database=database,bucket=bucket,query=query)Delete Data by IDproject='TestProject'database='TestDatabase'bucket='TestBucket'id='b419840a-7e04-11ed-84f8-324d38bf6d75'client.deletebyid(project=project,database=database,bucket=bucket,id=id)Get Bucketsclient.getbuckets()Get Databasesclient.getdatabases()Get Projectscient.getprojects()LicenseMIT LicenseCopyright (c) 2022 Teddy Owehteddyoweh built itdi