Skip to main content

ChimuAPI Python Wrapper

API Wrapper around Chimu.moe API for both synchronous and asynchronous purposes.

What is it for?

I made this wrapper for Python devs so they can easly access Chimu.moe API both async and sync.

Allowing more people to use it!

Synchronous Example

import ChimuApi as chimu

def main():

    api = chimu.ChimuAPI()

    sets = api.get_set(1)

    for mapa in sets.ChildrenBeatmaps:

        print(f"{mapa.BeatmapId} [{mapa.DiffName}]")

    print(sets.Creator)

def download():

    api = chimu.ChimuAPI()

    file_bytes = api.download_file(1, key_here, state_here)

    with open("map.osz", "wb") as filea:
        filea.write(file_bytes)

main()
download()

Asynchronous Example

import ChimuApi as chimu
import asyncio

async def main():

    api = chimu.AsyncChimuAPI()

    sets = await api.get_set(1)

    for mapa in sets.ChildrenBeatmaps:

        print(f"{mapa.BeatmapId} [{mapa.DiffName}]")

    print(sets.Creator)

async def download():

    api = chimu.AsyncChimuAPI()

    file_bytes = await api.download_file(1, key_here, state_here)

    with open("map.osz", "wb") as filea:
        filea.write(file_bytes)

asyncio.run(main())
asyncio.run(download())

Contribution

If you feel like you want to help/fix/change something in this package, just create Issue or Pull Request on GitHub and I'll review it.

Metadata

Release files for ChimuApi 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ChimuApi 0.1.5
File Size Uploaded Provenance Actions
ChimuApi-0.1.5.tar.gz 3.8 kB Without provenance Details for ChimuApi-0.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ChimuApi 0.1.5
File Interpreter ABI Platform Actions
ChimuApi-0.1.5-py3-none-any.whl Python 3 none any Details for ChimuApi-0.1.5-py3-none-any.whl

Total release size: 8.9 kB

Release files / ChimuApi-0.1.5.tar.gz

Download URL ChimuApi-0.1.5.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
04020cc83f73123cbd72fcf5d6c102112904c79b659a022285f2add08940e5de
BLAKE2b-256 checksum
How to use checksums
7e837b9a3de5dd5788a014b5102d24e87aeecb2097f037194c4597eed4fa1a1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.6

Release files / ChimuApi-0.1.5-py3-none-any.whl

Download URL ChimuApi-0.1.5-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8403c0eea552d438dd33ea57bf56b808336635513e6e94255a8e8344edb70baf
BLAKE2b-256 checksum
How to use checksums
5ec7951ea4c0737f55d082630c0022571886bb2a987d2dd02d2df239e4274611
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.6

Security for ChimuApi 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page