Metadata-Version: 2.1
Name: uploadthing.py
Version: 0.1.2
Summary: Python SDK for UploadThing
License: MIT
Author: juliusmarminge
Author-email: julius0216@outlook.com
Requires-Python: >=3.12,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: httpx (>=0.27.0,<0.28.0)
Description-Content-Type: text/markdown

# Installation

```sh
pip install uploadthing.py
```

# Quickstart

```py
import asyncio, os

from uploadthing_py import UTApi


async def main():
    utapi = UTApi(os.environ["UTAPI_KEY"])

    # List the files in your app
    res = await utapi.list_files()
    print("List files:", res)

    # Delete the first file from the list
    key = res[0].key
    res = await utapi.delete_file(key)
    print("Delete file:", res)

    # (TODO) Create a new file
    # res = await utapi.upload_files()


if __name__ == "__main__":
    asyncio.run(main())
```

