libthirty provides a python api to access the 30loops platform.
Project description
libthirty
libthirty is a python module that wraps the 30loops REST api in a easy to use programming API. It’s purpose is to function as a low level library that can be used by other tools to provide a high level view on the 30loops platform.
How to use
>>> from libthirty import Authenticate, Resource >>> from libthirty import env >>> # try to authenticate, defaults to http basic auth >>> env.auth = Authenticate('user', 'password', 'account') >>> if not env.auth.is_authenticated: ... # In case the authentication does not succeed ... raise Exception >>> repository = Resource('repository', 'thirtyloops') >>> repository.state_fields ['location', 'user', 'password'] >>> repository.location 'git.30loops.net'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
libthirty-0.2.tar.gz
(67.2 kB
view hashes)