Skip to main content

A python package used to interface with the BMC Remedy ITSM REST API

Project description

Overview

remedy-py is a Python package used to interface with the BMC Remedy REST API. My search for a development tool to facilitate easy interactions with the Remedy API in a Python program didn't turn up any results that suited my needs, so I decided to create my own and open-source it. Your feedback and contributions are welcome (see Contributing), so that we can make this package useful to as many people as possible.

Installation

You may install remedy-py directly from PyPI - TODO, or via pip: pip install remedy-py.

Usage

Import the Package

Once you have the package installed, import the RemedyClient class for use in your Python program as follows: from remedy_py.RemedyAPIClient import RemedyClient

Instantiate a Client

The RemedyClient constructor has three required arguments: host, user, and password. Optional positional arguments include verify, proxies, and timeout. Once you have instantiated a client, authentication with the Remedy API is automatically handled for you in the constructor based on the username and password provided. Any subsequent calls to the API will include a user-specific jwt in the headers to let Remedy know who you are.

Example usage: client = RemedyClient("example.domain", "Allen", "password", verify=False)

Create a form entry

ENTRY_TEMPLATE = {
    "First_Name": "Allen",
    "Last_Name": "Allbrook",
    "Description": "REST API: Incident Creation",
    "Impact": "1-Extensive/Widespread",
    "Urgency": "1-Critical",
    "Status": "Assigned",
    "Reported Source": "Direct Input",
    "Service_Type": "User Service Restoration",
    "z1D_Action": "CREATE"
}

FORM_NAME = "HPD:IncidentInterface_Create"
RETURN_VALUES = ["Incident Number", "Request ID"]

incident, status_code = client.create_form_entry(FORM_NAME, ENTRY_TEMPLATE, RETURN_VALUES)
incident_id = incident["values"]["Incident Number"]
request_id = incident["values"]["Request ID"]

Contributing

Your feedback and contributions and welcome through issues and pull requests on the GitHub repository. Please be as descriptive as possible with issues or feature requests and provide testing instructions with any pull requests.

Thank you for helping to advance this project!

Contributors

Special shout out to my good friend and colleague Ryan Gordon (@Ryan-Gordon & @Ryan-Gordon1) for helping get this off the ground. I appreciate your open and honest feedback and bright ideas.

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

remedy_py-1.0.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

remedy_py-1.0.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file remedy_py-1.0.0.tar.gz.

File metadata

  • Download URL: remedy_py-1.0.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.6.8

File hashes

Hashes for remedy_py-1.0.0.tar.gz
Algorithm Hash digest
SHA256 03cf4891f9f5638142441f022fc7cb8fd712180a2609ae5bbbf598e4ae6792ec
MD5 7f31fdcec62274691224797279b8da64
BLAKE2b-256 f74847ac72b1140c9c0511159a2e6ee417c6515cf23a5ee6b972faae01d6e32c

See more details on using hashes here.

File details

Details for the file remedy_py-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: remedy_py-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.6.8

File hashes

Hashes for remedy_py-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4b260372eb15760af024a140a48101ec90a56cdee4630eafdb2e8332f461f094
MD5 33b06a45e015f757bb43972edd065e8c
BLAKE2b-256 6a6029a2359c3a5ef144b7afae16e9feebcb767905ce3eef1441855521f75031

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page