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.2.tar.gz
(5.2 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.2.tar.gz.
File metadata
- Download URL: Rest-In-Peace-0.2.2.tar.gz
- Upload date:
- Size: 5.2 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 |
a180a4649a4bc53060ee6e0d0122a8648087238fe4ec9e2af9abc1f3cdc8ba17
|
|
| MD5 |
93e7563b4cb377e5bb40e36c57f1d14f
|
|
| BLAKE2b-256 |
8722b7eac1fb605efce0b714abc07c003d4973ea864611eacdca1a369123a9df
|
File details
Details for the file Rest_In_Peace-0.2.2-py3-none-any.whl.
File metadata
- Download URL: Rest_In_Peace-0.2.2-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 |
6cae2b267332ea4ec692b8ceb45d0e4a07d8648949f8e636db277f06e9607a21
|
|
| MD5 |
ac64622815d0c2aea99673e9628af9e6
|
|
| BLAKE2b-256 |
027f6ed1c9357c90a6f043aa819c997d745fa4524b69c6b18f5f252c9d6b7094
|