Skip to main content

Python wrapper for the CGHMC API (Frinkiac, Morbotron Master Of All Science and more.

Project description

Internet King Popup Banner by BLUEamnesiac

CompuGlobal

https://img.shields.io/pypi/v/compuglobal.svg https://img.shields.io/pypi/pyversions/compuglobal.svg https://app.readthedocs.org/projects/compuglobal/badge/?version=latest&style=flat https://img.shields.io/github/actions/workflow/status/MitchellAW/CompuGlobal/test.yml?label=tests https://img.shields.io/github/license/mitchellaw/compuglobal

Python wrapper for all endpoints of the following undocumented APIs:

Frinkiac, Morbotron, Master Of All Science, and Capital Beat Us.

Note: I’ll be keeping the wrapper up to date as more APIs are released.

CompuGlobal allows for both random and searchable screencaps, images and gifs embedded with default or custom captions for the following shows:

The Simpsons, Futurama, Rick and Morty, and West Wing.

Make sure to acquaint yourself with the API using the documentation.

Installation

To install the library, you can just run the following command:

python3 -m pip install -U compuglobal

Basic Usage

import asyncio

import compuglobal


async def main():
    simpsons = compuglobal.aio.Frinkiac()

    # Random
    screencap = await simpsons.get_random_screencap()

    # Search
    screencap = await simpsons.search_for_screencap('nothing at all')

    # Images/Gifs
    image = await simpsons.get_comic_panel_url(screencap)
    gif = await simpsons.get_gif_url(screencap)

if __name__ == '__main__':
    asyncio.run(main())

For documented examples, check here.

Preview

https://raw.githubusercontent.com/MitchellAW/MitchellAW.github.io/refs/heads/master/images/nothing-at-all.gif

Credits

Creators and contributors of Frinkiac, Morbotron, Master of All Science, and Capital Beat Us:

BLUEamnesiac for the Internet King Popup Banner

Named CompuGlobal as shorthand for CompuGlobalHyperMegaCap, as the family of websites are named.

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

compuglobal-0.4.0.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

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

compuglobal-0.4.0-py3-none-any.whl (26.2 kB view details)

Uploaded Python 3

File details

Details for the file compuglobal-0.4.0.tar.gz.

File metadata

  • Download URL: compuglobal-0.4.0.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for compuglobal-0.4.0.tar.gz
Algorithm Hash digest
SHA256 889f27c70bddc269ec10f3860eae4d60de4e41fe7d5e97b74e6ce711769a376f
MD5 16027901ab116a5d1268d2fa6e91258a
BLAKE2b-256 def6c7d2e91c3264a3b143254d10ca34a98c92a97240898d37c5143b305e099b

See more details on using hashes here.

File details

Details for the file compuglobal-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: compuglobal-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 26.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for compuglobal-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d98f32c9e03f1dd8ad2ae2e379a64826d870f19f8179f84b137df599088befe6
MD5 57456b45ca7bc63cfd0d58ca3d216c48
BLAKE2b-256 cbe9f6e9d8d3d2a947d74cb3c09078bde6c1d167a47e63d5fa8961e420d6e628

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