Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/wynwxst/jsondb
- Owner: wynwxst
- Created: 2021-07-28T09:33:04.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-30T03:40:49.000Z (over 3 years ago)
- Last Synced: 2024-11-13T04:34:02.445Z (2 months ago)
- Language: Python
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jsondb
An online json database for users to useever 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 jsondbdb = jsondb.connect(
{
"server": "https://jsondb.eris9.repl.co", # or put your own server
"key": f"", # insert key
"pwd": "12345"
}
)print(db)
```Writing:
```python
import jsondbdb = 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)
```