Skip to main content

Forms for aiogram

Project description

aiogram-forms

Introduction

aiogram-forms is an addition for aiogram which allows you to create different forms and process user input step by step easily.

Installation

pip install aiogram-forms

Usage

Create form you need by subclassing aiogram_forms.forms.Form. Fields can be added with aiogram_forms.fields.Field

from aiogram_forms import forms, fields

class UserForm(forms.Form):
    """User profile data form"""
    name = fields.StringField('Name')
    language = fields.StringField('Language', choices=('English', 'Russian', 'Chinese'))
    email = fields.EmailField('Email')

Code of Conduct

History

All notable changes to this project will be documented in CHANGELOG file.

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

aiogram-forms-0.1.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

aiogram_forms-0.1.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file aiogram-forms-0.1.0.tar.gz.

File metadata

  • Download URL: aiogram-forms-0.1.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.10 Linux/4.15.0-143-generic

File hashes

Hashes for aiogram-forms-0.1.0.tar.gz
Algorithm Hash digest
SHA256 74cb3afc615d42e648b4223b12535c5ddcd59ede087d9473b3c77da27f34d77d
MD5 b97b162fe4cc7703dbd7241fbaaa19c9
BLAKE2b-256 a59cda5c12f13b04005ea8078b432f9734392c3492a335f331c1f4db7b775008

See more details on using hashes here.

File details

Details for the file aiogram_forms-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: aiogram_forms-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.10 Linux/4.15.0-143-generic

File hashes

Hashes for aiogram_forms-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 46142d06dccf3d17d8c5698ab08bc7d9e0af22555586a0714442861345885ac0
MD5 fb13318a6937eb4fd958abadae5ad30a
BLAKE2b-256 4b0810badf705e1bc07ab00cde406410ca43ef18cf83701a97d689a26d536ead

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