Skip to main content

BaseApp Profiles

Reusable app to handle profiles, URL's paths and metadata. It provides useful models and GraphQL Interfaces.

How to install:

And install the package with pip install baseapp-profiles.

If you want to develop, install using this other guide.

How to use

Add baseapp_profiles to your project's INSTALLED_APPS and run ./manage.py migrate as any other django model:

INSTALLED_APPS = [
    'baseapp_profiles',
]

Add baseapp_profiles.middleware.CurrentProfileMiddleware to the MIDDLEWARE list in your django settings file, make sure it is after django.contrib.auth.middleware.AuthenticationMiddleware.

Add baseapp_profiles.permissions.ProfilesPermissionsBackend to the AUTHENTICATION_BACKENDS list in your django settings file.

Expose ProfilesMutations and ProfilesQuery in your GraphQL/graphene endpoint, like:

from baseapp_profiles.graphql.mutations import ProfilesMutations
from baseapp_profiles.graphql.queries import ProfilesQuery

class Query(graphene.ObjectType, ProfilesQuery):
    pass

class Mutation(graphene.ObjectType, ProfilesMutations):
    pass

schema = graphene.Schema(query=Query, mutation=Mutation)

ProfileInterface

ProfileInterface is a GraphQL interface that can be used to query for profiles. It has the following fields:

  • profile return the Profile for the object

How to develop

General development instructions can be found in main README.

Metadata

Release files for baseapp-profiles 0.3.15

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for baseapp-profiles 0.3.15
File Size Uploaded Provenance
baseapp_profiles-0.3.15.tar.gz 20.0 kB Without provenance Details

Release files / baseapp_profiles-0.3.15.tar.gz

Download URL baseapp_profiles-0.3.15.tar.gz
Size 20.0 kB
Tags Source
SHA-256 checksum
How to use checksums
02cefda75b7892d8987b1ae92991fb1e216ef4a86bb3d1d176e2bf60642f538e
BLAKE2b-256 checksum
How to use checksums
11dedf0f1113872adc91082d5c3ad3dc33bce4ace974e60f7174df77e36bf772
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Security for baseapp-profiles 0.3.15

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page