Skip to main content

PerFact API - SQLAlchemy models for the app namespace

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.3.tar.gz (8.7 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.3-py2.py3-none-any.whl (7.3 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for perfact_api_app_model-0.3.tar.gz
Algorithm Hash digest
SHA256 896ea89cb0c79f5de12dc77b10eeb26ae579f2b39f7dd279b1e490fdef3bd712
MD5 3b6b7f5a6dc55b4a55ddb52bd343eeaa
BLAKE2b-256 a98ff9a8f2b6eddf3fc86c83a2b169526746c0befffc0945550d011fb5527214

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for perfact_api_app_model-0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c17c16ce118dd24331f57ec8f755d856bbfc1bfe415838c9c95215e9be48df2b
MD5 a513cbbec397f6c2823617356aa36437
BLAKE2b-256 75d13e36d1c7cc05caef98791dbc07651bd5d5cd859de6ef25e26cd86b9181c5

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