Python SNC (REST) API
Project description
ServiceNow Python API
What: PySnc is a python interface for the ServiceNow and the Table API. It is designed to mimic the familiar GlideRecord interface you know with pythonic support where applicable.
Why: Spawned from the desire to interact with ServiceNow data in a familiar and consistent manner
Install
pip install pysnc
Quick Start
from pysnc import ServiceNowClient
client = ServiceNowClient('https://dev0000.service-now.com', ('integration.user', password))
gr = client.GlideRecord('sys_user')
gr.add_query('user_name', 'admin')
gr.query()
for r in gr:
print(r.sys_id)
Documentation
Full documentation currently available at https://servicenow.github.io/PySNC/
Or build them yourself:
cd docs && make html
Development Notes
The following functions are not (yet?) supported:
choose_window(first_row, last_row, force_count=True)
TODOget_class_display_value()
get_record_class_name()
is_valid()
TODOis_valid_record()
new_record()
_next()
_query()
The following will not be implemented:
get_attribute(field_name)
Not Applicableget_ED()
Not Applicableget_label()
Not Applicableget_last_error_message()
Not Applicableset_workflow(enable)
Not Possibleoperation()
Not Applicableset_abort_action()
Not Applicableis_valid_field()
Not Possibleis_action_aborted()
Not Applicable
Feature Wants and TODO
- GlideAggregate support (
/api/now/stats/{tableName}
)
And we want to:
- Improve documentation
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 Distribution
pysnc-1.1.6a5.tar.gz
(22.1 kB
view details)
Built Distribution
pysnc-1.1.6a5-py3-none-any.whl
(24.2 kB
view details)
File details
Details for the file pysnc-1.1.6a5.tar.gz
.
File metadata
- Download URL: pysnc-1.1.6a5.tar.gz
- Upload date:
- Size: 22.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.11.8 Linux/6.5.0-1016-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8b43151a1b6b8159158ff8ab618896dbf2e771dcbeaf805ca3dfb429da04a1d |
|
MD5 | c9cb141fdeefd8b430dbe14ba449b9e5 |
|
BLAKE2b-256 | 10d6e0a3b86070bb007c1f7e5e4e2e6ef402ee7f751f96b8171ec128be75e578 |
File details
Details for the file pysnc-1.1.6a5-py3-none-any.whl
.
File metadata
- Download URL: pysnc-1.1.6a5-py3-none-any.whl
- Upload date:
- Size: 24.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.11.8 Linux/6.5.0-1016-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8981ea6136b32aaca427905b089f4bfa68cdd9691b64dd539ef3178675cb191 |
|
MD5 | e1b69be7bdd4f70f1c317af3ac3510a4 |
|
BLAKE2b-256 | 70c4cd68f1a616f77fe36cede5ebab5616306e4f943f3a1190c4693186b13c7a |