Metadata-Version: 2.1
Name: formkit-ninja
Version: 0.1.6a2
Summary: A Django-Ninja backend to specify FormKit schemas
Home-page: https://github.com/catalpainternational/formkit-ninja
License: GPLv3
Author: Josh Brooks
Author-email: josh@catalpa.io
Requires-Python: >=3.10,<4.0
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: Django (>=4.1.5,<5.0.0)
Requires-Dist: django-ninja (>=0.20.0,<0.21.0)
Requires-Dist: django-ordered-model (>=3.6,<4.0)
Requires-Dist: pydantic (<2)
Project-URL: Repository, https://github.com/catalpainternational/formkit-ninja
Description-Content-Type: text/markdown

# 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`:

```py
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 .`

