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-bridge 0.15.2

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-bridge 0.15.2
File Size Uploaded
gocd-bridge-0.15.2.tar.gz 13.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gocd-bridge 0.15.2
File Interpreter ABI Platform
gocd_bridge-0.15.2-py3-none-any.whl Python 3 none any Details

Total release size: 35.7 kB

Release files / gocd-bridge-0.15.2.tar.gz

Download URL gocd-bridge-0.15.2.tar.gz
Size 13.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2f01d9fcd70032bc42c9507325e10dcf222a1ab61988f56e2fc865b4067ba30a
BLAKE2b-256 checksum
How to use checksums
ce4b07ab07ec6c041c01f6131a67459d3b4bb6cb9a7a120029e2b21592021d63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.2

Release files / gocd_bridge-0.15.2-py3-none-any.whl

Download URL gocd_bridge-0.15.2-py3-none-any.whl
Size 21.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6a6ca318d05b5093646393eb9e1767278b1ecd6a8fe110db4fe7b0187802d90b
BLAKE2b-256 checksum
How to use checksums
6de4cfe30fcdd3db7a0b23397bb280cf51bfce6fa4e0c5564c7f3fab7459263b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.2

Release history Release notifications | RSS feed

This release

0.15.2 This release

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