A Python SDK for fetching images from the lomography.com API.
pip install python-lomography
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()
All documentation for python-lomography can be found here.
- Python ^3.10 (download)
poetry
(via your preferred method)make
(hopefully already on your device)
- 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.
Copyright © 2024 Mike Scornavacca.
This project is MIT licensed.