Skip to main content

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


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)

Uploaded Source

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