No project description provided
Project description
HOPE FlexFields
This library provides the ability to define a set of fields and related validation rules dynamically. It has been designed as part of the HOPE project to manage user-customizable fields (FlexField). The idea is to have a central business logic repository for data import validation.
It provides four classes:
- FieldDefinition: This represents a collection of reusable pre-configured fields
- FlexField: Instance like representation of
FieldDefinition
inside aFieldset
- Fieldset: Group of FlexField
- DataChecker: Compound of fieldset
From the design point of view a high level comparison with Django components could be:
FieldDefinition
=class forms.Field
Fieldset
=forms.Form
FlexField
=forms.Field()
DataChecker
=[forms.Form(),...]
... and some utilities
- Automatic creation of FieldSets inspecting exiting models
- Automatic creation of XLS file matching an existing Datachecker
- Validate XLS against an existing Datachecker
classDiagram
class AbstractField
class FieldDefinition
class FlexField
class Fieldset
class DataChecker
AbstractField <|-- FlexField
AbstractField <|-- FieldDefinition
Fieldset *-- FlexField
FlexField --> FieldDefinition
DataChecker o-- Fieldset
Install
CSP_SCRIPT_SRC = [
...
"cdnjs.cloudflare.com",
]
INSTALLED_APPS = [
...
'admin_extra_buttons',
'jsoneditor',
'hope_flex_fields',
]
Demo Application
python manage.py migrate
python manage.py demo
python manage.py runserver
Navigate to http://localhost:8000/admin/ and login using any username/password
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file hope_flex_fields-0.1.0rc0.tar.gz
.
File metadata
- Download URL: hope_flex_fields-0.1.0rc0.tar.gz
- Upload date:
- Size: 311.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 887519da13658f19eba1681b03ccaeeafaf3ea4d69727c1f74e81b8bbbb44660 |
|
MD5 | c4f531a723be6d98b36c0c426c6f08ae |
|
BLAKE2b-256 | c0df6e14f88ce4c57c58fbefa32a7290920d06b5caa7846c9fc2305ea22a6ab3 |
File details
Details for the file hope_flex_fields-0.1.0rc0-py3-none-any.whl
.
File metadata
- Download URL: hope_flex_fields-0.1.0rc0-py3-none-any.whl
- Upload date:
- Size: 263.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f31dd416d5ad42edd3e1b537141a7938b2b094d293f237fc0adf71a63c9718b |
|
MD5 | 2bd0de780e322f345e97fb3e6d14fcdc |
|
BLAKE2b-256 | fcb06a85d16c0ff29f472ca03b886f81d6451300611714f321233a3e286b1c66 |