Various helper functions¶
These functions are called (internally) to (i) make the code more readable and
(ii) automate some parts of the data handling. These functions are all in
pymangal.helpers.
Documentation¶
-
pymangal.helpers.uri_from_username(api, username)[source]¶ Returns a URI from a username
Parameters: - api – An API object
- username – The username for which you want the URI, as a string
Returns: The URI as a string, and raises
ValueErrorif there is no known user,TypeErrorif the arguments are not in the correct type.