PySNC
Python API for ServiceNow
Install / Use
/learn @ServiceNow/PySNCREADME
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
If you also want to install the asyncio support, you can run:
pip install pysnc[asyncio]
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
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
