Skip to main content

A command line interface to your MyAnimeList profile

Project description

Build Status PyPi version Requirements Status PyPi License PyPI pyversions PyPI status HitCount

Description

mal is a command-line client for MyAnimeList.net which uses the official API. It should remain functional indefinitely (unlike web-scraping alternatives). It is currently in alpha development so new ideas are welcome! This project is inspired from mal.

Features

  • Searching your anime list

  • Fetch your anime list

  • List animes in certain status (e.g. watching)

  • Increment or decrement episodes seen of animes

And more are currently being developed!

TL;DR | Demos

Main Usage

Main Usage

Listing Animes By Status

Listing Animes By Status

Requirements

Check requirements.txt for exact versions.

Installation

Using pip

From the command line run:

sudo pip install mal

Manual Installation

Clone this project and run inside it:

sudo python setup.py install

Or alternatively using make:

sudo make install

On ArchLinux

If you’re using the archlinux distro this project has been packaged and uploaded to the AUR as python-mal-git.

You can install it using an AUR wrappers like yaourt or pacaur which will be much simpler.

Using yaourt:

yaourt -S python-mal-git

Using pacaur:

pacaur -y python-mal-git

Or do it manually:

wget https://aur.archlinux.org/cgit/aur.git/snapshot/python-mal-git.tar.gz
tar xvzf python-mal-git.tar.gz
cd python-mal-git/
makepkg -si

Notice that before using this method all dependencies should be installed.

Usage

Authenticating

The program needs your credentials to access your list. In the first call to any valid command the program will ask for your username and password and save it in plain text in the default path (on linux ~/.config/mal/myanimelist.ini).

The file will be save in the following format:

[mal]
username = your_username
password = your_password

After authenticating you can start using the program.

Using The Interface

When mal is executed without any arguments the help message is displayed:

usage: mal [-h]
           {search,increase,inc,decrease,dec,login,list,config,download,watch}
           ...

MyAnimeList command line client.

positional arguments:
  {search,increase,inc,decrease,dec,login,list,config,download,watch}
                        commands
    search              search an anime
    increase (inc)      increase anime's watched episodes by one
    decrease (dec)      decrease anime's watched episodes by one
    login               save login credentials
    list                list animes
    config              config - not implemented yet
    download            download - not implemented yet
    watch               watch - not implemented yet

optional arguments:
  -h, --help            show this help message and exit

You can also use the -h or --help options on mal or any of its subcommands to see specific help message.

Contributing

We are looking for contributors. If you know some python and would like to help check out our issues.

Also feel free to open new issues for any bug you found, features you think would be nice to have or questions in general.

Running The Source

There are a few options to run the source in development.

Development Mode

For developing you can run:

sudo python setup.py develop

Or alternatively using make:

sudo make develop

In development mode an EGG file is linked with the actual source so that way you can modify it and test without reinstalling.

For more information see Development Mode.

Running With Python

Inside the project run:

PYTHONPATH=. python mal/cli.py

PYTHONPATH variable is set to look inside the project so it will look for the local module mal before looking for installed mal.

License

GPLv3

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mal-0.2.2.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mal-0.2.2-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file mal-0.2.2.tar.gz.

File metadata

  • Download URL: mal-0.2.2.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mal-0.2.2.tar.gz
Algorithm Hash digest
SHA256 0199f93f6da9f363c4c6dbfb9c8e0164040ffba42d715218d923f05c57fbbbcb
MD5 7dd60bb0cad4a48f18d454207107f399
BLAKE2b-256 fc68d6e4c42ec4718dcb5e1fd1c25be6a25e5b00cd3c1f0cb47a23887320e9de

See more details on using hashes here.

File details

Details for the file mal-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: mal-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mal-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 662344eaf25c8a54fc69f6bb4c9f94d5771627570f644063da98d00a1fb171dc
MD5 5a0edc0e680e8c19066413b95887a242
BLAKE2b-256 559a7b34b7a6051c8951d1c24632d26193169dd274867bc10f2cdb0559a54f22

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page