Coder Social home page Coder Social logo

www3838438 / flask-fillin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jarus/flask-fillin

0.0 2.0 0.0 157 KB

Flask extension provides simple utilities for testing forms

Home Page: http://packages.python.org/Flask-fillin

License: Other

Python 93.48% HTML 6.52%

flask-fillin's Introduction

Flask-fillin

This Flask extension provides simple utilities for testing your forms in Flask application.

Installation

The installation is thanks to the Python Package Index and pip really simple.

$ pip install Flask-fillin

If you only can use easy_install than use

$ easy_install Flask-fillin

Flask-fillin requires to run some packages (they will be installed automatically if they not already installed):

  • Flask
  • lxml

Example Usage

from flask.ext.fillin import FormWrapper

client = FlaskClient(flask_app, response_wrapper=FormWrapper)

# form submission
response = client.get('/page_with_form')

response.form.fields['username'] = 'my username'
response.form.fields['password'] = 'secret'
response.form.fields['remember'] = True

response.form.submit(client)

# link navigation
response = client.get('/page_with_links')
response.link("#link-id").click(client)

# underlying parsed html
links = response.html.findall("a")

flask-fillin's People

Contributors

jarus avatar tomasd avatar mfa avatar joehand avatar

Watchers

 avatar 长毛是狗 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.