Skip to main content
https://badge.fury.io/py/django-vueformgenerator.png https://travis-ci.org/player1537/django-vueformgenerator.png?branch=master

A package to help bridge the gap between Django’s Forms and VueFormGenerator’s Schemas using DjangoRestFramework.

Documentation

The full documentation is at https://django-vueformgenerator.readthedocs.org.

Quickstart

Install Django-VueFormGenerator:

pip install django-vueformgenerator

Then use it in a project:

from django_vueformgenerator.schema import Schema
from django import forms
import json

class TestForm(forms.Form):
    title = forms.CharField(max_length=128)
    content = forms.TextField(max_length=1280)

form = TestForm()  # or TestForm(data={'title':'My Title'})
schema = Schema().render(form)
print(json.dumps(schema))

Features

  • TODO

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install -r requirements_test.txt
(myenv) $ python runtests.py

Credits

Tools used in rendering this package:

History

0.2.3 (2016-11-03)

  • Add support for dotted models. Use this feature by defining your Form with a field that has a name with double-underscores (e.g. “foo__bar__baz”, which will become “foo.bar.baz” in the schema’s model field).

0.2.2 (2016-11-01)

  • Fix implementation of using initial data in forms. Previously, if you used CharField(initial=’foo’) then this information would not be preserved when creating the schema.

0.2.1 (2016-10-27)

  • Fix bug in tests so that the tests run successfully in Python 2.7.

0.2.0 (2016-10-25)

  • Add ability to use existing data in form

  • DEPRECATED: Any code which previously used Schema().render(MyForm) should now use Schema().render(MyForm()) (in other words, render() accepts an instance of a form, rather than a form itself). To check if you are calling the function against contract, you can run your code with python -Wd (e.g. python -Wd manage.py runserver).

0.1.1 (2016-10-18)

  • Add additional tests for schema generation

  • Add components for numbers and for selecting between choices

  • Add Python 2 support

  • Add better documentation

  • Fix exception raised on bad widget

0.1.0 (2016-10-11)

  • First release on PyPI.

Metadata

Release files for django-vueformgenerator 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-vueformgenerator 0.2.3
File Size Uploaded Provenance Actions
django-vueformgenerator-0.2.3.tar.gz 7.9 kB Without provenance Details for django-vueformgenerator-0.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-vueformgenerator 0.2.3
File Interpreter ABI Platform Actions
django_vueformgenerator-0.2.3-py2.py3-none-any.whl Python 2, Python 3 none any Details for django_vueformgenerator-0.2.3-py2.py3-none-any.whl

Total release size: 17.2 kB

Release files / django-vueformgenerator-0.2.3.tar.gz

Download URL django-vueformgenerator-0.2.3.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3dd1cd47b42bc2972dc80c2883df69960f8f0979f8666938cf544071b4db68d0
BLAKE2b-256 checksum
How to use checksums
c79c4e0426ed6700dd13351792b61f06cb34d3221baecd05730bdd469a663eb5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_vueformgenerator-0.2.3-py2.py3-none-any.whl

Download URL django_vueformgenerator-0.2.3-py2.py3-none-any.whl
Size 9.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
e86f97e6209d0b2cde6646c43fbb4164d98ef6766cb46e2d94e91c484158d4b0
BLAKE2b-256 checksum
How to use checksums
9a3f91069d74fc76d5453daff96c1d5cda5958a6b338ba41e7e2f3bfae24e3f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-vueformgenerator 0.2.3

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page