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 pytestto 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
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 python_lomography-1.0.2.tar.gz.
File metadata
- Download URL: python_lomography-1.0.2.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.11 Linux/6.5.0-1022-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efe3592f9169a0faa910e2228a7d52ada33b591b3e31dc23644f497f6d58d79d
|
|
| MD5 |
4e6e99cd368ce07de6bc55f242aa9b54
|
|
| BLAKE2b-256 |
02aad96fcec09dbede109b5e817c356ed39363ff4878af52414f76fbc683fb44
|
File details
Details for the file python_lomography-1.0.2-py3-none-any.whl.
File metadata
- Download URL: python_lomography-1.0.2-py3-none-any.whl
- Upload date:
- Size: 21.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.11 Linux/6.5.0-1022-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5e517c3fa31e779e804ee15961753076d3dc6c4035e61019873135b3e1a794f
|
|
| MD5 |
cbc364561a4e582eb48ff8da37d1f52c
|
|
| BLAKE2b-256 |
077b6dcef926af1e1e22e4840647a7eb1de1d61f2ba47e930740447f8e8ada17
|