Skip to content

A python package to interact with ownphotos api backend

License

Notifications You must be signed in to change notification settings

guysoft/ownphotos-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ownphotos Client

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)

About

A python package to interact with ownphotos api backend

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages