Skip to main content

A Django-Ninja backend to specify FormKit schemas

Project description

Formkit-Ninja

A Django-Ninja framework for FormKit schemas and form submissions

Why

FormKit out of the box has awesome schema support - this lets us integrate FormKit instances as Django models

  • Upload / edit / download basic FormKit schemas
  • Translated "option" values from the Django admin
  • Reorder "options" and schema nodes
  • List and Fetch schemas for different form types

Use

To use, pip install formkit-ninja and add the following to settings INSTALLED_APPS:

INSTALLED_APPS = [
    ...
    "formkit_ninja",
    "ordered_model",
    "ninja",
    ...
]

Test

Pull the repo:

gh repo clone catalpainternational/formkit-ninja cd formkit-ninja poetry install poetry run pytest

Lint

poetry run black --check . poetry run isort --check . poetry run flake8 .

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

formkit_ninja-0.2.0a1.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

formkit_ninja-0.2.0a1-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

Details for the file formkit_ninja-0.2.0a1.tar.gz.

File metadata

  • Download URL: formkit_ninja-0.2.0a1.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.11.2 Linux/5.19.0-38-generic

File hashes

Hashes for formkit_ninja-0.2.0a1.tar.gz
Algorithm Hash digest
SHA256 b1dba15d5a5fabcf7de8d14fbfdc794d5d8ad785a2c7a306cbb2b40c70ae9a0a
MD5 d50f731d674ce40bffecd23636dcf692
BLAKE2b-256 f13290da548cb9e078e9aac8c39d20fd44bf00b425853f97bfc2df9e99710e2b

See more details on using hashes here.

File details

Details for the file formkit_ninja-0.2.0a1-py3-none-any.whl.

File metadata

  • Download URL: formkit_ninja-0.2.0a1-py3-none-any.whl
  • Upload date:
  • Size: 20.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.11.2 Linux/5.19.0-38-generic

File hashes

Hashes for formkit_ninja-0.2.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 c33a798e1da3f169dd5241f70d0e4199b1b2ad3d8735fe8d1edabe4b3d4da067
MD5 66eda81e8955e4b264ed5819159c9ba3
BLAKE2b-256 1a7801eb5a628bb69464398084d7843a0b7c061d9e9cf22515cd41f58e6f4730

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page