Django Easy API - Easy and Fast Django REST framework based on Django-ninja-extra
Project description
Django Easy API Framework
Easy and Fast Django REST framework based on Django-ninja-extra
- Auto CRUD Async API generation for all django models, configurable via Meta class
- Domain/Service/Controller base structure for better code organization
- Base Permission/Response/Exception classes and more to come
- Pure class based Django-Ninja APIs, based on Django-Ninja-extra
Django-Ninja features :
Easy: Designed to be easy to use and intuitive.
FAST execution: Very high performance thanks to Pydantic and async support.
Fast to code: Type hints and automatic docs lets you focus only on business logic.
Standards-based: Based on the open standards for APIs: OpenAPI (previously known as Swagger) and JSON Schema.
Django friendly: (obviously) has good integration with the Django core and ORM.
Plus Extra:
Class Based: Design your APIs in a class based fashion.
Permissions: Protect endpoint(s) at ease with defined permissions and authorizations at route level or controller level.
Dependency Injection: Controller classes supports dependency injection with python Injector or django_injector. Giving you the ability to inject API dependable services to APIController class and utilizing them where needed
Requirements
- Python >= 3.6
- Django >= 3.1
- pydantic >= 1.6
- Django-Ninja-extra >= 0.15.0
Install
pip install django-api-framework
Then add "easy" to your django INSTALLED_APPS:
[
...,
"easy",
...,
]
Get your admin api up and running:
api_admin_v1 = EasyAPI(
urls_namespace="admin_api",
version="v1.0.0",
)
# Automatic Admin API generation
api_admin_v1.auto_create_admin_controllers()
Please check tests/demo_app for more.
Boilerplate Django project
A boilerplate Django project for quickly getting started: https://github.com/freemindcore/django-easy-api
Note: this project is still in early stage, comments and advices are highly appreciated.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-api-framework-0.1.21.tar.gz
(463.9 kB
view hashes)
Built Distribution
Close
Hashes for django-api-framework-0.1.21.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d642d7676ee26c13e7ff5fa63b0acfd2422070ea686ec9c181264abd4cb8bfb |
|
MD5 | ccfc937fdc9cc75e19d00a9592500848 |
|
BLAKE2b-256 | f5d542170050b983a03023b33b342a6ca003d0b043cec52cd0aa39d9c2041e95 |
Close
Hashes for django_api_framework-0.1.21-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4fa9eaf6d4820bf9d49447f89b64264ddabcc4f9ba6d82a1afe9b59a25044d3 |
|
MD5 | 9da3848ff2edeebd50e5d5f8d5d69d1f |
|
BLAKE2b-256 | 6e9f02278cb6aeb6111cf1a695e403bf0183f211385f7a83698cde66ad9ef1b1 |