Django Fiction Outlines API
A RESTful JSON API for django-fiction-outlines.
Documentation
The full documentation is at https://django-fiction-outlines-api.readthedocs.io. The source code can be found at https://github.com/maceoutliner/django-fiction-outlines-api/.
Quickstart
Install Django Fiction Outlines API:
pip install django-fiction-outlines-api
Add it and dependencies to your INSTALLED_APPS:
INSTALLED_APPS = (
...
'
'rest_framework',
'taggit',
'rules.apps.AutodiscoverRulesConfig',
'rest_framework_rules',
'fiction_outlines',
'fiction_outlines_api',
...
)
If you have not already, add rules to you AUTHENTICATION_BACKENDS.
AUTHENTICATION_BACKENDS = (
'rules.permissions.ObjectPermissionBackend',
'django.contrib.auth.backends.ModelBackend',
)
Unless you like to live dangerously, it is STRONGLY recommend you configure whichever database you use for outlines to have ATOMIC_REQUESTS to True.
DATABASES = {
"default": {
"ENGINE": "django.db.backends.postgresql",
"NAME": "outlines",
"ATOMIC_REQUESTS": True,
}}
Add Django Fiction Outlines API’s URL patterns:
from fiction_outlines_api import urls as fiction_outlines_api_urls
urlpatterns = [
...
url(r'^', include(fiction_outlines_api_urls)),
...
]
If you haven’t already installed fiction_outlines you should run python manage.py migrate now.
Features
Provides a RESTful API for django-fiction-outlines using the Django REST Framework, suitable for JSON, XML, or browsable HTML serialization.
NOTE: As with fiction_outlines, this app makes use of the excellent object permissions library django-rules.
Running Tests
Does the code actually work?
source <YOURVIRTUALENV>/bin/activate (myenv) $ pip install -r test_requirements.txt (myenv) $ pytest (myenv) $ flake8 setup.py fiction_outlines_api tests
Credits
Tools used in rendering this package:
History
0.3.0 (2022-03-17)
Support for django-fiction-outlines 0.4.0
Update for Python 3.9 & 3.10
Update for Django >= 3.2, < 4.1
0.2.1 (2018-10-16)
Support for both python 3.6 and 3.7
0.2.0 (2018-08-08)
Support for Django 2.1
0.1.3 (2018-06-21)
Move dependency back to official django-taggit-serializer package now that our pull request has been merged.
0.1.0 (2018-04-07)
First release on PyPI.
Metadata
Release files for django-fiction-outlines-api 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-fiction-outlines-api-0.3.0.tar.gz | 18.0 kB | Without provenance | Details for django-fiction-outlines-api-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_fiction_outlines_api-0.3.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for django_fiction_outlines_api-0.3.0-py2.py3-none-any.whl |
Total release size: 36.1 kB
Release files / django-fiction-outlines-api-0.3.0.tar.gz
| Download URL | django-fiction-outlines-api-0.3.0.tar.gz |
|---|---|
| Size | 18.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7aa34bad60a368b1e6700b17ea2ce44ceedbc68176ac2a86c3d8b4ee1a0c25bf
|
|
BLAKE2b-256 checksum How to use checksums |
2bc63bc10ea382ae2155073cc1952fcad3618eff18a13b29e8304c92e28ff847
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
|
Release files / django_fiction_outlines_api-0.3.0-py2.py3-none-any.whl
| Download URL | django_fiction_outlines_api-0.3.0-py2.py3-none-any.whl |
|---|---|
| Size | 18.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
ece3fc64f62ca1cef7b514220c2c26a2e5c7443c40ec01476caa309792ed121b
|
|
BLAKE2b-256 checksum How to use checksums |
fe3874a749f543a64544a53a27a742e9ba3a1ec7bce4a20d922a489c9624177f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
|
Security for django-fiction-outlines-api 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.