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'
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}
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
Rest-In-Peace-0.2.1.tar.gz
(5.3 kB
view details)
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.2.1.tar.gz.
File metadata
- Download URL: Rest-In-Peace-0.2.1.tar.gz
- Upload date:
- Size: 5.3 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 |
38ded5d853e23d69a7c59d27c88152d727f64cd40bdedb86b2edc6f609e309e6
|
|
| MD5 |
8dc3d5596d3c3a2ef9eaf8ad4c24173d
|
|
| BLAKE2b-256 |
be3fdce7dc574fd7ffa7d232edc40397535ff6ea18b2b7b3356016b3057dd9ee
|
File details
Details for the file Rest_In_Peace-0.2.1-py3-none-any.whl.
File metadata
- Download URL: Rest_In_Peace-0.2.1-py3-none-any.whl
- Upload date:
- Size: 6.2 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 |
998608ddce4fb52874410cbfba841c02f56d3592eb0fb3f78a1283f2aaca0ab5
|
|
| MD5 |
8c0247f70e9732577b533929bcc047c4
|
|
| BLAKE2b-256 |
015b392812124dc942863b08b91ed8d94020631027a34bf01daa2de3e531944f
|