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.6a1.tar.gz
(21.4 kB
view details)
Built Distribution
pysnc-1.1.6a1-py3-none-any.whl
(23.4 kB
view details)
File details
Details for the file pysnc-1.1.6a1.tar.gz
.
File metadata
- Download URL: pysnc-1.1.6a1.tar.gz
- Upload date:
- Size: 21.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.7 Linux/6.2.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9bfbb06a28d929047e808a462d7b23adc0168ad0fd88d4c680cbe3a853b4102 |
|
MD5 | 73b8421e69ff9442e6e72532c4463f8a |
|
BLAKE2b-256 | 3439c2f9346555d72cc0edbe0f79152c3a3cb498b894aaee29844d2185900a62 |
File details
Details for the file pysnc-1.1.6a1-py3-none-any.whl
.
File metadata
- Download URL: pysnc-1.1.6a1-py3-none-any.whl
- Upload date:
- Size: 23.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.7 Linux/6.2.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdae8a5b1154e698494beaf3c8ea26d583d953f66708b3fc61967863ac043aba |
|
MD5 | b0bc83e7d2b6050d2eda6e5d605be2b2 |
|
BLAKE2b-256 | 57abc007b083ed34e0043b3afe068322d882df62819879b588a1851af62f2f76 |