This release is a pre-release and may not be stable for production use.
django app of an article
Anarticle uses tag, catelog, and article models to publish articles. Support for Ariadne graphQL with pre-defined types and basic resolvers.
Requirements
Python 3.10+
django 4.0+
pillow 9.4.0+
Settings
Store uploaded file with tokenize file name, default to False
ANARTICLE_USE_TOKEN_FILENAME = True
Django admin mixins
Use predefined mixins to construct the admin class.
TagAdminMixin
CategoryAdminMixin
ArticleAdminMixin
from django.contrib import admin
from anarticle.models import Tag
from anarticle.admin.mixins import TagAdminMixin
@admin.register(Tag)
class TagAdmin(TagAdminMixin, ModelAdmin):
...
Ariadne types and resolvers
Integrate predefined types and resolvers to scheme.
Requirements
ariadne 0.16.0+
ariadne-relay 0.1.0a8+
scheme
from anarticle.graphqls import anarticle_schema
anarticle/graphqls/article.graphql
anarticle/graphqls/tag.graphql
anarticle/graphqls/category.graphql
types
from anarticle.graphqls import anarticle_bindables
anarticle
anarticle_paragraph
anarticle_tag
anarticle_category
resolvers
Async version
from anarticle.graphqls import resolve_anarticle_tag_instance, \
resolve_anarticle_tag_articles_connection, resolve_anarticle_tags
anarticle_tag.set_instance_resolver(resolve_anarticle_tag_instance)
anarticle_tag.set_connection('articles', resolve_anarticle_tag_articles_connection)
query.set_field('tags', resolve_anarticle_tags)
resolve_anarticle_tag_instance,
resolve_anarticle_tag_articles_connection,
resolve_anarticle_category_instance,
resolve_anarticle_category_tags_connection,
resolve_anarticle_instance,
resolve_anarticle_paragraphs,
resolve_anarticle_tags_connection,
resolve_anarticle_tags,
resolve_anarticle_categories,
resolve_anarticles,
Sync version
resolve_anarticle_tag_instance_sync,
resolve_anarticle_tag_articles_connection_sync,
resolve_anarticle_category_instance_sync,
resolve_anarticle_category_tags_connection_sync,
resolve_anarticle_instance_sync,
resolve_anarticle_paragraphs_sync,
resolve_anarticle_tags_connection_sync,
resolve_anarticle_tags_sync,
resolve_anarticle_categories_sync,
resolve_anarticles_sync,
License
django-anarticle is released under the terms of Apache license. Full details in LICENSE file.
Metadata
Release files for django-anarticle 0.1.0rc3
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-anarticle-0.1.0rc3.tar.gz | 11.6 kB | Without provenance | Details for django-anarticle-0.1.0rc3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_anarticle-0.1.0rc3-py3-none-any.whl | Python 3 | none | any | Details for django_anarticle-0.1.0rc3-py3-none-any.whl |
Total release size: 25.1 kB
Release files / django-anarticle-0.1.0rc3.tar.gz
| Download URL | django-anarticle-0.1.0rc3.tar.gz |
|---|---|
| Size | 11.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
65621cd590e21e4fcc8e5444de95ae7eae402fdce1c4f3347fababdaf0834b1f
|
|
BLAKE2b-256 checksum How to use checksums |
8601c8709c4c12bd01461e2e10f23c7aa8e7c76f4b917e5a19b1ec601473790c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / django_anarticle-0.1.0rc3-py3-none-any.whl
| Download URL | django_anarticle-0.1.0rc3-py3-none-any.whl |
|---|---|
| Size | 13.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1f02a388fa746c902a0d7de9e40adb34e2530d58fbd7b7dc57d964ca46e33164
|
|
BLAKE2b-256 checksum How to use checksums |
c77fc443e4134ee0a59c13bfc09ffe2c2f9c0385ed86e9ab58329caee2d2383b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Security for django-anarticle 0.1.0rc3
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.