A library and commandline tool for managing Pix-Star digital photo frames
Project description
A Python library and commandline tool for managing Pix-Star digital photo frames.
Installation
You can install from PyPI using pip as follows
pip install pyxstar
Usage
Python library
The pyxstar.api module is the basis for all API interactions with the Pix-Star service. The API class should be used to invoke methods on the service, which accept and return Album and Photo classes.
For example
from pyxstar.api import API
api = API()
api.login('myusername', 'mypassword')
for a in api.albums():
print(f'Album: {a.name}')
for p in api.album_photos(a):
print(f' Photo: {p.name}')
Commandline
This package provides a pyxstar commandline tool which offers a variety of subcommands to interact with your digital photo frame.
The following are some examples of how to use this:
# Show help
$ pyxstar help
[...]
# List album names
$ pyxstar -u myusername -p mypassword ls
My First Album
My Second Album
# List photos in My First Album
$ pyxstar -u myusername -p mypassword ls 'My First Album'
315371094 _dsc1254_59.jpg
315371095 _dsc1254_60.jpg
# Upload a photo to My First Album and check that it exists
$ pyxstar -u myusername -p mypassword upload 'My First Album' /path/to/foo.jpg
$ pyxstar -u myusername -p mypassword ls 'My First Album'
315371094 _dsc1254_59.jpg
315371095 _dsc1254_60.jpg
315371099 foo.jpg
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
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 pyxstar-0.2.4.tar.gz.
File metadata
- Download URL: pyxstar-0.2.4.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.5 Darwin/24.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
679373b14c5bae3f5103679da588acb1ae8fa80186c3fd2bb82ab78278b3964f
|
|
| MD5 |
d10eb769079dd97f0090ecc49952c1a9
|
|
| BLAKE2b-256 |
c19a149e69e9558358ddd2d767d547eda5479358b574d10eaf4be2f191f467ea
|
File details
Details for the file pyxstar-0.2.4-py3-none-any.whl.
File metadata
- Download URL: pyxstar-0.2.4-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.5 Darwin/24.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
190594258fd7abd1b6ca88bcb0c7ce2cebb1e8672f79da347492eff21c2b4db0
|
|
| MD5 |
f93b7230a4bdbf1a740a5684d9e10526
|
|
| BLAKE2b-256 |
ab5631a23f021f993523f8f978656cae65e5d9ae98b78cbb4608fccf5b3cbe38
|