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.4.0.tar.gz (9.8 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.4.0-py2.py3-none-any.whl (7.5 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: perfact_api_app_model-0.4.0.tar.gz
  • Upload date:
  • Size: 9.8 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.4.0.tar.gz
Algorithm Hash digest
SHA256 f7093faa05ee1928f3cce542ddec35d2b9a39b5da2db3d80c0ffd1721a0c0643
MD5 0443018f1e9d082bb5feb623d7c752bb
BLAKE2b-256 e2d702f129ae11031d9b98850376d43b925c18d09023685681661f158dd2264a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for perfact_api_app_model-0.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d8818f7dbf02021594f30e6e3fc332b303cabb158d1ba8fb554660786de873cc
MD5 2ffa6981a403755fea72b2050c94a6f3
BLAKE2b-256 168df12d179873d16fdb798a376e4a4d69417432602fe704823d70d75f5da9d7

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