Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

photolink-1.0.3-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page