ADREST
Adrest is Another Django REST. Django application for simple make HTTP REST API.
Documentation in construction.
Requirements
Python 2.7
Django (1.5, 1.6, 1.7)
Installation
ADRest should be installed using pip:
pip install adrest
Quick start
from adrest import Api, ResourceView
api = Api('v1')
@api.register
class BookResource(ResourceView):
class Meta:
allowed_methods = 'get', 'post'
model = 'app.book'
urlpatterns = api.urls
Setup
Adrest settings (default values):
# Enable logs ADREST_ACCESS_LOG = False # Auto create adrest access key for User ADREST_AUTO_CREATE_ACCESSKEY = False # Max resources per page in list views ADREST_LIMIT_PER_PAGE = 50 # Display django standart technical 500 page ADREST_DEBUG = False # Limit request number per second from same identifier, null is not limited ADREST_THROTTLE_AT = 120 ADREST_THROTTLE_TIMEFRAME = 60 # We do not restrict access for OPTIONS request ADREST_AUTHENTICATE_OPTIONS_REQUEST = False
Use adrest
See test/examples in ADREST sources.
Bug tracker
If you have any suggestions, bug reports or annoyances please report them to the issue tracker at https://github.com/klen/adrest/issues
Contributing
Development of adrest happens at github: https://github.com/klen/adrest
Contributors
klen (Kirill Klenov)
License
Licensed under a GNU lesser general public license.
Metadata
Release files for adrest 3.3.2
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 |
|---|---|---|---|---|
| adrest-3.3.2.tar.gz | 97.3 kB | Without provenance | Details for adrest-3.3.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| adrest-3.3.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for adrest-3.3.2-py2.py3-none-any.whl |
Total release size: 175.0 kB
Release files / adrest-3.3.2.tar.gz
| Download URL | adrest-3.3.2.tar.gz |
|---|---|
| Size | 97.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
66a90b900e9e962618d0c0bb52a999feb09e67c0af8f65c2331c1a8c360e9b8c
|
|
BLAKE2b-256 checksum How to use checksums |
99b2d41060610b463ca04662f724b3ec1344820c54bc0ed00972846ea79dbf06
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / adrest-3.3.2-py2.py3-none-any.whl
| Download URL | adrest-3.3.2-py2.py3-none-any.whl |
|---|---|
| Size | 77.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
25d1105939278f6ce4cd57dd1e9a4589bd46d2fe94c9f772a18fa85bdb03b7f9
|
|
BLAKE2b-256 checksum How to use checksums |
2a6aeae9d38c79a00a9ec23f9522e56bca8eeb8fb1f04a70a4b0ad29d944be63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for adrest 3.3.2
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.