https://github.com/henriquencmt/servicenowpy
ServiceNow's Table API, easily.
https://github.com/henriquencmt/servicenowpy
library python python-library servicenow table-api
Last synced: about 1 year ago
JSON representation
ServiceNow's Table API, easily.
- Host: GitHub
- URL: https://github.com/henriquencmt/servicenowpy
- Owner: henriquencmt
- License: mit
- Created: 2021-11-13T19:28:07.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-06-24T02:14:11.000Z (almost 2 years ago)
- Last Synced: 2025-03-25T23:06:48.170Z (about 1 year ago)
- Topics: library, python, python-library, servicenow, table-api
- Language: Python
- Homepage:
- Size: 27.3 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
servicenowpy
============
[](http://badge.fury.io/py/servicenowpy)
[](https://pypi.python.org/pypi/servicenowpy/)
[](https://pepy.tech/project/servicenowpy)
A library that helps you to get data from ServiceNow's Table API.
Installation
------------
```shell
pip install servicenowpy
```
Simple usage
------------
How to retrieve records from incident table with this lib:
```python
>>> from servicenowpy import Client
>>> sn_client = Client('.service-now.com', '', '')
>>> inc_table = sn_client.table('incident')
>>> records = inc_table.get(sysparm_fields='number,short_description')
>>> for record in records:
... print(record)
{'number': 'INC0000060', 'short_description': 'Unable to connect to email'}
{'number': 'INC0000009', 'short_description': 'Reset my password'}
{'number': 'INC0009005', 'short_description': 'Need access to the common drive'}
```
_________________
[Further Documentation](https://servicenowpy.readthedocs.io/) | [Github Repository](https://github.com/henriquencmt/servicenowpy/) | [Contributing](https://github.com/henriquencmt/servicenowpy/blob/main/CONTRIBUTING.md)