
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
.. image:: https://readthedocs.org/projects/django-tastypie/badge/ :target: https://django-tastypie.readthedocs.io/ :alt: Docs
.. image:: https://github.com/django-tastypie/django-tastypie/actions/workflows/python-package.yml/badge.svg :target: https://github.com/django-tastypie/django-tastypie/actions :alt: CI
.. image:: https://coveralls.io/repos/django-tastypie/django-tastypie/badge.svg?service=github :target: https://coveralls.io/github/django-tastypie/django-tastypie :alt: Code Coverage
.. image:: https://img.shields.io/pypi/v/django-tastypie.svg :target: https://pypi.python.org/pypi/django-tastypie :alt: Version
.. image:: https://pypi-badges.global.ssl.fastly.net/svg?package=django-tastypie&timeframe=monthly :target: https://pypi.python.org/pypi/django-tastypie :alt: Downloads
Creating delicious APIs for Django apps since 2010.
Currently in beta but being used actively in production on several sites.
A basic example looks like:
.. code:: python
# myapp/api.py
# ============
from tastypie.resources import ModelResource
from myapp.models import Entry
class EntryResource(ModelResource):
class Meta:
queryset = Entry.objects.all()
# urls.py
# =======
from django.urls.conf import re_path, include
from tastypie.api import Api
from myapp.api import EntryResource
v1_api = Api(api_name='v1')
v1_api.register(EntryResource())
urlpatterns = [
# The normal jazz here then...
re_path(r'^api/', include(v1_api.urls)),
]
That gets you a fully working, read-write API for the Entry
model that
supports all CRUD operations in a RESTful way. JSON/XML/YAML support is already
there, and it's easy to add related data/authentication/caching.
You can find more in the documentation at https://django-tastypie.readthedocs.io/.
There are other API frameworks out there for Django. You need to assess the options available and decide for yourself. That said, here are some common reasons for tastypie.
There are two primary ways of getting help.
StackOverflow
_ and post a question with the tastypie
tag.#tastypie on irc.freenode.net
_) to get help,
bounce an idea by us, or generally shoot the breeze... _StackOverflow
: https://stackoverflow.com/questions/tagged/tastypie
.. _#tastypie on irc.freenode.net: irc://irc.freenode.net/tastypie
Tastypie is committed to providing a flexible and secure API, and was designed with many security features and options in mind. Due to the complex nature of APIs and the constant discovery of new attack vectors and vulnerabilities, no software is immune to security holes. We rely on our community to report and help us investigate security issues.
If you come across a security hole please do not open a Github issue.
Instead, drop us an email at tastypie-security@googlegroups.com
We'll then work together to investigate and resolve the problem so we can announce a solution along with the vulnerability.
FAQs
A flexible & capable API layer for Django.
We found that django-tastypie demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.