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.6.3.tar.gz
.
File metadata
- Download URL: hope_flex_fields-0.6.3.tar.gz
- Upload date:
- Size: 585.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15aa9a8f28ce5d429e4f183bbdf638cff6a381f6e685b4ba112bfa12f663081f |
|
MD5 | c21e37b0430aa568c18a30333f1e884f |
|
BLAKE2b-256 | 1a9cb9203889aa1e093998be9dd439b1710586f1a1b0f126f0d96e3c4b1bf6fe |
File details
Details for the file hope_flex_fields-0.6.3-py3-none-any.whl
.
File metadata
- Download URL: hope_flex_fields-0.6.3-py3-none-any.whl
- Upload date:
- Size: 318.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d3084948b0e17ee7a6cdc0898c0d431d352c27001675c87534e7f07456566cb |
|
MD5 | 200b67aea4536391b38df1d83921e88a |
|
BLAKE2b-256 | 718d7175ee5ca21a9f85cff201efa7e49064aa1dd16689f1935a4825b0f96500 |