Skip to main content pypi package

Project description


Package for working with Images. Contains the default Image dataclass and methods to get and upload images to gcp.


These modules dependant on two things. Firstly the vaknl-gcp package for working with GCP. Secondly the environment variable GOOGLE_CLOUD_PROJECT a.k.a. gcp project id.


class Image:

class Image:
    url: str  
    bucket_url: str  
    width: int  
    height: int  
    bytes_size: int  

get_image(image_url, auth=None):

Gets an images from the internet with a retry fall back of 3 times.

returns width, heigth, size, data

upload_image_to_storage(id, bucket_name, image_url):

Gets images from the internet and uploads it to storage.

returns width, heigth, byte_size, blob_url

Project details

Download files

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

Files for vaknl-image, version 1.1.1
Filename, size File type Python version Upload date Hashes
Filename, size vaknl_image-1.1.1-py3-none-any.whl (3.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size vaknl-image-1.1.1.tar.gz (2.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page