Skip to main content

A Python toolset for utilizing the Freshservice API

Project description

freshpy

A Python toolset for utilizing the Freshservice API

Latest Stable Release PyPI
Latest Dev/Beta/RC Release PyPI
Build Status N/A
Supported Versions PyPI - Python Version
License License (GitHub)
Issues GitHub open issues
GitHub closed issues
Pull Requests GitHub pull open requests
GitHub closed pull requests

Installation

The package can be installed via pip using the syntax below.

pip install freshpy --upgrade

You may also clone the repository and install from source using below.

git clone git://github.com/jeffshurtliff/freshpy.git
cd freshpy/
python setup.py install

Usage

This section provides basic usage instructions for the package.

Importing the package

Rather than importing the base package, it is recommended that you import the primary FreshPy class using the syntax below.

from freshpy import FreshPy

Initializing a Khoros object instance

The primary FreshPy object serves many purposes, the most important being to establish a connection to the Freshservice environment with which you intend to interact. As such, when initializing an instance of the FreshPy object, you will need to pass it the Freshservice URL (e.g. example.freshservice.com) and the API key it will use to authenticate so that the connection can be established.

Passing the information directly into the object

The domain and API key can be passed directly into the FreshPy object when initializing it, as demonstrated in the example below.

fresh = FreshPy(domain='example.freshservice.com', api_key='abc123DEF456')

Interacting with the Freshservice API

Once the FreshPy object instance has been initialized, it can be leveraged to interact with a Freshservice environment in many ways, which is fully documented in the official documentation. The example below demonstrates how information for a specific incident ticket can be retrieved in JSON format.

ticket_data = fresh.tickets.get_ticket(1299)

License

MIT License

Reporting Issues

Issues can be reported within the GitHub repository.

Additional Resources

Additional resources for leveraging the Freshservice API can be found in the official Freshservice API Reference Documentation.

Donations

If you would like to donate to this project then you can do so using this PayPal link.

Disclaimer

This package is considered unofficial and is in no way endorsed or supported by Freshservice.

Download files

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

Source Distribution

freshpy-1.0.0.post1.tar.gz (56.7 kB view details)

Uploaded Source

Built Distribution

freshpy-1.0.0.post1-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

Details for the file freshpy-1.0.0.post1.tar.gz.

File metadata

  • Download URL: freshpy-1.0.0.post1.tar.gz
  • Upload date:
  • Size: 56.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.9.9

File hashes

Hashes for freshpy-1.0.0.post1.tar.gz
Algorithm Hash digest
SHA256 be7084cc2d3a53e5605178b75360ef803822596bf48e0a8f0b2147dcc17b9e1e
MD5 d34da4f82bfea1b99df2c476605ab39c
BLAKE2b-256 eec60947a5484e0a7de86c164a2a683b4cc54982a9e1bbf8db427fb71eed7bae

See more details on using hashes here.

File details

Details for the file freshpy-1.0.0.post1-py3-none-any.whl.

File metadata

  • Download URL: freshpy-1.0.0.post1-py3-none-any.whl
  • Upload date:
  • Size: 18.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.9.9

File hashes

Hashes for freshpy-1.0.0.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 0afd0412530b77dc69f0a894ac28a534a8123160e3ec28ae6a404e6d722ef007
MD5 d595144b83b2b454f3502d78b9944f04
BLAKE2b-256 5bece562286657ba9ea9a5369503ed3d2c0a846baf06d49726f9bd7e239f1ece

See more details on using hashes here.

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