Vaknl
Package for working with Images. Contains the default Image dataclass and methods to get and upload images to gcp.
Prerequisites
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.
Images
class Image:
@dataclass
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
Metadata
Release files for vaknl-image 1.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| vaknl-image-1.1.4.tar.gz | 2.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vaknl_image-1.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.5 kB
Release files / vaknl-image-1.1.4.tar.gz
| Download URL | vaknl-image-1.1.4.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
77fc9c0ab8cd6a0e6599a5a1f62b80ef8445e648adfadc9995607fd90a3e6f43
|
|
BLAKE2b-256 checksum How to use checksums |
a9dedae17f1867c2434fbad035e7666784e2768653792ecc86b4c63a877731ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6
|
Release files / vaknl_image-1.1.4-py3-none-any.whl
| Download URL | vaknl_image-1.1.4-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
31c6c47c675f1065ff5f2271a1b798f47e4648bce817ff27fe07e741d9ebb8a0
|
|
BLAKE2b-256 checksum How to use checksums |
ed77c70a827482d49c3b87c731d82b64a891f0b86f5be73f69d0c6250c103d5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6
|