An instant and schemaless rest api with sqlite
Project description
Rest-In-Peace (Database API)
What is this?
It's a database abstraction to use as a REST API with zero config.
How to use
$ pip install rest-in-peace
$ rest-in-peace database.db 8000
Routes
Static server. Return 'public/index.html' (Tip: Download and use Swagger here)
GET /
Return API definitions
GET /openapi.json
Return all items from collection
GET /{collection}
Delete collection
DELETE /{collection}
Get a specific item
GET /{collection}/{id}
Create an item
POST /{collection}/{id}
DATA 'Data'
Update an item
PUT /{collection}/{id}
DATA 'Data'
Delete an item
DELETE /{collection}/{id}
Tests
python tests
Next steps
- Auth / Roles
- Dynamic / Static schema
- SQL Injection fix
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Rest-In-Peace-0.3.2.tar.gz.
File metadata
- Download URL: Rest-In-Peace-0.3.2.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c22fbdf7b04783f33a5c0a5de0601f148a1fc178011c87b7290742060b00bf7
|
|
| MD5 |
a3332b6619c3f21b35489c004d950964
|
|
| BLAKE2b-256 |
b3da28f17af42be53d19ce1fdf5eba1090a81268217279912c5c2711a2f69b83
|
File details
Details for the file Rest_In_Peace-0.3.2-py3-none-any.whl.
File metadata
- Download URL: Rest_In_Peace-0.3.2-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e980465b4434d6219b9570e6c46e548ab4c109a9775239a116d575daaf7a262f
|
|
| MD5 |
bb87c05eebe33e8ba1bcb46243ebb110
|
|
| BLAKE2b-256 |
fd5971213ef22ad204df8768f3c873e1960c6ec9b197b20672d92d668f675012
|