Skip to main content
Coverage Status Build Status Documentation Status Latest Version Downloads Python versions Package status

The reason for this project is to provide a wrapper to easily perform operations against Go. I’ve been writing a lot of shell scripts to interact with Go using curl, but when going a little further than the most basic interactions I’ve always started to feel the need for doing all of this in a proper programming language. I.e. something that is beyond bash.

I’ve chosen to use Python and version 2.6.6 and newer as my target platform, with no external dependencies, to make it really straightforward to install/run on RHEL6 and other similar stable distributions.

This library was created to support a Go CLI, to handle some common scenarios you as an admin or advanced user would do.

API documentation available on read the docs.

Usage

The main interaction point for this library is the Server class, it contains helpers to instantiate the different API endpoints.

An example interaction:

>>> from gocd import Server
>>> server = Server('http://localhost:8153', user='ba', password='secret')
>>> pipeline = server.pipeline('Example-Pipeline')
>>> response = pipeline.history()
>>> bool(response)
True
>>> response.status_code
200
>>> response.content_type
'application/json'
>>> response.is_ok
True
>>> response.body
{"pagination":{"offset":0,"total":1,"page_size":10},"pipelines":[...]"}

Style

This project aims to follow the Google Python Style Guide and particularly the section on commenting the code.

Versioning

Semantic versioning is used.

License

MIT License.

Release files for gocd 0.15.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gocd 0.15.1
File Size Uploaded
gocd-0.15.1.tar.gz 15.2 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for gocd 0.15.1
File Interpreter ABI Platform
gocd-0.15.1-py3-none-any.whl Python 3 none any Details
gocd-0.15.1-py2-none-any.whl Python 2 none any Details

Total release size: 58.7 kB

Release files / gocd-0.15.1.tar.gz

Download URL gocd-0.15.1.tar.gz
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f9b19a5430c10be898503a07ad471acf957f4bfd2c7a4d51892279367b2bc322
BLAKE2b-256 checksum
How to use checksums
60a07c6e36c92ae363752b77c8b371307c6daea756b622747bcaad4c119ccd25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gocd-0.15.1-py3-none-any.whl

Download URL gocd-0.15.1-py3-none-any.whl
Size 21.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ec8f1e40c39e96980261e4335acabb5ce16ee1e911c6d6e2a5133cdf8fec53d4
BLAKE2b-256 checksum
How to use checksums
256aa9a79ec0dae23179ca8f205c7060d6cecb7d6d575036a20885feb31bf54d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gocd-0.15.1-py2-none-any.whl

Download URL gocd-0.15.1-py2-none-any.whl
Size 21.8 kB
Tags Python 2
SHA-256 checksum
How to use checksums
b92ff86e8e1326bf47cca03ae64ab9a32f2ad98b86038a87c30041b7ed4a8d4e
BLAKE2b-256 checksum
How to use checksums
a34fa85bc4c0d9cc68ec718a2509ce9f6948572284ba06a1ecf93b9d731483c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.15.1 This release

3 release files

0.15.0

3 release files

0.14.0

3 release files

0.13.0

3 release files

0.11.1

3 release files

0.10.0

3 release files

0.9.0

3 release files

0.8.0

2 release files

0.7.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page