Skip to content

Latest commit

 

History

History
25 lines (14 loc) · 590 Bytes

README.md

File metadata and controls

25 lines (14 loc) · 590 Bytes

python-tequila

A python wrapper for the Tequila Login Manager at EPFL. Based on original work by @gcmalloc.

Usage

To get a requests session which is authenticated against Tequila.

conn = create_tequila_session("gaspar", "secret")

conn is a session object. For example, to fetch a page content :

response = conn.get("http://moodle.epfl.ch")

The response is a python requests reponse object, so check its documentation to know how to use it.

Requirements

  • BeautifulSoup
  • requests