Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wynwxst/jsondb

An online json database for users to use
https://github.com/wynwxst/jsondb

Last synced: 8 days ago
JSON representation

An online json database for users to use

Awesome Lists containing this project

README

        

# jsondb
An online json database for users to use

ever wanted to store json anywhere but locally?

This is your product then!

### Explanation:
Server.py - The API server which holds the data and sends/writes the data too.
Jsondb - The module made to utilise the API

### Examples:

Creation:
```python
import jsondb
key = jsondb.create({
"name":"my db",
"pwd": "12345"
})
```

Connection:
```python
import jsondb

db = jsondb.connect(
{
"server": "https://jsondb.eris9.repl.co", # or put your own server
"key": f"", # insert key
"pwd": "12345"
}
)

print(db)
```

Writing:

```python
import jsondb

db = jsondb.connect(
{
"server": "https://jsondb.eris9.repl.co", # or put your own server
"key": f"", # insert key
"pwd": "12345"
}
)

db["key"] = "value"
jsondb.write(db)
```