Skip to main content

A manga API with a pluggable site architecture.

Project description

# mangopi

[![Build Status](]( [![Coverage Status](](

mangopi aims to be an easy-to-use, easy-to-extend manga api. Adding a new site should be as simple as filling in a few regexes - everything else is taken care of.

## Installation

Run pip install mangopi, or clone the repo and run python install.

## Layout

helper contains some shared, non-application-specific code. (Or it will, after the Util class is removed.)

site contains the library logic to retrieve data from the websites. The hierarchy:

  • Noez - MangaFox - MangaHere

  • Aftv - MangaPanda - MangaReader

Noez and Aftv appear to be the parent companies of the sites that exist under them.

## Usage

Q: What’s the image url for the first page of the first chapter of ‘Toriko’?

>>> from import MangaFox
>>> MangaFox.series('toriko').chapters[0].pages[0].image.url

Alternatively, use MetaSite, which allows aggregation of multiple sites (there are some performance issues related to error correction that are being worked out however):

>>> from mangopi.metasite import MetaSite
>>> search = MetaSite([MangaFox, MangaHere, MangaPanda, MangaReader])
>>> from import MangaFox
>>> from import MangaHere
>>> from import MangaPanda
>>> from import MangaReader
>>> search.series('death note').chapters['22'].pages[0].image.url

Take a look at the mangopi.tests module for further examples.

## Version Support

Support is maintained on Python 2.7, 3.3, and 3.4.

## Testing

Run python test or nosetests.

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

mangopi- (6.3 kB view hashes)

Uploaded Source

Supported by

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