refrncr 0.1.0rc2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- refrncr-0.1.0rc2/LICENSE +95 -0
- refrncr-0.1.0rc2/PKG-INFO +357 -0
- refrncr-0.1.0rc2/README.md +309 -0
- refrncr-0.1.0rc2/pyproject.toml +129 -0
- refrncr-0.1.0rc2/setup.cfg +4 -0
- refrncr-0.1.0rc2/src/refrncr/__init__.py +0 -0
- refrncr-0.1.0rc2/src/refrncr/api/__init__.py +1 -0
- refrncr-0.1.0rc2/src/refrncr/api/contracts.py +223 -0
- refrncr-0.1.0rc2/src/refrncr/api/documentation.py +187 -0
- refrncr-0.1.0rc2/src/refrncr/api/http.py +153 -0
- refrncr-0.1.0rc2/src/refrncr/api/routes.py +736 -0
- refrncr-0.1.0rc2/src/refrncr/api_key_persistence.py +59 -0
- refrncr-0.1.0rc2/src/refrncr/api_keys.py +229 -0
- refrncr-0.1.0rc2/src/refrncr/app.py +215 -0
- refrncr-0.1.0rc2/src/refrncr/argon2_benchmark.py +121 -0
- refrncr-0.1.0rc2/src/refrncr/audit.py +931 -0
- refrncr-0.1.0rc2/src/refrncr/audit_guard.py +226 -0
- refrncr-0.1.0rc2/src/refrncr/audit_history.py +279 -0
- refrncr-0.1.0rc2/src/refrncr/audit_presentation.py +423 -0
- refrncr-0.1.0rc2/src/refrncr/authorization.py +26 -0
- refrncr-0.1.0rc2/src/refrncr/browser_security.py +87 -0
- refrncr-0.1.0rc2/src/refrncr/change_status.py +36 -0
- refrncr-0.1.0rc2/src/refrncr/cli.py +619 -0
- refrncr-0.1.0rc2/src/refrncr/clock.py +27 -0
- refrncr-0.1.0rc2/src/refrncr/concept_contracts.py +78 -0
- refrncr-0.1.0rc2/src/refrncr/concept_persistence.py +308 -0
- refrncr-0.1.0rc2/src/refrncr/concept_upgrade.py +107 -0
- refrncr-0.1.0rc2/src/refrncr/dataset_diff.py +424 -0
- refrncr-0.1.0rc2/src/refrncr/dataset_export.py +819 -0
- refrncr-0.1.0rc2/src/refrncr/dataset_upgrade.py +95 -0
- refrncr-0.1.0rc2/src/refrncr/dataset_versions.py +1330 -0
- refrncr-0.1.0rc2/src/refrncr/datatypes.py +338 -0
- refrncr-0.1.0rc2/src/refrncr/db/__init__.py +0 -0
- refrncr-0.1.0rc2/src/refrncr/db/base.py +5 -0
- refrncr-0.1.0rc2/src/refrncr/db/session.py +32 -0
- refrncr-0.1.0rc2/src/refrncr/db/types.py +30 -0
- refrncr-0.1.0rc2/src/refrncr/diff_classification.py +234 -0
- refrncr-0.1.0rc2/src/refrncr/diff_contracts.py +117 -0
- refrncr-0.1.0rc2/src/refrncr/diff_persistence.py +594 -0
- refrncr-0.1.0rc2/src/refrncr/errors.py +13 -0
- refrncr-0.1.0rc2/src/refrncr/field_contracts.py +3 -0
- refrncr-0.1.0rc2/src/refrncr/hierarchy.py +518 -0
- refrncr-0.1.0rc2/src/refrncr/hierarchy_contracts.py +42 -0
- refrncr-0.1.0rc2/src/refrncr/hierarchy_import.py +417 -0
- refrncr-0.1.0rc2/src/refrncr/hierarchy_persistence.py +130 -0
- refrncr-0.1.0rc2/src/refrncr/installation_policy.py +28 -0
- refrncr-0.1.0rc2/src/refrncr/installation_settings.py +59 -0
- refrncr-0.1.0rc2/src/refrncr/login_security.py +263 -0
- refrncr-0.1.0rc2/src/refrncr/mapping_updates.py +147 -0
- refrncr-0.1.0rc2/src/refrncr/migrations/env.py +78 -0
- refrncr-0.1.0rc2/src/refrncr/migrations/script.py.mako +21 -0
- refrncr-0.1.0rc2/src/refrncr/migrations/versions/0001_ref_33_community_users.py +70 -0
- refrncr-0.1.0rc2/src/refrncr/migrations/versions/0002_ref_34_community_teams.py +27 -0
- refrncr-0.1.0rc2/src/refrncr/migrations/versions/0003_ref_35_team_memberships.py +31 -0
- refrncr-0.1.0rc2/src/refrncr/migrations/versions/0004_ref_36_access_grants.py +47 -0
- refrncr-0.1.0rc2/src/refrncr/migrations/versions/0005_ref_72_datasets.py +47 -0
- refrncr-0.1.0rc2/src/refrncr/migrations/versions/0006_ref_74_dataset_fields.py +46 -0
- refrncr-0.1.0rc2/src/refrncr/migrations/versions/0007_ref_75_dataset_business_key.py +37 -0
- refrncr-0.1.0rc2/src/refrncr/migrations/versions/0008_ref_79_dataset_records.py +78 -0
- refrncr-0.1.0rc2/src/refrncr/migrations/versions/0009_ref_80_record_revision.py +64 -0
- refrncr-0.1.0rc2/src/refrncr/migrations/versions/0010_ref_121_field_display_order.py +136 -0
- refrncr-0.1.0rc2/src/refrncr/migrations/versions/0011_ref_130_dataset_content_updated.py +23 -0
- refrncr-0.1.0rc2/src/refrncr/migrations/versions/0012_ref_73_dataset_team_governance.py +76 -0
- refrncr-0.1.0rc2/src/refrncr/migrations/versions/0013_ref_39_audit_history.py +16 -0
- refrncr-0.1.0rc2/src/refrncr/migrations/versions/0014_ref_145_field_datatypes.py +106 -0
- refrncr-0.1.0rc2/src/refrncr/migrations/versions/0015_ref_83_dataset_versions.py +138 -0
- refrncr-0.1.0rc2/src/refrncr/migrations/versions/0016_ref_84_active_concepts.py +50 -0
- refrncr-0.1.0rc2/src/refrncr/migrations/versions/0017_ref_154_source_formats.py +24 -0
- refrncr-0.1.0rc2/src/refrncr/migrations/versions/0018_ref_160_new_version.py +112 -0
- refrncr-0.1.0rc2/src/refrncr/migrations/versions/0019_ref_162_presentation_metadata.py +38 -0
- refrncr-0.1.0rc2/src/refrncr/migrations/versions/0020_ref_162_icon_names.py +23 -0
- refrncr-0.1.0rc2/src/refrncr/migrations/versions/0021_ref_40_api_keys.py +54 -0
- refrncr-0.1.0rc2/src/refrncr/migrations/versions/0022_ref_31_security_audit.py +34 -0
- refrncr-0.1.0rc2/src/refrncr/migrations/versions/0023_ref_176_effective_dates.py +37 -0
- refrncr-0.1.0rc2/src/refrncr/migrations/versions/0024_ref_177_mapping_tables.py +78 -0
- refrncr-0.1.0rc2/src/refrncr/migrations/versions/0025_ref_177_mapping_fields.py +45 -0
- refrncr-0.1.0rc2/src/refrncr/migrations/versions/0026_ref_177_mapping_field_roles.py +76 -0
- refrncr-0.1.0rc2/src/refrncr/migrations/versions/0027_ref_177_standalone_source_context.py +54 -0
- refrncr-0.1.0rc2/src/refrncr/migrations/versions/0028_ref_179_hierarchies.py +183 -0
- refrncr-0.1.0rc2/src/refrncr/migrations/versions/0029_ref_195_dark_mode.py +49 -0
- refrncr-0.1.0rc2/src/refrncr/migrations/versions/0030_ref_205_typed_draft_values.py +93 -0
- refrncr-0.1.0rc2/src/refrncr/migrations/versions/0031_ref_239_mapping_source_versions.py +59 -0
- refrncr-0.1.0rc2/src/refrncr/migrations/versions/0032_ref_239_source_version_policy.py +28 -0
- refrncr-0.1.0rc2/src/refrncr/migrations/versions/0033_ref_301_source_update_notes.py +24 -0
- refrncr-0.1.0rc2/src/refrncr/migrations/versions/0034_ref_238_dataset_visits.py +36 -0
- refrncr-0.1.0rc2/src/refrncr/migrations/versions/0035_ref_294_installation_settings.py +40 -0
- refrncr-0.1.0rc2/src/refrncr/models.py +841 -0
- refrncr-0.1.0rc2/src/refrncr/operational.py +349 -0
- refrncr-0.1.0rc2/src/refrncr/overview.py +389 -0
- refrncr-0.1.0rc2/src/refrncr/overview_persistence.py +112 -0
- refrncr-0.1.0rc2/src/refrncr/persistence.py +1639 -0
- refrncr-0.1.0rc2/src/refrncr/ports.py +728 -0
- refrncr-0.1.0rc2/src/refrncr/presentation.py +92 -0
- refrncr-0.1.0rc2/src/refrncr/presentation_metadata.py +122 -0
- refrncr-0.1.0rc2/src/refrncr/published_contracts.py +92 -0
- refrncr-0.1.0rc2/src/refrncr/record_identity.py +82 -0
- refrncr-0.1.0rc2/src/refrncr/record_import.py +2425 -0
- refrncr-0.1.0rc2/src/refrncr/record_intervals.py +130 -0
- refrncr-0.1.0rc2/src/refrncr/record_search.py +119 -0
- refrncr-0.1.0rc2/src/refrncr/review_tokens.py +56 -0
- refrncr-0.1.0rc2/src/refrncr/services.py +3290 -0
- refrncr-0.1.0rc2/src/refrncr/source_formats.py +429 -0
- refrncr-0.1.0rc2/src/refrncr/static/css/base.css +20 -0
- refrncr-0.1.0rc2/src/refrncr/static/css/components/buttons.css +27 -0
- refrncr-0.1.0rc2/src/refrncr/static/css/components/cards-badges.css +22 -0
- refrncr-0.1.0rc2/src/refrncr/static/css/components/dialog.css +98 -0
- refrncr-0.1.0rc2/src/refrncr/static/css/components/feedback.css +27 -0
- refrncr-0.1.0rc2/src/refrncr/static/css/components/forms.css +117 -0
- refrncr-0.1.0rc2/src/refrncr/static/css/components/hierarchy.css +68 -0
- refrncr-0.1.0rc2/src/refrncr/static/css/components/overview.css +70 -0
- refrncr-0.1.0rc2/src/refrncr/static/css/components/select.css +66 -0
- refrncr-0.1.0rc2/src/refrncr/static/css/components/tables.css +228 -0
- refrncr-0.1.0rc2/src/refrncr/static/css/layouts/api-docs.css +75 -0
- refrncr-0.1.0rc2/src/refrncr/static/css/layouts/api-keys.css +6 -0
- refrncr-0.1.0rc2/src/refrncr/static/css/layouts/app-shell.css +88 -0
- refrncr-0.1.0rc2/src/refrncr/static/css/layouts/auth.css +12 -0
- refrncr-0.1.0rc2/src/refrncr/static/css/layouts/configuration.css +164 -0
- refrncr-0.1.0rc2/src/refrncr/static/css/layouts/import.css +210 -0
- refrncr-0.1.0rc2/src/refrncr/static/css/layouts/overview.css +22 -0
- refrncr-0.1.0rc2/src/refrncr/static/css/layouts/page.css +95 -0
- refrncr-0.1.0rc2/src/refrncr/static/css/layouts/settings.css +58 -0
- refrncr-0.1.0rc2/src/refrncr/static/css/no-script-view-transitions.css +2 -0
- refrncr-0.1.0rc2/src/refrncr/static/css/refrncr.css +19 -0
- refrncr-0.1.0rc2/src/refrncr/static/css/swagger-ui.css +3 -0
- refrncr-0.1.0rc2/src/refrncr/static/css/tokens.css +77 -0
- refrncr-0.1.0rc2/src/refrncr/static/css/utilities.css +3 -0
- refrncr-0.1.0rc2/src/refrncr/static/fonts/ibm-plex-mono/ibm-plex-mono-latin-400-normal.woff2 +0 -0
- refrncr-0.1.0rc2/src/refrncr/static/fonts/ibm-plex-mono/ibm-plex-mono-latin-ext-400-normal.woff2 +0 -0
- refrncr-0.1.0rc2/src/refrncr/static/fonts/ibm-plex-sans/ibm-plex-sans-latin-400-normal.woff2 +0 -0
- refrncr-0.1.0rc2/src/refrncr/static/fonts/ibm-plex-sans/ibm-plex-sans-latin-600-normal.woff2 +0 -0
- refrncr-0.1.0rc2/src/refrncr/static/fonts/ibm-plex-sans/ibm-plex-sans-latin-700-normal.woff2 +0 -0
- refrncr-0.1.0rc2/src/refrncr/static/fonts/ibm-plex-sans/ibm-plex-sans-latin-ext-400-normal.woff2 +0 -0
- refrncr-0.1.0rc2/src/refrncr/static/fonts/ibm-plex-sans/ibm-plex-sans-latin-ext-600-normal.woff2 +0 -0
- refrncr-0.1.0rc2/src/refrncr/static/fonts/ibm-plex-sans/ibm-plex-sans-latin-ext-700-normal.woff2 +0 -0
- refrncr-0.1.0rc2/src/refrncr/static/fonts/instrument-sans/instrument-sans-latin-500-normal.woff2 +0 -0
- refrncr-0.1.0rc2/src/refrncr/static/fonts/instrument-sans/instrument-sans-latin-600-normal.woff2 +0 -0
- refrncr-0.1.0rc2/src/refrncr/static/fonts/instrument-sans/instrument-sans-latin-700-normal.woff2 +0 -0
- refrncr-0.1.0rc2/src/refrncr/static/fonts/instrument-sans/instrument-sans-latin-ext-500-normal.woff2 +0 -0
- refrncr-0.1.0rc2/src/refrncr/static/fonts/instrument-sans/instrument-sans-latin-ext-600-normal.woff2 +0 -0
- refrncr-0.1.0rc2/src/refrncr/static/fonts/instrument-sans/instrument-sans-latin-ext-700-normal.woff2 +0 -0
- refrncr-0.1.0rc2/src/refrncr/static/images/favicon.svg +1 -0
- refrncr-0.1.0rc2/src/refrncr/static/images/lucide-1.46.0.svg +11195 -0
- refrncr-0.1.0rc2/src/refrncr/static/images/lucide-legacy-0.468.0.svg +445 -0
- refrncr-0.1.0rc2/src/refrncr/static/images/refrncr-loader.svg +1 -0
- refrncr-0.1.0rc2/src/refrncr/static/images/refrncr-wordmark-primary.svg +1 -0
- refrncr-0.1.0rc2/src/refrncr/static/images/refrncr-wordmark-reversed.svg +1 -0
- refrncr-0.1.0rc2/src/refrncr/static/images/theme-preview-dark.svg +1 -0
- refrncr-0.1.0rc2/src/refrncr/static/images/theme-preview-light.svg +1 -0
- refrncr-0.1.0rc2/src/refrncr/static/images/theme-preview-system.svg +1 -0
- refrncr-0.1.0rc2/src/refrncr/static/js/api-docs.js +109 -0
- refrncr-0.1.0rc2/src/refrncr/static/js/api-key-secret.js +25 -0
- refrncr-0.1.0rc2/src/refrncr/static/js/audit-time.js +147 -0
- refrncr-0.1.0rc2/src/refrncr/static/js/field-order.js +103 -0
- refrncr-0.1.0rc2/src/refrncr/static/js/hierarchy-columns.js +54 -0
- refrncr-0.1.0rc2/src/refrncr/static/js/icon-picker.js +171 -0
- refrncr-0.1.0rc2/src/refrncr/static/js/key-generation.js +52 -0
- refrncr-0.1.0rc2/src/refrncr/static/js/mapping-table-form.js +53 -0
- refrncr-0.1.0rc2/src/refrncr/static/js/navigation.js +132 -0
- refrncr-0.1.0rc2/src/refrncr/static/js/overview-greeting.js +25 -0
- refrncr-0.1.0rc2/src/refrncr/static/js/record-search.js +37 -0
- refrncr-0.1.0rc2/src/refrncr/static/js/refrncr.js +1157 -0
- refrncr-0.1.0rc2/src/refrncr/static/js/section-tabs.js +97 -0
- refrncr-0.1.0rc2/src/refrncr/static/js/select.js +500 -0
- refrncr-0.1.0rc2/src/refrncr/static/js/swagger-ui-bundle.js +2 -0
- refrncr-0.1.0rc2/src/refrncr/static/js/version-diff.js +6 -0
- refrncr-0.1.0rc2/src/refrncr/static/js/view-transitions.js +34 -0
- refrncr-0.1.0rc2/src/refrncr/static/licenses/ASSET-SOURCES.md +173 -0
- refrncr-0.1.0rc2/src/refrncr/static/licenses/LICENSE-Lucide-0.468.0.txt +15 -0
- refrncr-0.1.0rc2/src/refrncr/static/licenses/LICENSE-Lucide.txt +43 -0
- refrncr-0.1.0rc2/src/refrncr/static/licenses/LICENSE-Swagger-UI-bundle.txt +129 -0
- refrncr-0.1.0rc2/src/refrncr/static/licenses/LICENSE-Swagger-UI.txt +202 -0
- refrncr-0.1.0rc2/src/refrncr/static/licenses/NOTICE-Swagger-UI.txt +2 -0
- refrncr-0.1.0rc2/src/refrncr/static/licenses/OFL-IBM-Plex-Mono.txt +93 -0
- refrncr-0.1.0rc2/src/refrncr/static/licenses/OFL-IBM-Plex-Sans.txt +93 -0
- refrncr-0.1.0rc2/src/refrncr/static/licenses/OFL-Instrument-Sans.txt +93 -0
- refrncr-0.1.0rc2/src/refrncr/templates/base.html +72 -0
- refrncr-0.1.0rc2/src/refrncr/templates/components/account.html +14 -0
- refrncr-0.1.0rc2/src/refrncr/templates/components/branding.html +10 -0
- refrncr-0.1.0rc2/src/refrncr/templates/components/concept.html +57 -0
- refrncr-0.1.0rc2/src/refrncr/templates/components/dataset_card.html +55 -0
- refrncr-0.1.0rc2/src/refrncr/templates/components/dataset_icon.html +36 -0
- refrncr-0.1.0rc2/src/refrncr/templates/components/dataset_navigation.html +15 -0
- refrncr-0.1.0rc2/src/refrncr/templates/components/export_access.html +66 -0
- refrncr-0.1.0rc2/src/refrncr/templates/components/export_action.html +32 -0
- refrncr-0.1.0rc2/src/refrncr/templates/components/field_metadata.html +32 -0
- refrncr-0.1.0rc2/src/refrncr/templates/components/flash_messages.html +5 -0
- refrncr-0.1.0rc2/src/refrncr/templates/components/icons.html +118 -0
- refrncr-0.1.0rc2/src/refrncr/templates/components/import_action.html +11 -0
- refrncr-0.1.0rc2/src/refrncr/templates/components/mapping.html +14 -0
- refrncr-0.1.0rc2/src/refrncr/templates/components/mapping_update.html +15 -0
- refrncr-0.1.0rc2/src/refrncr/templates/components/mapping_usage.html +37 -0
- refrncr-0.1.0rc2/src/refrncr/templates/components/navigation.html +9 -0
- refrncr-0.1.0rc2/src/refrncr/templates/components/record_search.html +49 -0
- refrncr-0.1.0rc2/src/refrncr/templates/components/record_status_filter.html +19 -0
- refrncr-0.1.0rc2/src/refrncr/templates/components/relationships.html +6 -0
- refrncr-0.1.0rc2/src/refrncr/templates/components/search_field.html +10 -0
- refrncr-0.1.0rc2/src/refrncr/templates/components/section_tabs.html +5 -0
- refrncr-0.1.0rc2/src/refrncr/templates/components/side_panel.html +26 -0
- refrncr-0.1.0rc2/src/refrncr/templates/components/table_row.html +7 -0
- refrncr-0.1.0rc2/src/refrncr/templates/components/version_diff.html +21 -0
- refrncr-0.1.0rc2/src/refrncr/templates/components.html +86 -0
- refrncr-0.1.0rc2/src/refrncr/templates/layouts/auth/base.html +15 -0
- refrncr-0.1.0rc2/src/refrncr/templates/layouts/page.html +17 -0
- refrncr-0.1.0rc2/src/refrncr/templates/layouts/settings.html +41 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/api/docs.html +42 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/api_keys/base.html +2 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/api_keys/create.html +16 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/api_keys/list.html +24 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/api_keys/revoke.html +16 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/api_keys/secret.html +19 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/audit/detail.html +30 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/audit/error.html +7 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/audit/list.html +50 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/auth/login.html +46 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/auth/setup.html +46 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/_breadcrumbs.html +2 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/_edit_form.html +60 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/_edit_general_form.html +20 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/_edit_ownership_form.html +16 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/_record_form_fields.html +28 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/_record_panels.html +81 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/_record_table.html +86 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/_source_notice.html +25 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/_team_choice.html +6 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/_version_status.html +14 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/concept_required.html +11 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/concepts/_banner.html +2 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/concepts/_version_row.html +13 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/concepts/discard.html +34 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/create.html +83 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/delete.html +34 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/detail.html +160 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/empty_records.html +19 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/export_error.html +12 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/export_period.html +34 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/fields/_form_fields.html +24 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/fields/_table.html +35 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/fields/create.html +19 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/fields/edit.html +24 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/fields/read.html +22 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/hierarchy/_tree.html +37 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/hierarchy/_view_panels.html +13 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/hierarchy/delete.html +25 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/hierarchy/node_form.html +45 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/hierarchy.html +120 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/hierarchy_import.html +31 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/import/_mapping_status.html +24 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/import/differences.html +95 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/import/error_report.html +11 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/import/mapping.html +45 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/import/mapping_info.html +4 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/import/preview.html +11 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/import/source_format.html +104 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/import/source_format_fragments.html +1 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/import/unavailable.html +7 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/import/upload.html +8 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/import/wizard.html +58 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/import/worksheet.html +4 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/list.html +26 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/records/delete.html +5 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/records/form.html +20 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/records/restore_error.html +6 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/records.html +44 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/search_error.html +7 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/versions/_mapping_records.html +22 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/versions/_navigation.html +1 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/versions/cancel.html +27 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/versions/diff_detail.html +38 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/versions/list.html +40 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/versions/publish.html +40 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/versions/review.html +111 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/datasets/versions/review_error.html +8 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/error.html +13 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/index.html +16 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/overview.html +63 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/settings/appearance.html +25 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/settings/dataset_access.html +28 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/teams/_membership_controls.html +11 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/teams/_team_form_fields.html +7 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/teams/_team_panels.html +15 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/teams/list.html +16 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/teams/members.html +8 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/teams/readonly.html +9 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/users/_user_form_fields.html +13 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/users/_user_panels.html +43 -0
- refrncr-0.1.0rc2/src/refrncr/templates/pages/users/list.html +19 -0
- refrncr-0.1.0rc2/src/refrncr/upload_names.py +9 -0
- refrncr-0.1.0rc2/src/refrncr/version_contracts.py +209 -0
- refrncr-0.1.0rc2/src/refrncr/version_persistence.py +629 -0
- refrncr-0.1.0rc2/src/refrncr/version_upgrade.py +94 -0
- refrncr-0.1.0rc2/src/refrncr/web.py +4990 -0
- refrncr-0.1.0rc2/src/refrncr/xml_security.py +16 -0
- refrncr-0.1.0rc2/src/refrncr.egg-info/PKG-INFO +357 -0
- refrncr-0.1.0rc2/src/refrncr.egg-info/SOURCES.txt +409 -0
- refrncr-0.1.0rc2/src/refrncr.egg-info/dependency_links.txt +1 -0
- refrncr-0.1.0rc2/src/refrncr.egg-info/entry_points.txt +2 -0
- refrncr-0.1.0rc2/src/refrncr.egg-info/requires.txt +32 -0
- refrncr-0.1.0rc2/src/refrncr.egg-info/top_level.txt +1 -0
- refrncr-0.1.0rc2/tests/test_api_documentation.py +241 -0
- refrncr-0.1.0rc2/tests/test_api_export_access.py +311 -0
- refrncr-0.1.0rc2/tests/test_api_key_migration.py +69 -0
- refrncr-0.1.0rc2/tests/test_api_keys.py +551 -0
- refrncr-0.1.0rc2/tests/test_argon2_benchmark.py +83 -0
- refrncr-0.1.0rc2/tests/test_audit_catalog.py +494 -0
- refrncr-0.1.0rc2/tests/test_audit_coverage.py +963 -0
- refrncr-0.1.0rc2/tests/test_audit_history.py +577 -0
- refrncr-0.1.0rc2/tests/test_audit_history_migration.py +48 -0
- refrncr-0.1.0rc2/tests/test_audit_history_review.py +260 -0
- refrncr-0.1.0rc2/tests/test_audit_object_presentation.py +263 -0
- refrncr-0.1.0rc2/tests/test_audit_time_javascript.py +25 -0
- refrncr-0.1.0rc2/tests/test_authentication.py +330 -0
- refrncr-0.1.0rc2/tests/test_authentication_admission.py +246 -0
- refrncr-0.1.0rc2/tests/test_authorization_boundaries.py +150 -0
- refrncr-0.1.0rc2/tests/test_change_status.py +63 -0
- refrncr-0.1.0rc2/tests/test_cli.py +861 -0
- refrncr-0.1.0rc2/tests/test_concept_discard.py +779 -0
- refrncr-0.1.0rc2/tests/test_concept_lifecycle.py +423 -0
- refrncr-0.1.0rc2/tests/test_concept_migration.py +148 -0
- refrncr-0.1.0rc2/tests/test_configure_overview.py +426 -0
- refrncr-0.1.0rc2/tests/test_database.py +60 -0
- refrncr-0.1.0rc2/tests/test_dataset_access.py +398 -0
- refrncr-0.1.0rc2/tests/test_dataset_browser.py +3559 -0
- refrncr-0.1.0rc2/tests/test_dataset_business_keys.py +570 -0
- refrncr-0.1.0rc2/tests/test_dataset_context.py +397 -0
- refrncr-0.1.0rc2/tests/test_dataset_deletion.py +681 -0
- refrncr-0.1.0rc2/tests/test_dataset_diff.py +730 -0
- refrncr-0.1.0rc2/tests/test_dataset_diff_views.py +479 -0
- refrncr-0.1.0rc2/tests/test_dataset_export.py +569 -0
- refrncr-0.1.0rc2/tests/test_dataset_fields.py +713 -0
- refrncr-0.1.0rc2/tests/test_dataset_foundation.py +674 -0
- refrncr-0.1.0rc2/tests/test_dataset_governance.py +618 -0
- refrncr-0.1.0rc2/tests/test_dataset_governance_migration.py +263 -0
- refrncr-0.1.0rc2/tests/test_dataset_governance_review.py +351 -0
- refrncr-0.1.0rc2/tests/test_dataset_navigation.py +289 -0
- refrncr-0.1.0rc2/tests/test_dataset_records.py +865 -0
- refrncr-0.1.0rc2/tests/test_dataset_version_migration.py +260 -0
- refrncr-0.1.0rc2/tests/test_dataset_version_views.py +492 -0
- refrncr-0.1.0rc2/tests/test_dataset_versions.py +588 -0
- refrncr-0.1.0rc2/tests/test_draft_record_deletions.py +84 -0
- refrncr-0.1.0rc2/tests/test_effective_date_migration.py +26 -0
- refrncr-0.1.0rc2/tests/test_effective_permissions.py +331 -0
- refrncr-0.1.0rc2/tests/test_field_datatype_migration.py +268 -0
- refrncr-0.1.0rc2/tests/test_field_datatype_review.py +328 -0
- refrncr-0.1.0rc2/tests/test_field_datatype_services.py +455 -0
- refrncr-0.1.0rc2/tests/test_field_datatypes.py +327 -0
- refrncr-0.1.0rc2/tests/test_grant_management.py +533 -0
- refrncr-0.1.0rc2/tests/test_hierarchy.py +420 -0
- refrncr-0.1.0rc2/tests/test_hierarchy_browser.py +574 -0
- refrncr-0.1.0rc2/tests/test_hierarchy_counts.py +83 -0
- refrncr-0.1.0rc2/tests/test_hierarchy_export.py +453 -0
- refrncr-0.1.0rc2/tests/test_hierarchy_import.py +278 -0
- refrncr-0.1.0rc2/tests/test_hierarchy_lifecycle.py +460 -0
- refrncr-0.1.0rc2/tests/test_hierarchy_migration.py +55 -0
- refrncr-0.1.0rc2/tests/test_hierarchy_persistence.py +189 -0
- refrncr-0.1.0rc2/tests/test_hierarchy_record_lookup_api.py +257 -0
- refrncr-0.1.0rc2/tests/test_hierarchy_records_views.py +456 -0
- refrncr-0.1.0rc2/tests/test_import_wizard.py +745 -0
- refrncr-0.1.0rc2/tests/test_import_wizard_javascript.py +26 -0
- refrncr-0.1.0rc2/tests/test_installation_settings.py +303 -0
- refrncr-0.1.0rc2/tests/test_installation_settings_migration.py +59 -0
- refrncr-0.1.0rc2/tests/test_interfaces.py +1818 -0
- refrncr-0.1.0rc2/tests/test_key_generation_javascript.py +25 -0
- refrncr-0.1.0rc2/tests/test_login_javascript.py +57 -0
- refrncr-0.1.0rc2/tests/test_login_throttling.py +345 -0
- refrncr-0.1.0rc2/tests/test_mapping_lookup_api.py +296 -0
- refrncr-0.1.0rc2/tests/test_mapping_source_migration.py +111 -0
- refrncr-0.1.0rc2/tests/test_mapping_source_updates.py +688 -0
- refrncr-0.1.0rc2/tests/test_mapping_source_versions.py +200 -0
- refrncr-0.1.0rc2/tests/test_mapping_table_migration.py +86 -0
- refrncr-0.1.0rc2/tests/test_mapping_usage.py +406 -0
- refrncr-0.1.0rc2/tests/test_membership_management.py +420 -0
- refrncr-0.1.0rc2/tests/test_migrations.py +1152 -0
- refrncr-0.1.0rc2/tests/test_navigation_javascript.py +25 -0
- refrncr-0.1.0rc2/tests/test_new_version_import.py +975 -0
- refrncr-0.1.0rc2/tests/test_operational.py +429 -0
- refrncr-0.1.0rc2/tests/test_optional_import_fields.py +230 -0
- refrncr-0.1.0rc2/tests/test_overview.py +482 -0
- refrncr-0.1.0rc2/tests/test_overview_migration.py +34 -0
- refrncr-0.1.0rc2/tests/test_package.py +5 -0
- refrncr-0.1.0rc2/tests/test_packaged_cli.py +454 -0
- refrncr-0.1.0rc2/tests/test_password_manager_forms.py +68 -0
- refrncr-0.1.0rc2/tests/test_persistence_boundaries.py +103 -0
- refrncr-0.1.0rc2/tests/test_presentation_metadata_and_browser_compatibility.py +108 -0
- refrncr-0.1.0rc2/tests/test_record_identity.py +55 -0
- refrncr-0.1.0rc2/tests/test_record_import.py +2006 -0
- refrncr-0.1.0rc2/tests/test_record_intervals.py +175 -0
- refrncr-0.1.0rc2/tests/test_record_search.py +335 -0
- refrncr-0.1.0rc2/tests/test_record_system_status.py +233 -0
- refrncr-0.1.0rc2/tests/test_recovery.py +341 -0
- refrncr-0.1.0rc2/tests/test_rest_api.py +873 -0
- refrncr-0.1.0rc2/tests/test_rest_api_edges.py +180 -0
- refrncr-0.1.0rc2/tests/test_security_audit.py +74 -0
- refrncr-0.1.0rc2/tests/test_select_component.py +120 -0
- refrncr-0.1.0rc2/tests/test_session_security.py +500 -0
- refrncr-0.1.0rc2/tests/test_side_panel_javascript.py +40 -0
- refrncr-0.1.0rc2/tests/test_source_format_components.py +438 -0
- refrncr-0.1.0rc2/tests/test_source_format_import.py +342 -0
- refrncr-0.1.0rc2/tests/test_source_format_transactions.py +287 -0
- refrncr-0.1.0rc2/tests/test_source_format_verdicts.py +321 -0
- refrncr-0.1.0rc2/tests/test_source_formats.py +322 -0
- refrncr-0.1.0rc2/tests/test_supply_chain.py +352 -0
- refrncr-0.1.0rc2/tests/test_table_rows.py +215 -0
- refrncr-0.1.0rc2/tests/test_team_management.py +326 -0
- refrncr-0.1.0rc2/tests/test_typed_draft_value_migration.py +104 -0
- refrncr-0.1.0rc2/tests/test_ui_polish.py +937 -0
- refrncr-0.1.0rc2/tests/test_upload_names.py +20 -0
- refrncr-0.1.0rc2/tests/test_user_management.py +289 -0
- refrncr-0.1.0rc2/tests/test_utc_datetime.py +83 -0
- refrncr-0.1.0rc2/tests/test_view_transitions_javascript.py +25 -0
- refrncr-0.1.0rc2/tests/test_web_security_headers.py +177 -0
- refrncr-0.1.0rc2/tests/test_xml_security.py +242 -0
refrncr-0.1.0rc2/LICENSE
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
Copyright © 2026 Clever Horizons B.V., trading as DataMisu
|
|
2
|
+
|
|
3
|
+
Elastic License 2.0
|
|
4
|
+
|
|
5
|
+
URL: https://www.elastic.co/licensing/elastic-license
|
|
6
|
+
|
|
7
|
+
## Acceptance
|
|
8
|
+
|
|
9
|
+
By using the software, you agree to all of the terms and conditions below.
|
|
10
|
+
|
|
11
|
+
## Copyright License
|
|
12
|
+
|
|
13
|
+
The licensor grants you a non-exclusive, royalty-free, worldwide,
|
|
14
|
+
non-sublicensable, non-transferable license to use, copy, distribute, make
|
|
15
|
+
available, and prepare derivative works of the software, in each case subject to
|
|
16
|
+
the limitations and conditions below.
|
|
17
|
+
|
|
18
|
+
## Limitations
|
|
19
|
+
|
|
20
|
+
You may not provide the software to third parties as a hosted or managed
|
|
21
|
+
service, where the service provides users with access to any substantial set of
|
|
22
|
+
the features or functionality of the software.
|
|
23
|
+
|
|
24
|
+
You may not move, change, disable, or circumvent the license key functionality
|
|
25
|
+
in the software, and you may not remove or obscure any functionality in the
|
|
26
|
+
software that is protected by the license key.
|
|
27
|
+
|
|
28
|
+
You may not alter, remove, or obscure any licensing, copyright, or other notices
|
|
29
|
+
of the licensor in the software. Any use of the licensor’s trademarks is subject
|
|
30
|
+
to applicable law.
|
|
31
|
+
|
|
32
|
+
## Patents
|
|
33
|
+
|
|
34
|
+
The licensor grants you a license, under any patent claims the licensor can
|
|
35
|
+
license, or becomes able to license, to make, have made, use, sell, offer for
|
|
36
|
+
sale, import and have imported the software, in each case subject to the
|
|
37
|
+
limitations and conditions in this license. This license does not cover any
|
|
38
|
+
patent claims that you cause to be infringed by modifications or additions to
|
|
39
|
+
the software. If you or your company make any written claim that the software
|
|
40
|
+
infringes or contributes to infringement of any patent, your patent license for
|
|
41
|
+
the software granted under these terms ends immediately. If your company makes
|
|
42
|
+
such a claim, your patent license ends immediately for work on behalf of your
|
|
43
|
+
company.
|
|
44
|
+
|
|
45
|
+
## Notices
|
|
46
|
+
|
|
47
|
+
You must ensure that anyone who gets a copy of any part of the software from you
|
|
48
|
+
also gets a copy of these terms.
|
|
49
|
+
|
|
50
|
+
If you modify the software, you must include in any modified copies of the
|
|
51
|
+
software prominent notices stating that you have modified the software.
|
|
52
|
+
|
|
53
|
+
## No Other Rights
|
|
54
|
+
|
|
55
|
+
These terms do not imply any licenses other than those expressly granted in
|
|
56
|
+
these terms.
|
|
57
|
+
|
|
58
|
+
## Termination
|
|
59
|
+
|
|
60
|
+
If you use the software in violation of these terms, such use is not licensed,
|
|
61
|
+
and your licenses will automatically terminate. If the licensor provides you
|
|
62
|
+
with a notice of your violation, and you cease all violation of this license no
|
|
63
|
+
later than 30 days after you receive that notice, your licenses will be
|
|
64
|
+
reinstated retroactively. However, if you violate these terms after such
|
|
65
|
+
reinstatement, any additional violation of these terms will cause your licenses
|
|
66
|
+
to terminate automatically and permanently.
|
|
67
|
+
|
|
68
|
+
## No Liability
|
|
69
|
+
|
|
70
|
+
*As far as the law allows, the software comes as is, without any warranty or
|
|
71
|
+
condition, and the licensor will not be liable to you for any damages arising
|
|
72
|
+
out of these terms or the use or nature of the software, under any kind of
|
|
73
|
+
legal claim.*
|
|
74
|
+
|
|
75
|
+
## Definitions
|
|
76
|
+
|
|
77
|
+
The **licensor** is the entity offering these terms, and the **software** is the
|
|
78
|
+
software the licensor makes available under these terms, including any portion
|
|
79
|
+
of it.
|
|
80
|
+
|
|
81
|
+
**you** refers to the individual or entity agreeing to these terms.
|
|
82
|
+
|
|
83
|
+
**your company** is any legal entity, sole proprietorship, or other kind of
|
|
84
|
+
organization that you work for, plus all organizations that have control over,
|
|
85
|
+
are under the control of, or are under common control with that
|
|
86
|
+
organization. **control** means ownership of substantially all the assets of an
|
|
87
|
+
entity, or the power to direct its management and policies by vote, contract, or
|
|
88
|
+
otherwise. Control can be direct or indirect.
|
|
89
|
+
|
|
90
|
+
**your licenses** are all the licenses granted to you for the software under
|
|
91
|
+
these terms.
|
|
92
|
+
|
|
93
|
+
**use** means anything you do with the software requiring one of your licenses.
|
|
94
|
+
|
|
95
|
+
**trademark** means trademarks, service marks, and similar rights.
|
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: refrncr
|
|
3
|
+
Version: 0.1.0rc2
|
|
4
|
+
Summary: Reference data without the enterprise baggage.
|
|
5
|
+
Author: DataMisu
|
|
6
|
+
License-Expression: Elastic-2.0
|
|
7
|
+
Classifier: Development Status :: 4 - Beta
|
|
8
|
+
Classifier: Environment :: Web Environment
|
|
9
|
+
Classifier: Intended Audience :: Information Technology
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
13
|
+
Classifier: Topic :: Database
|
|
14
|
+
Requires-Python: >=3.12
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
License-File: LICENSE
|
|
17
|
+
Requires-Dist: a2wsgi<2,>=1.10
|
|
18
|
+
Requires-Dist: sqlalchemy<3,>=2.0
|
|
19
|
+
Requires-Dist: alembic<2,>=1.13
|
|
20
|
+
Requires-Dist: argon2-cffi<26,>=23.1
|
|
21
|
+
Requires-Dist: fastapi<0.163,>=0.141.1
|
|
22
|
+
Requires-Dist: pydantic<2.15,>=2.13.5
|
|
23
|
+
Requires-Dist: flask<4,>=3.1
|
|
24
|
+
Requires-Dist: openpyxl<4,>=3.1
|
|
25
|
+
Requires-Dist: defusedxml<1,>=0.7.1
|
|
26
|
+
Requires-Dist: psycopg[binary]<4,>=3.2
|
|
27
|
+
Requires-Dist: uvicorn<1,>=0.35
|
|
28
|
+
Provides-Extra: dev
|
|
29
|
+
Requires-Dist: build==1.6.1; extra == "dev"
|
|
30
|
+
Requires-Dist: cyclonedx-bom==7.5.0; extra == "dev"
|
|
31
|
+
Requires-Dist: httpx==0.28.1; extra == "dev"
|
|
32
|
+
Requires-Dist: pytest-cov==7.1.0; extra == "dev"
|
|
33
|
+
Requires-Dist: pytest-timeout==2.4.0; extra == "dev"
|
|
34
|
+
Requires-Dist: pytest-xdist==3.8.0; extra == "dev"
|
|
35
|
+
Requires-Dist: pip-tools==7.6.2; extra == "dev"
|
|
36
|
+
Requires-Dist: pre-commit==4.7.0; extra == "dev"
|
|
37
|
+
Requires-Dist: pytest==9.2.0; extra == "dev"
|
|
38
|
+
Requires-Dist: pyyaml==6.0.3; extra == "dev"
|
|
39
|
+
Requires-Dist: ruff==0.17.3; extra == "dev"
|
|
40
|
+
Requires-Dist: setuptools==84.2.1; extra == "dev"
|
|
41
|
+
Requires-Dist: twine==7.0.0; extra == "dev"
|
|
42
|
+
Provides-Extra: quality
|
|
43
|
+
Requires-Dist: bandit<2,>=1.8; extra == "quality"
|
|
44
|
+
Requires-Dist: pip-audit<3,>=2.9; extra == "quality"
|
|
45
|
+
Requires-Dist: radon<7,>=6; extra == "quality"
|
|
46
|
+
Requires-Dist: vulture<3,>=2.14; extra == "quality"
|
|
47
|
+
Dynamic: license-file
|
|
48
|
+
|
|
49
|
+
# refrncr
|
|
50
|
+
|
|
51
|
+
*Reference data without the enterprise baggage.*
|
|
52
|
+
|
|
53
|
+
Refrncr is a lightweight application for managing reference data that is accurate, shared and easy to consume. Create datasets with defined fields and identifiers, organise ownership through teams, and control who may edit, export or access data through the API. Work safely in Concepts: review changes, import versions, restore deleted records, and publish only when ready. Built-in validation, audit history, versioning and import flows protect data quality without adding enterprise complexity. Teams can browse published data in the web interface, download it as Excel, CSV, JSON or retrieve it through a REST API with personal API keys. Run it locally with your database and deployment setup.
|
|
54
|
+
|
|
55
|
+
Read the [Refrncr documentation](https://www.refrncr.org/en/docs/) for product guidance,
|
|
56
|
+
concepts and practical workflows.
|
|
57
|
+
|
|
58
|
+
Refrncr is source-available software licensed under the [Elastic License 2.0](LICENSE) (ELv2).
|
|
59
|
+
You may use, copy, modify and self-host Refrncr, including inside your organisation. You may not
|
|
60
|
+
offer Refrncr to third parties as a hosted or managed service that gives them access to a
|
|
61
|
+
substantial set of its features, circumvent any license key functionality, or remove licensing
|
|
62
|
+
and copyright notices. See [LICENSE](LICENSE) for the full terms.
|
|
63
|
+
|
|
64
|
+
## Security
|
|
65
|
+
|
|
66
|
+
Report suspected vulnerabilities privately through the process in
|
|
67
|
+
[SECURITY.md](SECURITY.md). It explains the preferred confidential channel, what to include
|
|
68
|
+
and the coordinated-disclosure process. Do not open a public issue, pull request or discussion
|
|
69
|
+
for a suspected vulnerability.
|
|
70
|
+
|
|
71
|
+
Third-party dependencies are not bundled: pip installs them separately from their own
|
|
72
|
+
distributions, and they remain under their own licenses. This includes the PostgreSQL driver
|
|
73
|
+
`psycopg`, which is licensed under the LGPL-3.0. Licenses for assets shipped with Refrncr are
|
|
74
|
+
listed in `src/refrncr/static/licenses/`.
|
|
75
|
+
|
|
76
|
+
See the [user guide to importing Records](docs/user-guide/importing-records.md) for how imports
|
|
77
|
+
compare a file with the current Draft.
|
|
78
|
+
|
|
79
|
+
## Quick start
|
|
80
|
+
|
|
81
|
+
Install the release candidate from PyPI in an isolated environment with:
|
|
82
|
+
|
|
83
|
+
```shell
|
|
84
|
+
pipx install --pre refrncr
|
|
85
|
+
refrncr start
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
For development from a source checkout, create a virtual environment and install the Community
|
|
89
|
+
application with:
|
|
90
|
+
|
|
91
|
+
```shell
|
|
92
|
+
python -m venv .venv
|
|
93
|
+
.venv/bin/python -m pip install -e ".[dev]"
|
|
94
|
+
.venv/bin/refrncr start
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Open <http://127.0.0.1:8000>. The server binds only to the local loopback interface by
|
|
98
|
+
default. It uses a persistent embedded SQLite database, creates its parent directory, and applies
|
|
99
|
+
all Community database migrations before accepting requests. Docker and PostgreSQL are not
|
|
100
|
+
required for this quick start.
|
|
101
|
+
|
|
102
|
+
Maintainers build releases from a committed, hash-verified runtime lock while the published package
|
|
103
|
+
metadata retains compatible dependency ranges for ordinary consumers. See the
|
|
104
|
+
[release supply-chain guide](docs/development/supply-chain.md); its configured release workflow is
|
|
105
|
+
not evidence that PyPI or GitHub release prerequisites have already been activated.
|
|
106
|
+
|
|
107
|
+
### Create the first administrator
|
|
108
|
+
|
|
109
|
+
On a new installation, open <http://127.0.0.1:8000/setup>. Enter the
|
|
110
|
+
administrator's email address and display name, and choose a password of at
|
|
111
|
+
least 12 characters. After creating the administrator, sign in at
|
|
112
|
+
<http://127.0.0.1:8000/login>. The setup page is available only while the
|
|
113
|
+
installation has no users; after the first administrator exists it redirects
|
|
114
|
+
to the login page.
|
|
115
|
+
|
|
116
|
+
The first administrator can instead be created from the command line before
|
|
117
|
+
starting the server:
|
|
118
|
+
|
|
119
|
+
```shell
|
|
120
|
+
refrncr user create-admin \
|
|
121
|
+
--email admin@example.com \
|
|
122
|
+
--display-name "Administrator"
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
The command prompts for the password and confirmation so the password does not
|
|
126
|
+
appear in command history. It uses the same default database as `refrncr start`.
|
|
127
|
+
When starting with `--database-path` or `--database-url`, pass the same option to
|
|
128
|
+
`user create-admin` so the administrator is created in the intended database.
|
|
129
|
+
Only the first administrator can be bootstrapped this way; create later users
|
|
130
|
+
from **Settings → Users** while signed in as an administrator.
|
|
131
|
+
|
|
132
|
+
The default database is stored in the operating system's user application-data directory:
|
|
133
|
+
|
|
134
|
+
- Linux: `$XDG_DATA_HOME/refrncr/refrncr.db`, or `~/.local/share/refrncr/refrncr.db` when
|
|
135
|
+
`XDG_DATA_HOME` is unset;
|
|
136
|
+
- macOS: `~/Library/Application Support/refrncr/refrncr.db`;
|
|
137
|
+
- Windows: `%LOCALAPPDATA%\refrncr\refrncr.db`.
|
|
138
|
+
|
|
139
|
+
Configuration precedence is command-line option, then environment variable, then default:
|
|
140
|
+
|
|
141
|
+
```shell
|
|
142
|
+
refrncr start --database-path ./refrncr.db --host 127.0.0.1 --port 8000
|
|
143
|
+
refrncr start --database-url postgresql+psycopg://user:password@localhost/refrncr
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
The corresponding environment variables are `REFRNCR_DATABASE_URL`, `REFRNCR_HOST`, and
|
|
147
|
+
`REFRNCR_PORT`. `--database-path` is a convenient SQLite-only override; `--database-url` supports
|
|
148
|
+
any configured SQLAlchemy database URL. SQLite is the zero-configuration default; PostgreSQL is
|
|
149
|
+
supported for deployments that configure a PostgreSQL SQLAlchemy URL. Explicit trusted reverse
|
|
150
|
+
proxies can be configured with repeatable `--trusted-proxy IP_OR_CIDR` options or the comma-separated
|
|
151
|
+
`REFRNCR_TRUSTED_PROXIES` environment variable; direct Community use requires no proxy setting.
|
|
152
|
+
Configuring a trusted proxy disables plain-HTTP loopback cookies, so proxy deployments require
|
|
153
|
+
HTTPS.
|
|
154
|
+
|
|
155
|
+
## Development
|
|
156
|
+
|
|
157
|
+
Development uses Python 3.12 or newer. From the repository root:
|
|
158
|
+
|
|
159
|
+
```shell
|
|
160
|
+
python -m venv .venv
|
|
161
|
+
.venv/bin/python -m pip install -e ".[dev]"
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
For the exact CI-matching tool versions, install the editable project and the hash-pinned
|
|
165
|
+
development lock instead:
|
|
166
|
+
|
|
167
|
+
```shell
|
|
168
|
+
.venv/bin/python -m pip install -e .
|
|
169
|
+
.venv/bin/python -m pip install --require-hashes -r requirements/dev.txt
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
The default local test run uses SQLite and excludes tests marked `slow`:
|
|
173
|
+
|
|
174
|
+
```shell
|
|
175
|
+
.venv/bin/python -m pytest -m "not postgres"
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
Run the complete SQLite suite, including slow tests, with:
|
|
179
|
+
|
|
180
|
+
```shell
|
|
181
|
+
.venv/bin/python -m pytest --run-slow -m "not postgres"
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
The CI-equivalent parallel run uses all available workers:
|
|
185
|
+
|
|
186
|
+
```shell
|
|
187
|
+
.venv/bin/python -m pytest --run-slow -n auto --durations=50 -m "not postgres"
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
CI prints collection counts for each database and reports the slowest 50 cases. A call that
|
|
191
|
+
takes more than two seconds should be marked `slow`; CI reports unmarked cases above that
|
|
192
|
+
threshold as warnings without making timing alone fail the build.
|
|
193
|
+
|
|
194
|
+
The full database matrix also runs the tests marked `postgres`. PostgreSQL 16 is the supported
|
|
195
|
+
CI version. Start a local PostgreSQL 16 container, set `REFRNCR_TEST_POSTGRES_URL`, and run:
|
|
196
|
+
|
|
197
|
+
```shell
|
|
198
|
+
docker run --rm --name refrncr-postgres -e POSTGRES_DB=refrncr_test -e POSTGRES_USER=refrncr -e POSTGRES_PASSWORD=refrncr -p 5432:5432 postgres:16
|
|
199
|
+
export REFRNCR_TEST_POSTGRES_URL='postgresql+psycopg://refrncr:refrncr@127.0.0.1:5432/refrncr_test'
|
|
200
|
+
.venv/bin/python -m pytest
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
GitHub Actions runs the regular and slow suites as separate jobs on every pull request:
|
|
204
|
+
`test-sqlite`, `test-sqlite-slow`, `test-postgres`, and `test-postgres-slow`. The regular SQLite job
|
|
205
|
+
has a 25-minute limit; the other jobs have 15 minutes for slow tests and 20 minutes for regular
|
|
206
|
+
PostgreSQL tests. The `coverage` job combines artifacts from the two regular-suite jobs, while the
|
|
207
|
+
slow-suite jobs remain independent checks and should be configured as required checks in repository
|
|
208
|
+
branch protection.
|
|
209
|
+
|
|
210
|
+
To run the suite with branch coverage locally, use the installed development extra:
|
|
211
|
+
|
|
212
|
+
```shell
|
|
213
|
+
.venv/bin/python -m pytest --cov
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
The configured coverage floor is 90%; migration files are excluded because Alembic owns their
|
|
217
|
+
execution. The optional quality tools can be installed and run with:
|
|
218
|
+
|
|
219
|
+
```shell
|
|
220
|
+
.venv/bin/python -m pip install -e ".[quality]"
|
|
221
|
+
.venv/bin/python -m radon cc src/refrncr -s -a
|
|
222
|
+
.venv/bin/python -m bandit -r src/refrncr
|
|
223
|
+
.venv/bin/python -m vulture src/refrncr
|
|
224
|
+
.venv/bin/python -m pip_audit
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
The repository checks are:
|
|
228
|
+
|
|
229
|
+
| Check | Command | Local use |
|
|
230
|
+
| --- | --- | --- |
|
|
231
|
+
| Tests | `.venv/bin/python -m pytest` | Required; PostgreSQL tests run when configured |
|
|
232
|
+
| Ruff lint | `.venv/bin/python -m ruff check .` | Required |
|
|
233
|
+
| Ruff format | `.venv/bin/python -m ruff format --check .` | Required |
|
|
234
|
+
| Pre-commit | `.venv/bin/python -m pre_commit run --all-files` | Required before review |
|
|
235
|
+
| Coverage | `.venv/bin/python -m pytest --cov` | Branch coverage; fails below 90% |
|
|
236
|
+
| Optional quality tools | `.venv/bin/python -m pip install -e ".[quality]"` | Radon, Bandit, Vulture and pip-audit; not a CI gate |
|
|
237
|
+
| CI-only security/release jobs | GitHub Actions | Run by CI |
|
|
238
|
+
|
|
239
|
+
Without `REFRNCR_TEST_POSTGRES_URL`, PostgreSQL-marked tests are skipped with an explicit reason;
|
|
240
|
+
SQLite tests still run. Use `pytest --durations=50` when profiling test feedback.
|
|
241
|
+
|
|
242
|
+
### Health and operational logs
|
|
243
|
+
|
|
244
|
+
After the existing automatic migration/bootstrap sequence succeeds, `GET /healthz`
|
|
245
|
+
reports process liveness and `GET /readyz` reports runtime database and Alembic-head
|
|
246
|
+
readiness. Probes are public, data-free and non-cacheable. `refrncr start` remains
|
|
247
|
+
fail-closed when its pre-start migration or bootstrap fails. Run migrations and
|
|
248
|
+
bootstrap successfully before relying on either probe.
|
|
249
|
+
|
|
250
|
+
At an interactive terminal the CLI prints a compact ready message with the browser URL;
|
|
251
|
+
successful request noise stays hidden. When stdout is redirected or collected, it emits
|
|
252
|
+
privacy-safe JSON lines instead. `--log-level` overrides `REFRNCR_LOG_LEVEL` for that
|
|
253
|
+
process; both accept `DEBUG`, `INFO`, `WARNING`, `ERROR` or `CRITICAL`. Interactive debug
|
|
254
|
+
uses only safe route categories, status, duration and request IDs and aggregates repeated
|
|
255
|
+
requests. Set `NO_COLOR` to disable terminal accents. Binding `--host 0.0.0.0` displays
|
|
256
|
+
`localhost` as the browser URL and states that every network interface is bound; no external
|
|
257
|
+
address is discovered. Every HTTP response receives an `X-Request-ID`. See the
|
|
258
|
+
[runtime operations guide](docs/development/operations.md) for probe usage, logging
|
|
259
|
+
fields and redaction boundaries.
|
|
260
|
+
|
|
261
|
+
Community operators are responsible for database backup scheduling, protected
|
|
262
|
+
storage, encryption, access and retention. See the
|
|
263
|
+
[operator backup and recovery guide](docs/development/backup-recovery.md) for verified
|
|
264
|
+
SQLite and PostgreSQL procedures; REFRNCR does not provide a backup service.
|
|
265
|
+
|
|
266
|
+
## Community user foundation
|
|
267
|
+
|
|
268
|
+
The Community application owns exactly one Organisation and supports multiple local users. On
|
|
269
|
+
application construction the Organisation is created when absent; `/setup` creates the first user
|
|
270
|
+
as its administrator. Administrators can then create, enable, disable, soft-delete, and change the
|
|
271
|
+
email address of users through the Flask web boundary. Passwords use Argon2id and authentication
|
|
272
|
+
uses database-backed server-side sessions.
|
|
273
|
+
|
|
274
|
+
The loopback and HTTPS cookie/session policy is documented in
|
|
275
|
+
[Browser session security](docs/development/browser-session-security.md).
|
|
276
|
+
|
|
277
|
+
SQLite supports the zero-infrastructure local experience. PostgreSQL is recommended for serious
|
|
278
|
+
concurrent multi-user operation.
|
|
279
|
+
|
|
280
|
+
The selected Argon2id parameters, per-operation resource implications, and opt-in benchmark are
|
|
281
|
+
documented in [Argon2id resource profile](docs/development/argon2-resource-profile.md).
|
|
282
|
+
|
|
283
|
+
## Community teams
|
|
284
|
+
|
|
285
|
+
Administrators can create, rename, list, and delete multiple teams within the single Community
|
|
286
|
+
installation. Team names preserve their NFC-normalized display form and are unique using Unicode
|
|
287
|
+
case-insensitive comparison. Administrators can add active users to teams and remove memberships;
|
|
288
|
+
users may belong to multiple teams, and teams may exist without members. Disabling or soft-deleting
|
|
289
|
+
a user retains their memberships. Ordinary active users can view their own teams. Teams represent
|
|
290
|
+
data domains: each Dataset has exactly one owning team, whose current members can maintain and
|
|
291
|
+
export it. Team deletion requires reassignment of every owned Dataset first.
|
|
292
|
+
|
|
293
|
+
Every active Community user can discover and read all Datasets and create a Dataset for one of
|
|
294
|
+
their teams. Administrators can create for any team and manage ownership and additional user/team
|
|
295
|
+
export access. Read access alone does not permit export. Historical Dataset viewer/editor/admin
|
|
296
|
+
Grants and creator metadata confer no Dataset rights. Grants are deprecated
|
|
297
|
+
programmatic compatibility data; browser and current Community APIs use named
|
|
298
|
+
capabilities instead.
|
|
299
|
+
|
|
300
|
+
Existing installations must resolve ambiguous ownership before upgrading. See
|
|
301
|
+
[Dataset governance and operator preflight](docs/development/dataset-governance.md) for the
|
|
302
|
+
authorization model, migration mapping, concurrency contract and backup/restore procedure.
|
|
303
|
+
|
|
304
|
+
## Audit coverage
|
|
305
|
+
|
|
306
|
+
Active Community administrators can browse **Settings → Audit log**. See
|
|
307
|
+
[audit history](docs/development/audit-history.md) for filters, safe detail presentation,
|
|
308
|
+
UTC/local time, cursor navigation and the read-only security boundary.
|
|
309
|
+
|
|
310
|
+
See the [audit policy](docs/development/audit-policy.md),
|
|
311
|
+
[functional inventory](docs/development/audit-inventory.json) and
|
|
312
|
+
[coverage matrix](docs/development/audit-coverage.json) for service-level audit contracts,
|
|
313
|
+
transactional mutation events, import summaries and prepared export request semantics.
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
### Published Dataset versions
|
|
317
|
+
|
|
318
|
+
Published Dataset versions are immutable complete snapshots with UTC effective dates. Ordinary users read the
|
|
319
|
+
Current snapshot; active owning-team members and Community administrators manage the concept,
|
|
320
|
+
publish and cancel Scheduled versions. Historical Grants grant no editing or publication rights
|
|
321
|
+
and are not exposed through the browser or current Community API.
|
|
322
|
+
See [Dataset versions and upgrade preflight](docs/development/dataset-versions.md) before upgrading
|
|
323
|
+
an existing installation: every Dataset must have valid Fields, an identifier and valid values.
|
|
324
|
+
The controlled upgrade creates one System-published Version 1 per valid Dataset and fails closed
|
|
325
|
+
if any Dataset is invalid. Back up the database and stop writers before the upgrade.
|
|
326
|
+
|
|
327
|
+
## API keys
|
|
328
|
+
|
|
329
|
+
API keys are available under Settings for active users when the installation
|
|
330
|
+
configures `REFRNCR_API_KEY_PEPPER`. For local development from a source checkout,
|
|
331
|
+
create the ignored `.env` file once:
|
|
332
|
+
|
|
333
|
+
```shell
|
|
334
|
+
umask 077
|
|
335
|
+
printf 'REFRNCR_API_KEY_PEPPER=%s\n' "$(openssl rand -hex 32)" > .env
|
|
336
|
+
.venv/bin/refrncr start
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
The CLI loads `.env` from its current working directory and does not override
|
|
340
|
+
variables already supplied by the launching environment. Stop and restart
|
|
341
|
+
refrncr after changing configuration.
|
|
342
|
+
|
|
343
|
+
Keep the generated value in protected installation configuration so every
|
|
344
|
+
restart receives the same pepper. Do not commit or log `.env`. Changing or losing
|
|
345
|
+
the pepper makes existing API keys unusable. See
|
|
346
|
+
[configuration, troubleshooting, rotation and authentication](docs/development/api-keys.md).
|
|
347
|
+
These API keys authenticate requests to the Current published data REST API.
|
|
348
|
+
|
|
349
|
+
## Current REST API
|
|
350
|
+
|
|
351
|
+
The same application serves read-only Dataset metadata and Records under `/api/v1`.
|
|
352
|
+
Use an API key in the Authorization Bearer header; browser sessions do not authenticate
|
|
353
|
+
API requests. Collections use offset/limit pagination and private conditional reads
|
|
354
|
+
support ETag/304 revalidation. See the [REST contract and operations guide](docs/development/rest-api.md).
|
|
355
|
+
Public API documentation: open `/api/docs` for Swagger UI or `/api/openapi.json`
|
|
356
|
+
for the generated contract. Data endpoints require a Bearer API key and expose
|
|
357
|
+
Current published data only. See [REST API usage and documentation security](docs/development/rest-api.md).
|