Skip to main content

django-uniapi

Django General/Universal API

Installation

pip install django-uniapi

Urls.py

urlpatterns = [
    url(r'^uniapi/', include('django_uniapi.urls', namespace='django_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'),
]

urlpatterns += [
    url(r'^set_cookie$', uni_views.set_cookie, name='set_cookie'),
    url(r'^del_cookie$', uni_views.del_cookie, name='del_cookie'),
    url(r'^del_cookie2$', uni_views.del_cookie2, name='del_cookie2'),
]

Settings.py

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

Release files for django-uniapi 1.0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-uniapi 1.0.11
File Size Uploaded
django-uniapi-1.0.11.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-uniapi 1.0.11
File Interpreter ABI Platform
django_uniapi-1.0.11-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 6.6 kB

Release files / django-uniapi-1.0.11.tar.gz

Download URL django-uniapi-1.0.11.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
376b49d452b33b7ed6a414b05cd05c083e5b2f90f2edd452fde7d795612852be
BLAKE2b-256 checksum
How to use checksums
6466ff57f051f9ae9cf1bb0e0f8439b9a4074cb538b56a070846d08fcf26e7a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release files / django_uniapi-1.0.11-py2.py3-none-any.whl

Download URL django_uniapi-1.0.11-py2.py3-none-any.whl
Size 3.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
79fbd5e9920266ccd87175cd54f199551674b188d3d73e8ef8d8df8c67616fee
BLAKE2b-256 checksum
How to use checksums
7bc288ba064fb266cda57a05d59e8b0bc98855b84a28d4657fb1132934920c0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release history Release notifications | RSS feed

This release

1.0.11 This release

2 release files

1.0.10

2 release files

1.0.9

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page