---
layout: post
title:  "MAL: MyAnimeList Command Line Interface"
project: true
date:   2016-05-16
excerpt: "A Command Line Interface to Use MAL"
tag:
- programming
- anime
- myanimelist
- mal
comments: true
---

[![PyPi version](https://img.shields.io/pypi/v/mal.svg)](https://pypi.python.org/pypi/mal/)
![PyPi downloads](https://img.shields.io/pypi/dm/mal.svg)

## Description

[`mal`](https://github.com/ryukinix/mal) is a command-line client for [MyAnimeList.net](http://myanimelist.net/). It uses their official [API](http://myanimelist.net/modules.php?go=api), so it should remain functional indefinitely (unlike screen-scraping alternatives). But is in alpha development yet, so new ideas is welcome! This version is a inspired tool from the slow-maintained [mal](https://github.com/pushrax/mal).

Actually I get partial of your code to start (most for now is called as api.py inside the my MAL).

The implementation 


## Reason

Because CLI is life and open the browser is boring. I'm implemented the most code in half-day, but the worse part was doing Packaging & Distrubution for Python. `setuptools + pypi == hell`. But now I'm okay with this and appears works very fine.

## My animes 

**The shame board**
![shame-board](http://i.imgur.com/WkUa5Go.png)

WARNING: THIS SHIT SAVE YOUR CREDENTIALS IN PLAIN TEXT! :P

## Features:

* Search in your anime list
* Search current anime in the sublist (e.g: watching)
* Increment/Decrement anime watching
* Score in final watching
* Fetch all anime list
* Colorized output (heat scores)
* Easy command line interface (based on regex)

## Examples

```
Ex. for increment +1:

    $ mal +1 'samurai champloo'

Ex. for decrement -1:

    $ mal -1 'samurai champloo'

Ex. filtering for section:

    $ mal watching

Ex. search return all anime whose start with s: 

    $ mal ^s

Ex. fetch all list: 

    $ mal list
    $ mal all
    $ mal .+
```


## Give a Try:

`pip install mal` # stable

or 

`pip install git+https://github.com/ryukinix/mal` # new features



Add post about the MAL: MyAnimeList CLI
Add post about the MAL: MyAnimeList CLI
