Skip to main content

No project description provided

Project description

DRF http response

A DRF http custom response

Description

This a http response package for django rest framework custom response. This is only for any django projects which used drf for http response.

Dependencies

Djago DRF

Uses

Install it by runing

  • pip install drf-http-response

Import into your project

  • from drf_http_response import success, result, error

Use it in your http response

  • return success.get_response(message='Successfully Completed', status=200)

If you use any type of response without passing parameter into it. No problem it will always return a default message. For result.get_response() you can pass data or object as a message into it.

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

drf_http_response-0.0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

drf_http_response-0.0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file drf_http_response-0.0.1.0.tar.gz.

File metadata

  • Download URL: drf_http_response-0.0.1.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.4

File hashes

Hashes for drf_http_response-0.0.1.0.tar.gz
Algorithm Hash digest
SHA256 692f12f72c3adb18434b1df0d100fe536418efab4312a69e392262c416800c79
MD5 d05ff9be9532dce7b796d8a27ab208c4
BLAKE2b-256 0644078139ac7464ff1dc72eb93f04f3cf5dfcfafb6434d9baa6a5d1befa026c

See more details on using hashes here.

File details

Details for the file drf_http_response-0.0.1.0-py3-none-any.whl.

File metadata

  • Download URL: drf_http_response-0.0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.4

File hashes

Hashes for drf_http_response-0.0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1a0d400e6ef3c219e99e4d8e56f0754476065c1f0d696ce2aee9a0fdb3d7f34a
MD5 fb590fc4ffe49ecfcdb55bdd69b11089
BLAKE2b-256 9fd61394a8a39d27d5f99b92ea8f6530884e3306bcc634d5fe6621a2eec916e1

See more details on using hashes here.

Supported by

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