apininja
apininja is a simple CLI automation tool that generates a small boilerplate module
that serves as api for database models or other models. Currently it generates the basic
CRUD operations as well as functions for serializing a single object to dictionary.
Sample Output
A sample output for apininja MyModel
# API Created for my_model
def serialize_my_model(data):
return {"id": data.id}
def serialize_my_models(lst):
serialized = []
for item in lst:
serialized.append(serialize_my_model(item))
return serialized
def my_model_list_api(lst):
return serialize_my_models(lst)
def my_model_detail_api(data):
return serialize_my_model(data)
def my_model_create_api(*args, **kwargs):
pass
def my_model_update_api(*args, **kwargs):
pass
def my_model_delete_api(*args):
pass
Installation
pip install apininja
Usage
apininja UserModel
Metadata
Release files for apininja 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| apininja-0.1.9.tar.gz | 2.4 kB | Without provenance | Details for apininja-0.1.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| apininja-0.1.9-py3-none-any.whl | Python 3 | none | any | Details for apininja-0.1.9-py3-none-any.whl |
Total release size: 5.0 kB
Release files / apininja-0.1.9.tar.gz
| Download URL | apininja-0.1.9.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
66e505734dd27e976720489583d98078fd8be0699b7345fe5dcf8d7d8e7ebe61
|
|
BLAKE2b-256 checksum How to use checksums |
c5fd2e7a553f635c818afb3ec40365f5e4aaffe1a4f2e66d07547f05e7493d42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Release files / apininja-0.1.9-py3-none-any.whl
| Download URL | apininja-0.1.9-py3-none-any.whl |
|---|---|
| Size | 2.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
55858695047676790ef1fa1a44719eccc3a4dc0b92a9af4616ebce6cfbe33aec
|
|
BLAKE2b-256 checksum How to use checksums |
2c7f705ca067e662a7130fcccf38559bf7c5aaa22ace4a8b7c8df2b98b99ee94
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Security for apininja 0.1.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.