Skip to main content

Simple Python Wrapper for common GUS Objects

Project description


Gus Python library that allows for simple SOQL queries on GUS, as well as Authentication to GUS.

Current Version: 0.14


To install, simply use your virtualenv:

pip install guspy

Repackaging Instructions

To repackage, change the version number of the file

python3 bdist_wheel
python3 -m twine upload dist/*




All queries on the objects can be summarised to accept parameters in two places (except special conditions such as GRE specific objects) The first is the specifications of the object itself (e.g. Case Number, etc) whereas the second is the fields required to be shown.

Cases Object

Case class can be initialised with the case number or list of case numbers. In which the single case_number would be using from_single method, and the list of case_numbers will be using the from_multiple method.

from guspy import Case
query = Case("8190582").from_single("Id")
query = Case(["8190582","8190583"]).from_multiple("Id")

Special: GRE Cases can be simply queried.

gre_query = Case().gre("Id, CaseNumber")

CaseComments Object

CaseComment object can be initialised with either case_number or comment_id, in which similar to the Case object, would be using from_single or from_multiple functions to get a single case/comment or multiple case/comment respectively

from guspy import CaseComment
query = CaseComment(case_number="").from_single("Id")
query = CaseComment(case_number=["8190582","8190583"]).from_multiple("Id")

Special: GRE Cases can be simply queried

query = CaseComment().gre("Id, CommentBody")

ScrumMember Object

ScrumMember object can be initialised with team_name, in which you can use from_single function to get attributes of the Scrum Members

from guspy import ScrumMember
query = ScrumMember(team_name="").from_single("Id")

Special: GRE Cases can be simply queried

query = ScrumMember().gre("Id, Name")

User Object

User object can be initialised with user_id, in which you can use from_single or from_multiple functions to get attributes of the Users

from guspy import User
query = User(user_id="").from_single("Id")
query = User(user_id=["8190582","8190583"]).from_multiple("Id")

Special: GRE Cases can be simply queried

query = User().gre("Id, Division")

ReleaseEvent Object

To be updated

Task Object

To be updated

InstanceDatacenter Object

To be updated

Logging In

from guspy.access import Gus
gus = Gus(username=username,

Upon logging in, use the commands above to get the query string for the object required (CaseComments, ReleaseEvents, etc.) before executing the following command:


Where raw will return the raw data, and parse will return in a DataFrame format.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for guspy, version 0.14
Filename, size File type Python version Upload date Hashes
Filename, size guspy-0.14-py3-none-any.whl (8.3 kB) File type Wheel Python version py3 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page