Lightweight image library
Project description
Usage
file to ndarray
>>> from imageworker import file_to_array
>>> data = file_to_array("test.jpg")
url to ndarray
>>> from imageworker import url_to_array
>>> data = url_to_array("https://n.sinaimg.cn/spider2021326/106/w1024h682/20210326/5927-kmvwsvy1040641.jpg")
upload ndarray to qiniu cdn
>>> key = QINIU_KEY
>>> secret = QINIU_SECRET
>>> domain = HOST
>>> bucket = QINIU_BUCKET
>>> url = put_qiniu(data,key,secret,domain,bucket)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
imageworker-0.1.12.tar.gz
(2.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file imageworker-0.1.12.tar.gz.
File metadata
- Download URL: imageworker-0.1.12.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.5 Linux/5.8.0-43-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa6030d2c8052cb74390a448627ad643e898d833ec5cd71ab4ca20bbd14c370c
|
|
| MD5 |
57f88b030f7da55f7b5dc059c5ecd863
|
|
| BLAKE2b-256 |
51789e32c3f9b469f915ec66bb9662c0668a07a11df04bdc7eb63e6ef71abeab
|
File details
Details for the file imageworker-0.1.12-py3-none-any.whl.
File metadata
- Download URL: imageworker-0.1.12-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.5 Linux/5.8.0-43-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fec41f7b39a95818bc7c591d308909a8994d2666a07caedf6656e77e8abae5ee
|
|
| MD5 |
9af744e57a865fd74080fa2f9363071f
|
|
| BLAKE2b-256 |
534d358658f9ff95d3925ec9cced75e191a4454909e8635cb795b282dcd1626f
|