PhotoLink API wrapper
Project description
PhotoLink
Python PhotoLink API wrapper
$ python3 -m pip install photolink
# with asyncio support
$ python3 -m pip install 'photolink[aio]'
Example
from photolink import PhotoLink
photolink = PhotoLink(client_id='lSeA0sSUgd')
upload = photolink.upload_image(file_path='doppi.png')
uploadFromUrl = photolink.upload_image_url(url="https://example.com/doppi.png")
print(upload)
print(uploadFromUrl)
Async Example
import asyncio
from photolink.aio import PhotoLink
async def main():
photolink = PhotoLink(client_id='lSeA0sSUgd')
print(await photolink.upload_image(file_path='doppi.png'))
print(await photolink.upload_image_url(url='https://example.com/doppi.png'))
asyncio.run(main())
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
photolink-1.0.3.tar.gz
(4.7 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 photolink-1.0.3.tar.gz.
File metadata
- Download URL: photolink-1.0.3.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8c9df3c2a43d14094f15f92b46b16223f20ed0fa7e9c8052760a16fc0b73899
|
|
| MD5 |
6f226c4a63aabd47c5a7a01a88d2e19f
|
|
| BLAKE2b-256 |
93822ab5a106c8079a3f64bcb0a491e7960bec3b9da9fa11b6b3dcb307cc5ffb
|
File details
Details for the file photolink-1.0.3-py3-none-any.whl.
File metadata
- Download URL: photolink-1.0.3-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5c10b7dd55889d9f469db02e95c5458a7fb0735149a1e13a4ebbe2b135238cb
|
|
| MD5 |
462513200d887fce3f77f7909fe0a5ac
|
|
| BLAKE2b-256 |
b9ff548f841cb167d6b979a7c2d0b36d44d0a1e52017c61496b53ecd9bbe2e92
|