PyWhatKit icon indicating copy to clipboard operation
PyWhatKit copied to clipboard

[Feature Request] Compatibility with Cloudflare R2

Open WillMontgomery opened this issue 2 years ago • 4 comments

Cloudflare R2 is a great object storage platform and utilizes the same S3 API. Would be great to see this functionality added!

WillMontgomery avatar Dec 03 '22 03:12 WillMontgomery

What's hindering you from using ist right now if the cloudflare api is compatible with S3 api?

qoomon avatar Dec 03 '22 14:12 qoomon

Anyway do you have a url to a public accessible cloudflare storage so I could try it out and fix occurring problems.

qoomon avatar Dec 03 '22 14:12 qoomon

Hey there! Thanks for your fast response. The format used to access Cloudflare R2 buckets is using an access key ID and a secret access key, in addition to entering the API endpoint for that particular bucket. It appears this repo only supports unauthenticated viewing of publicly accessible buckets. To answer your question about a test bucket, R2 buckets are free up to 10GB here: https://www.cloudflare.com/products/r2/

WillMontgomery avatar Dec 04 '22 17:12 WillMontgomery

I don't have the time to implement authentication, sorry. However every PR is welcome

qoomon avatar Dec 06 '22 14:12 qoomon