Skip to main content

Do not quit using Django just because of Django Rest Framework, Django is JSOMe

Project description

Introduction

This is the documentation for the Djapy library, which is designed to let you make RESTful APIs within Django with as no boilerplate, using plain Python and Django, with the supremacy of Pydantic.

Djapy is molded according to Django's philosophy of "batteries included", and is designed to be as simple as possible to use, while still being powerful enough to handle most use cases.

@djapify
def get_user(request) -> {200: UserSchema, 404: str}:
    return request.user

It's that simple!

Installation

Djapy is available on PyPI, and can be installed with pip:

pip install djapy
# or pip install git+https://github.com/Bishwas-py/djapy.git@main

Creating a new project

To create a new project, run the following command:

django-admin startproject <project_name>

See sample: project. Fork project: bishwas-py/djapy.

More on this in the Usage section.

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

djapy-0.1.93.tar.gz (16.3 kB view hashes)

Uploaded Source

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