Skip to main content

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


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.3.1.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Rest_In_Peace-0.3.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file Rest-In-Peace-0.3.1.tar.gz.

File metadata

  • Download URL: Rest-In-Peace-0.3.1.tar.gz
  • Upload date:
  • Size: 5.8 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

Hashes for Rest-In-Peace-0.3.1.tar.gz
Algorithm Hash digest
SHA256 b3798ef7dbd068bb837158fdb8a5fc8c120ace53c136887fbe9b0b71babd0bc6
MD5 5a8634ae8e251eeb26bc49611ad05e5f
BLAKE2b-256 c1a98234ce64711b1b52e5f54dad950fe9c6298f537150cb24ae54cef250a9b0

See more details on using hashes here.

File details

Details for the file Rest_In_Peace-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: Rest_In_Peace-0.3.1-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

Hashes for Rest_In_Peace-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d9658ac2d6da05b6309edd771bab87a2b1283ba5a7c288e73ca62b191baeddc0
MD5 2ce4f56922a767f157e652eec7b7c9cc
BLAKE2b-256 c4af24e3c47c459a0ab0d86e292f850768b4cb5d34200a9086a27fe00cadf627

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page