FreshPy
A Python toolset for utilizing the Freshservice API
| Latest Stable Release |
|
| Latest Dev/Beta/RC Release |
|
| Build Status | N/A |
| Supported Versions |
|
| Documentation |
|
| License |
|
| Issues |
|
| 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 FreshPy 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
Changelog
Refer to the changelog for version change information.
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.
Metadata
Release files for freshpy 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| freshpy-2.0.0.tar.gz | 19.2 kB | Without provenance | Details for freshpy-2.0.0.tar.gz |
Release files / freshpy-2.0.0.tar.gz
| Download URL | freshpy-2.0.0.tar.gz |
|---|---|
| Size | 19.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f6c7df9e0914e07e3d503394e1eaa3a0d0504b02ca43f1689e80d6e76e4ca11
|
|
BLAKE2b-256 checksum How to use checksums |
4b2b55c3612ff1562c265e532c2505eca4d2d3055bba4dd2538a19ca3291dd35
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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.10
|
Security for freshpy 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.