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.8.tar.gz
(22.5 kB
view details)
Built Distribution
pysnc-1.1.8-py3-none-any.whl
(24.7 kB
view details)
File details
Details for the file pysnc-1.1.8.tar.gz
.
File metadata
- Download URL: pysnc-1.1.8.tar.gz
- Upload date:
- Size: 22.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.5.0-1023-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c2d7add7371470539f683aaded4080a55defd85c12a9cea2f757e7b735314fc |
|
MD5 | 9d1b3b470f0fddbb1d8d576a7aab6168 |
|
BLAKE2b-256 | 234df86601d82c456720b4eccec2e65a61cccf5fa367609f21dfad96890bd0fc |
File details
Details for the file pysnc-1.1.8-py3-none-any.whl
.
File metadata
- Download URL: pysnc-1.1.8-py3-none-any.whl
- Upload date:
- Size: 24.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.5.0-1023-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20a1b964840dfa68c693a86297e5d376c961298e423a3e7195dfe6a79ffcec5f |
|
MD5 | 562dc40d74bb9b5af10a5796202dee60 |
|
BLAKE2b-256 | 5ca08af04f65e9d3fb2101faab0956192d05f96e709aca227477d4e981063427 |