A Python SDK for fetching images from the lomography.com API.
Project description
python-lomography
A Python SDK for fetching images from the lomography.com API.
Install
pip install python-lomography
Example Usage
For most use cases:
lomo = Lomography(api_key="api_key_here")
photos = lomo.fetch_popular_photos(amt=15)
lomo.close()
or for asynchronous use cases:
async_lomo = AsyncLomography(api_key="api_key_here")
photos = await async_lomo.fetch_popular_photos(amt=15)
await async_lomo.close()
Documentation
All documentation for python-lomography can be found here.
Development Requirements
- Python ^3.10 (download)
poetry
(via your preferred method)make
(hopefully already on your device)
Setup
- Ensure requirements are installed correctly.
- Navigate to project folder.
- From root folder, call
make
. This should set up all git hooks and install the necessary packages viapoetry
. - Call
poetry run pytest
to ensure that everything is set up correctly. All tests should pass.
License
Copyright © 2024 Mike Scornavacca.
This project is MIT licensed.
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
python_lomography-1.0.1.tar.gz
(13.6 kB
view hashes)
Built Distribution
Close
Hashes for python_lomography-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 003152ab08055ff67af88aa95ce15a08b6f444d9ceef9295323b0318de279be1 |
|
MD5 | 246d22df673ada9c9125b504131ea2ce |
|
BLAKE2b-256 | 8ed49ab6694228ddbfcaa6f43a9aa1fb57887b89980e0c0fa2ae3385cbf2d94a |