Skip to main content

PerFact API - SQLAlchemy models for the app namespace

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

perfact-api-app-model

SQLAlchemy models for the app namespace — the authentication and authorization tables used by perfact-api-main. Part of the perfact.api.app.model namespace.

Models

Class Table Purpose
AppUser appuser User accounts
AppUserKey appuserkey API keys belonging to a user
AppUserLogin appuserlogin Active login sessions (cookie tracking)
AppGroup appgroup Groups, each carrying a Zope role name
AppPerm appperm Named permissions
AppStc appstc Organisational scope tree (hierarchical)
AppUserXPerm appuserxperm User ↔ permission assignments
AppUserXStc appuserxstc User ↔ scope assignments
AppPermXGroup apppermxgroup Permission ↔ group assignments
AppPermXStc apppermxstc Permission ↔ scope assignments
AppStc_Paths appstc_paths (view) Materialised ancestor paths for the scope tree

How the permission model works

A user is granted access to a scope (AppStc) via AppUserXStc. Within that scope, a user has permissions (AppPerm) via AppUserXPerm. Each permission can be linked to one or more groups (AppGroup), and each group carries a Zope role name. The effective roles for a user in a given scope are resolved by walking the AppStc_Paths view upward through the scope hierarchy.

Dependencies

  • perfact-api-base-model
  • sqlalchemy
  • psycopg[c]
  • pydantic-settings

Maintainers

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

perfact_api_app_model-0.5.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

perfact_api_app_model-0.5-py2.py3-none-any.whl (9.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file perfact_api_app_model-0.5.tar.gz.

File metadata

  • Download URL: perfact_api_app_model-0.5.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for perfact_api_app_model-0.5.tar.gz
Algorithm Hash digest
SHA256 0659217e26ed59cc3b99d3ce670f46a199205cdcfa79791f914bbc2fab3e3f6f
MD5 66ebecbe9aabf1947815e68f57e740d7
BLAKE2b-256 b376960baf9a7b0d88eeca1594b238957a03cea7d8d285263d054a0f3b2c2ec7

See more details on using hashes here.

File details

Details for the file perfact_api_app_model-0.5-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for perfact_api_app_model-0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d01d6d5d96efbf96c787bbb6378a41c9de69122d44e5c2afa3e4344750a5b8d1
MD5 752c69e502702a879d8ae6d1d386f6ca
BLAKE2b-256 854b6c480678a53cdf1dc54cb93b7f3351f77fa098a91d8e345e23c0b9b3d499

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page