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 Acco with Images:
@dataclass
class Acco:
@dataclass
class Image:
url: str # original url
bucket_url: str = None # bucket url
width: int = None # pixel with
height: int = None # pixel height
bytes_size: int = None # bytes size of image
labels: list = [] # labels of the image
descriptions: list = [] # descriptions of the image
giataid: str
source: str # provider of the data
images: list
timestamp: str = None # timestamp updated
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-content 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vaknl-content-0.0.2.tar.gz | 2.8 kB | Without provenance | Details for vaknl-content-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vaknl_content-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for vaknl_content-0.0.2-py3-none-any.whl |
Total release size: 7.5 kB
Release files / vaknl-content-0.0.2.tar.gz
| Download URL | vaknl-content-0.0.2.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4ca3bf7847d547c7c985d9a739265efebbcf93d1553d9f2191a589d89068333e
|
|
BLAKE2b-256 checksum How to use checksums |
24a7f34151e161f0137e998f3d9244b91d9caffe47b6641d44b45b44ed179c17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0.post20200627 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.4
|
Release files / vaknl_content-0.0.2-py3-none-any.whl
| Download URL | vaknl_content-0.0.2-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b1230e088d383336c768320fb1f071f990d457b56da2a2f8c92a1da1b1bb8f62
|
|
BLAKE2b-256 checksum How to use checksums |
156fb21c2eb0d4b1bd2ec57e6ff65c38e4ac7d79c1ff74e9e2796612bcacca0a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0.post20200627 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.4
|
Security for vaknl-content 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.