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 schema
GET /schema.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.1.2.tar.gz
(4.9 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.1.2.tar.gz.
File metadata
- Download URL: Rest-In-Peace-0.1.2.tar.gz
- Upload date:
- Size: 4.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 |
12c7d1d5f8109042c16e8d14da0af835c9b8c9b02cb0b78720ce5ec4f3debc7d
|
|
| MD5 |
d1531d0e0c7b017ecb3cf705cac7312f
|
|
| BLAKE2b-256 |
01ce76cc4203e45b7afd41e9de438cf1822f7a2af7380bd7eaa5f2083c04186f
|
File details
Details for the file Rest_In_Peace-0.1.2-py3-none-any.whl.
File metadata
- Download URL: Rest_In_Peace-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.8 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 |
8c025ea4f33ec3cb26ff8ddb2e3d99e6694cd60af33b1615224d635ee7411c58
|
|
| MD5 |
5c5a3c80e434a4eae6fbfd540b581f3e
|
|
| BLAKE2b-256 |
0e23b0e0c4e37f39aef9a459eeff2cf6e5a611e6095030ceabfd72fa79f4fc1a
|