django-uniapi


Namedjango-uniapi JSON
Version 1.0.11 PyPI version JSON
download
home_pagehttps://github.com/django-xxx/django-uniapi
SummaryDjango General/Universal API
upload_time2023-02-03 07:30:28
maintainer
docs_urlNone
authorHackathon
requires_python
license
keywords django-uniapi
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # django-uniapi
Django General/Universal API

## Installation
```shell
pip install django-uniapi
```

## Urls.py
```python
urlpatterns = [
    url(r'^uniapi/', include('django_uniapi.urls', namespace='django_uniapi')),
]
```
or
```python
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
```python
INSTALLED_APPS = (
    ...
    'django_uniapi',
    ...
)
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/django-xxx/django-uniapi",
    "name": "django-uniapi",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "django-uniapi",
    "author": "Hackathon",
    "author_email": "kimi.huang@brightcells.com",
    "download_url": "https://files.pythonhosted.org/packages/64/66/ff57f051f9ae9cf1bb0e0f8439b9a4074cb538b56a070846d08fcf26e7a7/django-uniapi-1.0.11.tar.gz",
    "platform": null,
    "description": "# django-uniapi\nDjango General/Universal API\n\n## Installation\n```shell\npip install django-uniapi\n```\n\n## Urls.py\n```python\nurlpatterns = [\n    url(r'^uniapi/', include('django_uniapi.urls', namespace='django_uniapi')),\n]\n```\nor\n```python\nfrom django.conf.urls import include, url\nfrom django_uniapi import views as uni_views\n\nurlpatterns = [\n    url(r'^status$', uni_views.server_status, name='server_status'),\n    url(r'^time$', uni_views.server_time, name='server_time'),\n    url(r'^error$', uni_views.raise_error, name='raise_error'),\n]\n\nurlpatterns += [\n    url(r'^set_cookie$', uni_views.set_cookie, name='set_cookie'),\n    url(r'^del_cookie$', uni_views.del_cookie, name='del_cookie'),\n    url(r'^del_cookie2$', uni_views.del_cookie2, name='del_cookie2'),\n]\n```\n\n## Settings.py\n```python\nINSTALLED_APPS = (\n    ...\n    'django_uniapi',\n    ...\n)\n```\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Django General/Universal API",
    "version": "1.0.11",
    "split_keywords": [
        "django-uniapi"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7bc288ba064fb266cda57a05d59e8b0bc98855b84a28d4657fb1132934920c0b",
                "md5": "ec68ba106d10559eca94e4a6d9885fd6",
                "sha256": "79fbd5e9920266ccd87175cd54f199551674b188d3d73e8ef8d8df8c67616fee"
            },
            "downloads": -1,
            "filename": "django_uniapi-1.0.11-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ec68ba106d10559eca94e4a6d9885fd6",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 3714,
            "upload_time": "2023-02-03T07:30:26",
            "upload_time_iso_8601": "2023-02-03T07:30:26.449538Z",
            "url": "https://files.pythonhosted.org/packages/7b/c2/88ba064fb266cda57a05d59e8b0bc98855b84a28d4657fb1132934920c0b/django_uniapi-1.0.11-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6466ff57f051f9ae9cf1bb0e0f8439b9a4074cb538b56a070846d08fcf26e7a7",
                "md5": "a0b65ace20d0bc662c7e4c435ca7a6d7",
                "sha256": "376b49d452b33b7ed6a414b05cd05c083e5b2f90f2edd452fde7d795612852be"
            },
            "downloads": -1,
            "filename": "django-uniapi-1.0.11.tar.gz",
            "has_sig": false,
            "md5_digest": "a0b65ace20d0bc662c7e4c435ca7a6d7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2862,
            "upload_time": "2023-02-03T07:30:28",
            "upload_time_iso_8601": "2023-02-03T07:30:28.604127Z",
            "url": "https://files.pythonhosted.org/packages/64/66/ff57f051f9ae9cf1bb0e0f8439b9a4074cb538b56a070846d08fcf26e7a7/django-uniapi-1.0.11.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-02-03 07:30:28",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "django-xxx",
    "github_project": "django-uniapi",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "django-uniapi"
}
        
Elapsed time: 0.04904s