Skip to main content

Adrest - Another Django REST. Simple application for quick build REST API.

Project description

Adrest is Another Django REST. Django application for simple make HTTP REST API.

Documentation in construction.

Build Status Coverals Version Downloads License Donate

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.

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

adrest-3.3.1.tar.gz (97.3 kB view details)

Uploaded Source

Built Distribution

adrest-3.3.1-py2.py3-none-any.whl (77.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file adrest-3.3.1.tar.gz.

File metadata

  • Download URL: adrest-3.3.1.tar.gz
  • Upload date:
  • Size: 97.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for adrest-3.3.1.tar.gz
Algorithm Hash digest
SHA256 3344616d68346d1b6f2540b6ca1fd3faa4dfb106a0eab7b1d4f69302cefc8299
MD5 4496e4e10ba404ec5c4e4eef7cf35439
BLAKE2b-256 2e2de3b07ef999a72e2647457bf7cbd97b776eee87fb5a37904a90fa12262d8c

See more details on using hashes here.

File details

Details for the file adrest-3.3.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for adrest-3.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d9a40274f6c11b6f52dde792c8eb6f1f5e1564fbfd3f0bbde64c8eb3cde867eb
MD5 7f824aedf732356957a87fd0204e931e
BLAKE2b-256 677060c6e8905b53ae32ef67fc4be7723ced66c91237dd34cbdcb4d2ff2d3188

See more details on using hashes here.

Supported by

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