Skip to content

A free and open-source database for any language, plus an API for python

License

Notifications You must be signed in to change notification settings

Nicrom098195/JsonDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LogoJson DBLogo

An open-source DB written in Php and Json

GitHub release (latest by date) GitHub Repo stars GitHub forks

JsonDB is a simple DataBase system written in php and json, that can store online data and recover them in any programming language.

Getting an API key

To use JsonDB you can use the demo_key api key, but everyone can read the data in the demo_key DataBase.

You can get your own API key at this link, and use it. You can generate multiple API keys, and use them in different applications, or all in one big application.

Using Python library

Unfortunately, I have tried to upload on pypi, but it gives me so many errors. To install, you must to put the file in src/jsondb.py in the main directory of your project.

After installation, you can easy get datas from your JsonDB in python, with only three lines of code:

To store data:
import jsondb

jsondb.apikey("demo_key")
jsondb.storeValue("Tag", "Value")
To get data:
import jsondb 

jsondb.apikey("demo_key")
value = jsondb.geValue("Tag")
To get all the db:
import jsondb

jsondb.apikey("demo_key")
db = jsondb.getDb()

Using other languages

You can access to JsonDB in any programming language, or use my GUI to manage it.

To access JsonDB you must to make an HTTP request to some URLs

To store a value:
https://jsondb.nicrom09.repl.co/manage.php?action=store&api_key=demo_key&tag=Tag&value=Value
To get a value
https://jsondb.nicrom09.repl.co/manage.php?action=get&api_key=demo_key&tag=Tag
To get all the db
https://jsondb.nicrom09.repl.co/manage.php?action=getdb&api_key=demo_key

About

A free and open-source database for any language, plus an API for python

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages