Skip to main content

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

pyxstar-0.2.3.tar.gz (6.2 kB view hashes)

Uploaded Source

Built Distribution

pyxstar-0.2.3-py3-none-any.whl (6.9 kB view hashes)

Uploaded Python 3

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