Date: Fri, 20 Sep 2024 12:14:45 GMT From: Muhammad Moinur Rahman <bofh@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: b20008107022 - main - devel/py-flatland: New port Message-ID: <202409201214.48KCEjmv073121@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=b20008107022df3026a9e71fd468dc3625f6ac29 commit b20008107022df3026a9e71fd468dc3625f6ac29 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2024-09-20 12:12:23 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2024-09-20 12:14:32 +0000 devel/py-flatland: New port HTML form management and validation Flatland maps between rich, structured Python application data and the string-oriented flat namespace of web forms, key/value stores, text files and user input. Flatland provides a schema-driven mapping toolkit with optional data validation. Flatland is great for: - Collecting, validating, re-displaying and processing HTML form data - Dealing with rich structures (lists, dicts, lists of dicts, etc.) in web data - Validating JSON, YAML, and other structured formats - Associating arbitrary Python types with JSON, .ini, or sys.argv members that would otherwise deserialize as simple strings. - Reusing a single data schema for HTML, JSON apis, RPC The core of the flatland toolkit is a flexible and extensible declarative schema system representing many data types and structures. A validation system and library of schema-aware validators is also provided, with rich i18n capabilities for use in HTML, network APIs and other environments where user-facing messaging is required. WWW: https://github.com/discorporate/flatland/ --- devel/Makefile | 1 + devel/py-flatland/Makefile | 23 +++++++++++++++++++++++ devel/py-flatland/distinfo | 3 +++ devel/py-flatland/pkg-descr | 20 ++++++++++++++++++++ 4 files changed, 47 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index f1ce5de29d2f..298e33bbd3dc 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4843,6 +4843,7 @@ SUBDIR += py-flask-babel SUBDIR += py-flatbuffers SUBDIR += py-flatdict + SUBDIR += py-flatland SUBDIR += py-flatten-dict SUBDIR += py-flex SUBDIR += py-flexmock diff --git a/devel/py-flatland/Makefile b/devel/py-flatland/Makefile new file mode 100644 index 000000000000..3c4a6e797fe4 --- /dev/null +++ b/devel/py-flatland/Makefile @@ -0,0 +1,23 @@ +PORTNAME= flatland +DISTVERSION= 0.9.1 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= bofh@FreeBSD.org +COMMENT= HTML form management and validation +WWW= https://github.com/discorporate/flatland/ + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools-scm>=0:devel/py-setuptools-scm@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}blinker>=0:devel/py-blinker@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist distutils + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/devel/py-flatland/distinfo b/devel/py-flatland/distinfo new file mode 100644 index 000000000000..d34e02f5a315 --- /dev/null +++ b/devel/py-flatland/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1726833553 +SHA256 (flatland-0.9.1.tar.gz) = 4e352911690bd8c056f4a6a558dee9ac4126bedbbb53a0bc2fd107ca155dac12 +SIZE (flatland-0.9.1.tar.gz) = 468887 diff --git a/devel/py-flatland/pkg-descr b/devel/py-flatland/pkg-descr new file mode 100644 index 000000000000..cd308bbd7de0 --- /dev/null +++ b/devel/py-flatland/pkg-descr @@ -0,0 +1,20 @@ +Flatland maps between rich, structured Python application data and the +string-oriented flat namespace of web forms, key/value stores, text +files and user input. Flatland provides a schema-driven mapping toolkit +with optional data validation. + +Flatland is great for: +- Collecting, validating, re-displaying and processing HTML form data +- Dealing with rich structures (lists, dicts, lists of dicts, etc.) in + web data +- Validating JSON, YAML, and other structured formats +- Associating arbitrary Python types with JSON, .ini, or sys.argv + members that would otherwise deserialize as simple strings. +- Reusing a single data schema for HTML, JSON apis, RPC + +The core of the flatland toolkit is a flexible and extensible +declarative schema system representing many data types and structures. + +A validation system and library of schema-aware validators is also +provided, with rich i18n capabilities for use in HTML, network APIs and +other environments where user-facing messaging is required.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202409201214.48KCEjmv073121>