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)
Release files for ownphotos-client 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ownphotos_client-0.1.1.tar.gz | 2.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ownphotos_client-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.6 kB
Release files / ownphotos_client-0.1.1.tar.gz
| Download URL | ownphotos_client-0.1.1.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9a3dcd61865f37dfe3c35f209725f2f60e9e60e4752ad4745df2bda454af6d42
|
|
BLAKE2b-256 checksum How to use checksums |
9a246739ec0a21437a5bc1e2992f7000562eae70d6542fbd576a21738ea5c844
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / ownphotos_client-0.1.1-py3-none-any.whl
| Download URL | ownphotos_client-0.1.1-py3-none-any.whl |
|---|---|
| Size | 15.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d018900f02149ec962ced1f9ff634184343d7691539d22eebd4e96a8ef8bb5dc
|
|
BLAKE2b-256 checksum How to use checksums |
11bcbc8a41fc29f2c9544e0c55ad5e42a440a8c9138d775de4f8ba141a3ea4f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|