uploadthing icon indicating copy to clipboard operation
uploadthing copied to clipboard

feat: Python Support

Open omarshehab221 opened this issue 1 year ago โ€ข 6 comments

Describe the feature you'd like to request

I think adding support for other languages, like: Python, Go, etc. to uploadthing will make it a truly universal solution for developers, specially if their apps use multiple languages

Describe the solution you'd like to see

I guess having a similar API endpoint would suffice. The Upload Button and UploadZone can be created with PyQt and Tkinter (and similar ui libraries/frameworks for other languages) which I think is gonna cover the needs of most python users.

Additional information

I'm down to helping to filing a PR to implement that. I have a good experience in python (don't mind my non-existent portfolio) and Flask, but I don't have that much experience in security other than best practices. So, I'd be expecting a security audit/review.

๐Ÿ‘จโ€๐Ÿ‘งโ€๐Ÿ‘ฆ Contributing

  • [X] ๐Ÿ™‹โ€โ™‚๏ธ Yes, I'd be down to file a PR implementing this feature!

omarshehab221 avatar Dec 05 '24 17:12 omarshehab221

We provide documentation on implementing these adapter types in our docs with partial examples in Python, PHP and Go for key parts of the upload process. Additionally, we offer an OpenAPI spec for developing these adapters.

While our current team's capacity and priorities do not include expanding official language support within the UploadThing repository, we enthusiastically welcome community-developed packages. We are committed to supporting the broader developer ecosystem by potentially featuring these community contributions in our documentation.

markflorkowski avatar Dec 05 '24 19:12 markflorkowski

@markflorkowski I did find this on PyPI. I guess you should merge that with the official uploadthing api

omarshehab221 avatar Dec 06 '24 07:12 omarshehab221

We are not primarily python developers, so at this time we do not want to take on the burden of officially supporting Python. That package is linked in our documentation for reference.

markflorkowski avatar Dec 06 '24 17:12 markflorkowski

i made that package a while back as a PoC - it's not an official SDK and it's not currently up to date with the latest v7 changes

if you wanna help out updating/maintaining i'd be more than happy to jump on a call and talk about it

juliusmarminge avatar Dec 06 '24 22:12 juliusmarminge

@juliusmarminge this is cool, will integrate it into my latest project and provide feedback.

TimPietrusky avatar Dec 11 '24 12:12 TimPietrusky

Was browsing the issues looking for something totally not related to thsi one and I wish I had stumbled upon earlier but needed something similar a few weeks ago and quickly wrapped up something: https://github.com/farmisen/upyloadthing - it's not as featured as @juliusmarminge POC and do not expose FastAPI route handlers but cover most of v7 endpoints and only miss a cpl I didn't need for my use case that I will add as soon as I have a minute.

farmisen avatar Mar 30 '25 03:03 farmisen