mal package¶
Submodules¶
mal.api module¶
-
class
mal.api.
MyAnimeList
(username, password, date_format='%Y-%m-%d')[source]¶ Bases:
object
Does all the actual communicating with the MAL api.
-
base_url
= 'https://myanimelist.net/api'¶
-
status_codes
= {'completed': 2, 'dropped': 4, 'on hold': 3, 'plan to watch': 6, 'rewatching': 7, 'watching': 1}¶
-
status_names
= {1: 'watching', 2: 'completed', 3: 'on hold', 4: 'dropped', 6: 'plan to watch', 7: 'rewatching'}¶
-
user_agent
= 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36'¶
-
mal.color module¶
mal.commands module¶
These function serve as an entry point for the several subcommands of mal. All they do is basically call the functions that do actual work in the core module.
-
mal.commands.
edit
(mal, args)[source]¶ Edit an entry in the users list, if it was present. Notify otherwise.
mal.core module¶
-
mal.core.
edit
(mal, regex, changes)[source]¶ Select and change entry. Opens file with data to change if no field was given.
-
mal.core.
find
(mal, regex, filtering='all', extra=False, user=None)[source]¶ Find all anime in a certain status given a regex.
mal.login module¶
mal.utils module¶
-
mal.utils.
checked_connection
(func)[source]¶ Wrap the function in a try/except to catch and handle a ConnectionError.