This release is a pre-release and may not be stable for production use.
django app of an organization
Anorganization uses membership, and organization models to group users. 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
ANORGANIZATION_USE_TOKEN_FILENAME = True
Django admin mixins
Use predefined mixins to construct the admin class.
OrganizationAdminMixin
MembershipAdminMixin
from django.contrib import admin
from anorganization.models import Organization
from anorganization.mixins import OrganizationAdminMixin
@admin.register(Organization)
class OrganizationAdmin(OrganizationAdminMixin, ModelAdmin):
...
Ariadne types and resolvers
Integrate predefined types and resolvers to scheme.
Requirements
ariadne 0.16.0+
ariadne-relay 0.1.0a8+
schema
from anorganization.graphqls import anorganization_schema
anarticle/graphqls/article.graphql
anarticle/graphqls/tag.graphql
types
from anorganization.graphqls import anorganization_bindables
anorganization
anorganization_membership
resolvers
Async version
from anorganization.graphqls import resolve_anorganization_instance, \
resolve_anorganization_member_connection, resolve_anorganizations
anorganization.set_instance_resolver(resolve_anorganization_instance)
anorganization.set_connection('members', resolve_anorganization_member_connection)
query.set_field('organizations', resolve_anorganizations)
resolve_anorganization_instance
resolve_anorganization_member_connection
resolve_anorganization_membership_instance
resolve_anorganizations
resolve_anorganization_memberships
Sync version
resolve_anorganization_instance_sync
resolve_anorganization_member_connection_sync
resolve_anorganization_membership_instance_sync
resolve_anorganizations_sync
resolve_anorganization_memberships_sync
License
django-anarticle is released under the terms of Apache license. Full details in LICENSE file.
Metadata
Release files for django-anorganization 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-anorganization-0.1.0rc3.tar.gz | 10.5 kB | Without provenance | Details for django-anorganization-0.1.0rc3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_anorganization-0.1.0rc3-py3-none-any.whl | Python 3 | none | any | Details for django_anorganization-0.1.0rc3-py3-none-any.whl |
Total release size: 23.3 kB
Release files / django-anorganization-0.1.0rc3.tar.gz
| Download URL | django-anorganization-0.1.0rc3.tar.gz |
|---|---|
| Size | 10.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c55ddd72fe9ca2c6f488bd2248a03ed8369b8b0075179291c22c81b995f0174f
|
|
BLAKE2b-256 checksum How to use checksums |
2ba836e4cab7d70a62275f712c82f63a57ac0974fccc5dec4efa4220184be241
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / django_anorganization-0.1.0rc3-py3-none-any.whl
| Download URL | django_anorganization-0.1.0rc3-py3-none-any.whl |
|---|---|
| Size | 12.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
12e95f5442789011b2342ca4336ba352988222c0ef95ceefda97aaa00e6ecc72
|
|
BLAKE2b-256 checksum How to use checksums |
956639334f4d0d9685ca2db5ff083e66dcfdd346592df14ff69af4fe52b988dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Security for django-anorganization 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.