Skip to main content

A client for the Codebase API.

Project description

PyCodebase is a client for the Codebase API. It works in Python 2.7. The source code and project lives on GitHub.

Installation

You can install from PyPI:

$ pip install pycodebase

Usage

First you need a client to connect to Codebase. You can pass a 2-tuple of your API username and key:

import codebase

# Your API username and key, shown on Codebase's profile page.
secrets = ('example/alice', 'abc123def456')
client = codebase.Client(secrets)

An alternative is to create a file with the username and key:

$ cat ~/.codebase.ini
[api]

username = example/alice
key = abc123def456

You can then create the client, telling it the path of your secrets file.

import codebase

client = codebase.Client.with_secrets('~/.codebase.ini')

From there you can get projects in your account and all the ticket and status information related to those projects.

Documentation

More documentation is on Read The Docs.

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

PyCodebase-0.7.tar.gz (11.0 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