Skip to main content

Django General/Universal API

Project description

Django General/Universal API

Installation

pip install django-uniapi

Urls.py

urlpatterns = [
    url(r'^uniapi/', include('django_uniapi.urls', namespace='uniapi')),
]

or:

from django.conf.urls import include, url
from django_uniapi import views as uni_views

urlpatterns = [
    url(r'^status$', uni_views.server_status, name='server_status'),
    url(r'^time$', uni_views.server_time, name='server_time'),
    url(r'^error$', uni_views.raise_error, name='raise_error'),
]

Settings.py

INSTALLED_APPS = (
    ...
    'django_uniapi',
    ...
)

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

django-uniapi-1.0.5.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

django_uniapi-1.0.5-py2.py3-none-any.whl (3.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-uniapi-1.0.5.tar.gz.

File metadata

  • Download URL: django-uniapi-1.0.5.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.8 CPython/2.7.12+

File hashes

Hashes for django-uniapi-1.0.5.tar.gz
Algorithm Hash digest
SHA256 3e37e2c47b89d6c3d5978c8f65eba2e075258822be05b6eb5dda8ed44252aa98
MD5 92a2f105e5a0866c0da77695175892f7
BLAKE2b-256 cfc71c430f3ae21aa402c7a3d93be6b8e476dc4a40a7a6ba5bcebce10326da8d

See more details on using hashes here.

File details

Details for the file django_uniapi-1.0.5-py2.py3-none-any.whl.

File metadata

  • Download URL: django_uniapi-1.0.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.8 CPython/2.7.12+

File hashes

Hashes for django_uniapi-1.0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1ed54b6e3d8cb42237da1ceac3c0fa6687d2f0e72870631fa330f26461d1ec3d
MD5 848a5532a6bfc7b05134b329679036da
BLAKE2b-256 0c9a0fcd7c163eaec6c456dc29457fd55c9d9b0ef3ad77fb350721f3a532a31e

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