http_request_randomizer.rest package¶
Submodules¶
http_request_randomizer.rest.proxylist module¶
ProxyList¶
A microblogging application written with Flask and sqlite3.
copyright: |
|
---|---|
license: | BSD, see LICENSE for more details. |
-
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.
query_db
(query, args=(), one=False)[source]¶ Queries the database and returns a list of dictionaries.
-
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.