Skip to content

ajmcgrail/async_pycatbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

async_pycatbox

A simple Python library for uploading files to catbox.moe, and based off of cazqew's pycatbox, with the only significant change being that it's now supports asynchronous uploading.

API documentation https://catbox.moe/tools.php

Install the current version with PyPI:

pip install async_pycatbox

Or from Github:

https://github.com/challos/async_pycatbox

Example

from async_pycatbox import Uploader
import asyncio

uploader = Uploader()

async def main():
    upload = await uploader.upload('py', open('test.py', 'rb').read())
    print(upload)

asyncio.run(main())
# https://files.catbox.moe/bav6l3.py

Contributing

Bug reports and/or pull requests are welcome. I also copied most of this with minor changes/additions from cazqew's pycatbox (I was unable to make a pull/fork request due to being unable to find his Github page).

License

The module is available as open source under the terms of the Apache License, Version 2.0

About

Async version of pycatbox

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages