Python ServiceNow API Wrapper
Project description
ServiceNow API
Version: 0.4.0
ServiceNow API Python Wrapper
This repository is actively maintained and will continue adding more API calls
API Calls:
- Table
- CI/CD
- Import Sets
Coming Soon:
- Incident
- CMDB
- Application Service
Usage:
#!/usr/bin/python
# coding: utf-8
import servicenow_api
username = "<SERVICENOW USERNAME>"
password = "<SERVICENOW PASSWORD>"
servicenow_api_url = "<SERVICENOW_URL>"
client = servicenow_api.Api(url=servicenow_api_url, username=username, password=password)
table = client.get_table(table="<TABLE NAME>")
print(f"Table: {table}")
Install Instructions
Install Python Package
python -m pip install servicenow-api
Build Instructions
Build Python Package
sudo chmod +x ./*.py
pip install .
python setup.py bdist_wheel --universal
# Test Pypi
twine upload --repository-url https://test.pypi.org/legacy/ dist/* --verbose -u "Username" -p "Password"
# Prod Pypi
twine upload dist/* --verbose -u "Username" -p "Password"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file servicenow_api-0.4.0-py2.py3-none-any.whl
.
File metadata
- Download URL: servicenow_api-0.4.0-py2.py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92200a87c14bab71c685f247dccd5ad4d6b7a42676cee044935f8d997c03f630 |
|
MD5 | 6390c7610bc4fa700d3f768e17c46cf0 |
|
BLAKE2b-256 | ea451f58fa592c6bab59b46fc15864252c06de733677535671ee5d1a621fc453 |