Skip to main content

A wrapper for the Consumet API

Project description

consumetpy

A Python wrapper for the Consumet API that provides easy access to the different categories and providers of the API.

Installation

To install consumetpy, run the following command:

pip install consumetpy

Usage

The package includes different classes for the different categories and providers of the API. To use the package, you'll need to create an instance of the ConsumetAPI class and then access the different categories and providers through its attributes.

from consumet.py import ConsumetAPI

api = ConsumetAPI()

# Access the anime category
anime = api.anime

# Access the animepahe provider
animepahe = anime.animepahe

# Search for an anime by title
results = animepahe.search('spy x family')

# Get information about an anime
info = animepahe.info('1')

# Watch an anime episode
watch = animepahe.watch('12321dqw')

You can access the providers, enime, gogoanime, zoro in similar way by using anime.enime, anime.gogoanime and anime.zoro respectively.

Contributions

Contributions are welcome! If you'd like to contribute to this package, please fork the repository and make changes as you'd like. Once you've made your changes, open a pull request here and I'll review your changes.

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

consumetpy-0.1.2.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

consumetpy-0.1.2-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

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