libthirty provides a python api to access the 30loops platform.
Project description
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.
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.3.tar.gz
(65.7 kB
view details)
File details
Details for the file libthirty-0.3.tar.gz
.
File metadata
- Download URL: libthirty-0.3.tar.gz
- Upload date:
- Size: 65.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 368ef276cbc52b5ed0fee12d06ef77e7adb70ed1c400bf009a56e5b7f33e0fff |
|
MD5 | 2102ebe6dea1f85b9e2292afe9f079e7 |
|
BLAKE2b-256 | 7304197493da4e5981951220880a65e9aa459765a2ecead63c77356acc0d3fc7 |