libthirty 0.3
libthirty provides a python api to access the 30loops platform.
Downloads ↓ | Package Documentation
Latest Version: 0.4.3
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'
Development
- Try to always write a unittest or extend an existing unittest before actually writing code.
- Only release (upload to pypi) code that passes tox.
- Supported python versions are 2.7 and 3.2.
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| libthirty-0.3.tar.gz (md5) | Source | 2011-10-20 | 64KB | 321 | |
- Author: Christo Buschek
- Documentation: libthirty package documentation
- Home Page: https://github.com/30loops/libthirty
- Categories
- Package Index Owner: crito
- DOAP record: libthirty-0.3.xml
