Metadata-Version: 2.1
Name: ChimuApi
Version: 0.1.5
Summary: API Wrapper around Chimu.moe API for both synchronous and asynchronous purposes.
Home-page: https://github.com/lenforiee/ChimuApi
Author: Lenforiee
Author-email: lenforiee@misumi.me
License: UNKNOWN
Description: # 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
        
        ```py
        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
        
        ```py
        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.
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
