Skip to main content

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


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 details)

Uploaded Source

Built Distribution

ownphotos_client-0.1.1-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file ownphotos_client-0.1.1.tar.gz.

File metadata

  • Download URL: ownphotos_client-0.1.1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7rc1

File hashes

Hashes for ownphotos_client-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9a3dcd61865f37dfe3c35f209725f2f60e9e60e4752ad4745df2bda454af6d42
MD5 4168bc2a1ccec44922ecc62d151d7358
BLAKE2b-256 9a246739ec0a21437a5bc1e2992f7000562eae70d6542fbd576a21738ea5c844

See more details on using hashes here.

File details

Details for the file ownphotos_client-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: ownphotos_client-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7rc1

File hashes

Hashes for ownphotos_client-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d018900f02149ec962ced1f9ff634184343d7691539d22eebd4e96a8ef8bb5dc
MD5 8fbb31ee6a447ec1fc8c8a333cd3e89b
BLAKE2b-256 11bcbc8a41fc29f2c9544e0c55ad5e42a440a8c9138d775de4f8ba141a3ea4f0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page