Skip to content

Unviray/pyfield

Repository files navigation

pyfield

image

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

Releases

No releases published

Packages

No packages published