Skip to content

Unviray/pyfield

Repository files navigation

pyfield

https://travis-ci.org/Ublimjo/pyfield.svg?branch=master

Collection of field for your form not only web form

Description

pyfield is a collection of field with battery included.

This project is under developmment, please read CONTIBUTING.rst

Installation

From pypi

pip install pyfield

From source

$ git clone https://github.com/Ublimjo/pyfield
$ cd pyfield/
$ python setup.py install

Example

>>> from pyfield import Text
>>>
>>> def main():
>>>     username = Text('Username')
>>>     username(input(username.prompt_input()))
>>>     print(f'Your name is {username.get}')
>>>
>>> main()
 Username: Bob
Your name is Bob

It's very simple but pyfield comes with a lot of features

  • Default value
  • Transformator
  • Validator

Read the docs if you want to know more about these features or create your own Transformator and validator

About

Field collection for your form

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •