Contents

django-ninja 1.5.3

0

Django Ninja - Fast Django REST framework

Django Ninja - Fast Django REST framework

Stars: 8902, Watchers: 8902, Forks: 559, Open Issues: 216

The vitalik/django-ninja repo was created 5 years ago and the last code push was 3 weeks ago.
The project is extremely popular with a mindblowing 8902 github stars!

How to Install django-ninja

You can install django-ninja using pip

pip install django-ninja

or add it to a project with poetry

poetry add django-ninja

Package Details

Author
Vitaliy Kucheryaviy
License
None
Homepage
https://django-ninja.dev
PyPi:
https://pypi.org/project/django-ninja/
Documentation:
https://django-ninja.dev
GitHub Repo:
https://github.com/vitalik/django-ninja

Classifiers

  • Internet
  • Internet/WWW/HTTP
  • Internet/WWW/HTTP/HTTP Servers
  • Software Development
  • Software Development/Libraries
  • Software Development/Libraries/Application Frameworks
  • Software Development/Libraries/Python Modules
No  django-ninja  pypi packages just yet.

Errors

A list of common django-ninja errors.

Code Examples

Here are some django-ninja code examples and snippets.

GitHub Issues

The django-ninja package has 216 open issues on GitHub

  • enable MISSING and NoDefault sentinel
  • [BUG] pydantics MISSING sentinel is not handled
  • [BUG] Python 3.14 annotations for "custom_fields" in ModelSchemaMetaclass not compatible
  • [BUG] TypeError: Cannot create a consistent method resolution order (MRO) for bases BaseModel, Generic, BasePaginatedResponseSchema
  • Union Annotated Types on Payload
  • Fix/issue 1634 union type model fields
  • [BUG] Authentication runs very late after view decorators
  • [BUG] Multiple authenticators do not work, only the first one is run and if it fails the whole request fails.
  • FormJson
  • fix: Forward reference resolution with decorated functions
  • Add path_params to context in ParamModel resolve
  • Bump codecov/codecov-action from 4.4.1 to 5.5.2
  • Convert examples array to OpenAPI map format
  • [BUG] OpenAPI schema generates invalid examples format for query parameters, breaking Swagger UI
  • [BUG] For optional fields using Union (type1 | type2), it raises exception.

See more issues on GitHub

Related Packages & Articles

drf-yasg 1.21.14

Automated generation of real Swagger/OpenAPI 2.0 schemas from Django Rest Framework code.

fastapi 0.129.0

FastAPI framework, high performance, easy to learn, fast to code, ready for production

apispec 6.9.0

A pluggable API specification generator. Currently supports the OpenAPI Specification (f.k.a. the Swagger specification).

pydantic-gen generates pydantic schemas from YAML files

pydantic-gen is a code generation python package that takes a YML file containing a OpenAPI Schema and generates python pydantic models. pydantic-gen can get used in your codebase to dynamically regenerate your pydantic models or it can be used one time to generator python code. The author of the pydantic-gen module is Mikhail Beliansky.