Ownphotos client
Project description
Lets you interact with an Ownphotos backend server.
Installation:
pip3 install ownphotos-client
Example:
#!/usr/bin/python3 from ownphotos_client import OwnphotosAPI if __name__ == "__main__": username = "admin" password = "admin" url= 'https://ownphotos.gnethomelinux.com/' a = OwnphotosAPI(url, username, password) print(a.avilable()) for i in a.get_user_photos()["results"]: for cover in i["cover_photos"]: image_data = a.get_thumbnail(cover["image_hash"]) with open("/tmp/" + cover["image_hash"] + ".jpg",'wb') as w: w.write(image_data)
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
ownphotos_client-0.1.1.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for ownphotos_client-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d018900f02149ec962ced1f9ff634184343d7691539d22eebd4e96a8ef8bb5dc |
|
MD5 | 8fbb31ee6a447ec1fc8c8a333cd3e89b |
|
BLAKE2b-256 | 11bcbc8a41fc29f2c9544e0c55ad5e42a440a8c9138d775de4f8ba141a3ea4f0 |