http_request_randomizer.rest package

Submodules

http_request_randomizer.rest.proxylist module

ProxyList

A microblogging application written with Flask and sqlite3.

copyright:
  1. 2015 by Armin Ronacher.
license:

BSD, see LICENSE for more details.

http_request_randomizer.rest.proxylist.add_message()[source]

Registers a new message for the user.

http_request_randomizer.rest.proxylist.before_request()[source]
http_request_randomizer.rest.proxylist.check_proxies()[source]
http_request_randomizer.rest.proxylist.close_database(exception)[source]

Closes the database again at the end of the request.

http_request_randomizer.rest.proxylist.follow_user(username)[source]

Adds the current user as follower of the given user.

http_request_randomizer.rest.proxylist.format_datetime(timestamp)[source]

Format a timestamp for display.

http_request_randomizer.rest.proxylist.get_db()[source]

Opens a new database connection if there is none yet for the current application context.

http_request_randomizer.rest.proxylist.get_user_id(username)[source]

Convenience method to look up the id for a username.

http_request_randomizer.rest.proxylist.gravatar_url(email, size=80)[source]

Return the gravatar image for the given email address.

http_request_randomizer.rest.proxylist.init_db()[source]

Initializes the database.

http_request_randomizer.rest.proxylist.login()[source]

Logs the user in.

http_request_randomizer.rest.proxylist.logout()[source]

Logs the user out.

http_request_randomizer.rest.proxylist.public_timeline()[source]
http_request_randomizer.rest.proxylist.query_db(query, args=(), one=False)[source]

Queries the database and returns a list of dictionaries.

http_request_randomizer.rest.proxylist.register()[source]

Registers the user.

http_request_randomizer.rest.proxylist.timeline()[source]

Shows a users timeline or if no user is logged in it will redirect to the public timeline. This timeline shows the user’s messages as well as all the messages of followed users.

http_request_randomizer.rest.proxylist.unfollow_user(username)[source]

Removes the current user as follower of the given user.

http_request_randomizer.rest.proxylist.user_timeline(username)[source]

Display’s a users tweets.

Module contents