Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/knuckles-team/servicenow-api
ServiceNow Python API Wrapper
https://github.com/knuckles-team/servicenow-api
python servicenow servicenow-api servicenow-devops
Last synced: about 1 month ago
JSON representation
ServiceNow Python API Wrapper
- Host: GitHub
- URL: https://github.com/knuckles-team/servicenow-api
- Owner: Knuckles-Team
- License: mit
- Created: 2022-11-15T16:34:25.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-29T03:14:08.000Z (7 months ago)
- Last Synced: 2024-05-29T03:14:16.384Z (7 months ago)
- Topics: python, servicenow, servicenow-api, servicenow-devops
- Language: Python
- Homepage:
- Size: 284 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ServiceNow API
![PyPI - Version](https://img.shields.io/pypi/v/servicenow-api)
![PyPI - Downloads](https://img.shields.io/pypi/dd/servicenow-api)
![GitHub Repo stars](https://img.shields.io/github/stars/Knuckles-Team/servicenow-api)
![GitHub forks](https://img.shields.io/github/forks/Knuckles-Team/servicenow-api)
![GitHub contributors](https://img.shields.io/github/contributors/Knuckles-Team/servicenow-api)
![PyPI - License](https://img.shields.io/pypi/l/servicenow-api)
![GitHub](https://img.shields.io/github/license/Knuckles-Team/servicenow-api)![GitHub last commit (by committer)](https://img.shields.io/github/last-commit/Knuckles-Team/servicenow-api)
![GitHub pull requests](https://img.shields.io/github/issues-pr/Knuckles-Team/servicenow-api)
![GitHub closed pull requests](https://img.shields.io/github/issues-pr-closed/Knuckles-Team/servicenow-api)
![GitHub issues](https://img.shields.io/github/issues/Knuckles-Team/servicenow-api)![GitHub top language](https://img.shields.io/github/languages/top/Knuckles-Team/servicenow-api)
![GitHub language count](https://img.shields.io/github/languages/count/Knuckles-Team/servicenow-api)
![GitHub repo size](https://img.shields.io/github/repo-size/Knuckles-Team/servicenow-api)
![GitHub repo file count (file type)](https://img.shields.io/github/directory-file-count/Knuckles-Team/servicenow-api)
![PyPI - Wheel](https://img.shields.io/pypi/wheel/servicenow-api)
![PyPI - Implementation](https://img.shields.io/pypi/implementation/servicenow-api)*Version: 0.20.62*
ServiceNow API Python Wrapper
This repository is actively maintained and will continue adding more API calls
Contributions are welcome!
All API Response objects are customized for the response call.
You can get all return values in a parent.value.nested_value format,
or you can run parent.model_dump() to get the table in dictionary format.#### API Calls:
- Application Service
- Change Management
- CI/CD
- CMDB
- Import Sets
- Incident
- Knowledge Base
- TableUsage:
OAuth Authentication
```python
#!/usr/bin/python
# coding: utf-8
import servicenow_apiusername = ""
password = ""
client_id = ""
client_secret = ""
servicenow_url = ""client = servicenow_api.Api(url=servicenow_url,
username=username,
password=password,
client_id=client_id,
client_secret=client_secret)table = client.get_table(table="")
print(f"Table: {table.model_dump()}")
```Basic Authentication
```python
#!/usr/bin/python
# coding: utf-8
import servicenow_apiusername = ""
password = ""
servicenow_url = ""client = servicenow_api.Api(url=servicenow_url,
username=username,
password=password)table = client.get_table(table="")
print(f"Table: {table.model_dump()}")
```Proxy and SSL Verify
```python
#!/usr/bin/python
# coding: utf-8
import servicenow_apiusername = ""
password = ""
servicenow_url = ""proxy = "https://proxy.net"
client = servicenow_api.Api(url=servicenow_url,
username=username,
password=password,
proxy=proxy,
verify=False)table = client.get_table(table="")
print(f"Table: {table.model_dump()}")
```Installation Instructions:
Install Python Package
```bash
python -m pip install servicenow-api
```Tests:
```bash
python ./test/test_servicenow_models.py
```Repository Owners:
![GitHub followers](https://img.shields.io/github/followers/Knucklessg1)
![GitHub User's stars](https://img.shields.io/github/stars/Knucklessg1)