Python library for the SmugMug API
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
smugpy
tests
.coveragerc
.gitignore
.travis.yml
CHANGELOG.md
LICENSE
MANIFEST.in
README.md
requirements-test.txt
setup.py
tox.ini

README.md

Smugpy Build Status Coverage Status

Smugpy is an Python 2.x/3.x library for the SmugMug API created by Chris Hoffman. Smugpy supports all versions of the API and Oauth 1.0 for API versions 1.2.2+. This library also works in Google App Engine. For more information on the SmugMug API, see SmugMug API Documentation.

Installation

The latest stable version of smugpy can always be installed via pip:

pip install -U smugpy

Or, you can install the development version directly from GitHub:

pip install -U https://github.com/chrishoffman/smugpy/tarball/master

Or, download the package and install manually:

python setup.py install

Usage

Simple request (1.3.0+):

from smugpy import SmugMug

API_KEY = "XXXXXXXXXXXXXXXXXXXXXXXXX"

smugmug = SmugMug(api_key=API_KEY, api_version="1.3.0", app_name="TestApp")
albums = smugmug.albums_get(NickName="williams")

for album in albums["Albums"]:
    print "%s, %s" % (album["id"], album["Title"])

For more examples, see the examples directory.

Helping Out

If you notice any problems, please report them to the GitHub issue tracker at https://github.com/chrishoffman/smugpy/issues.

License

Smugpy is released under the MIT license.