Skip to main content

Upload a signed image to cloudinary effectively

Project description

About

This library allows you to upload a signed image to cloudinary effectively.


Installation

Install the library to begin using it.

pip install cloudinary-upload

Configure .env with your cloudinary credentials.

CLOUDINARY_NAME=xxxxxxx
CLOUDINARY_API_KEY=xxxxxxxxxxx
CLOUDINARY_API_SECRET=xxxxxxxxx-xxxxxxx

In the file (.py) that you wish to use it, import the library.

from cloudinary_upload import upload_image_cloudinary

upload_true = upload_image_cloudinary(image_file="/path/to/image.png")

The upload_true variable is going to give you a bunch of meaningful information from cloudinary, you can get the image_url by printing:

print("Image URL: ", upload_true['url'])

Contribute

All contributions are welcome:

  • Read the issues, Fork the project and do a Pull Request.
  • Request a new topic creating a New issue with the enhancement tag.
  • Find any kind of errors in the README and create a New issue with the details or fork the project and do a Pull Request.
  • Suggest a better or more pythonic way for existing examples.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cloudinary-upload-0.0.4.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

cloudinary_upload-0.0.4-py3-none-any.whl (5.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page