fabrique-nodes-core
fabrique nodes sdk
Install this lib
pip3 install fabrique-nodes-core
UI ports generator
class UIPortGroupParams:
id_: str = '' # port_group_id
show_ports: bool = True # show port panels
can_add: bool = False # can add new port to group
can_delete: bool = False # can add delete port from group
can_move: bool = False # can move port inside group
can_hide: bool = False # can hide port
can_set_type: bool = True # can set porttype to port
has_code: bool = False # has editable code field
has_special: bool = False # has special binary switch
has_required: bool = False # has required binary switch
copy_name_from_code: bool = True # copy port name from code field when code edting
group_title: str | None = None # visual title for port group
special_title: str | None = None # title|tooltip for special
code_title: str | None = None # title|tooltip for code
copy_from_group: str | None = None # port group name
portgenerator_callback_name: str | None = None
valid_types: List[str] = []
UI config forms generator
typical config
from pydantic import BaseModel, Field, constr
from typing import Literal
urls_type = constr(regex=r'[A-Za-z0-9]+://[A-Za-z0-9%-_]+(/[A-Za-z0-9%-_])*(#|\\?)[A-Za-z0-9%-_&=]*')
class Config(BaseModel):
port: int = Field(80, title='DB Port', description='ClickHouse Port', ge=0, le=65535)
url: urls_type = Field('', title='url', description='ClickHouse URL')
agg: Literal['MAX', 'MIN', 'SUM'] = Field('SUM', title='Aggregator', description='Aggregator method')
Then Config().schema() could be validated here
Field for defaults, titles, descriptions and constraints
Literal string enums supported
ge and le for numbers (>= and <=)
Metadata
Release files for fabrique-nodes-core 0.13.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fabrique_nodes_core-0.13.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / fabrique_nodes_core-0.13.1-py3-none-any.whl
| Download URL | fabrique_nodes_core-0.13.1-py3-none-any.whl |
|---|---|
| Size | 33.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cd5e63e22555557d7b0f8da417d6f97e007daf0a53695e3564e16254ead53fb1
|
|
BLAKE2b-256 checksum How to use checksums |
b1ae5c83bac056eab11f6feec73e1c02a7111dbfca81ace5c0219264e882a5d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Security for fabrique-nodes-core 0.13.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.