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
Metadata
Release files for pysnc 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pysnc-1.2.1.tar.gz | 37.3 kB | Without provenance | Details for pysnc-1.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pysnc-1.2.1-py3-none-any.whl | Python 3 | none | any | Details for pysnc-1.2.1-py3-none-any.whl |
Total release size: 79.5 kB
Release files / pysnc-1.2.1.tar.gz
| Download URL | pysnc-1.2.1.tar.gz |
|---|---|
| Size | 37.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
26fba05dbda382ad56727f58a12cec540bc4de773252b569838f9a360f7e86ce
|
|
BLAKE2b-256 checksum How to use checksums |
d8c235dbcd29c7ee120e44f35c056d577646dbf3e55476fc792fca737c9721f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.11.14 Linux/6.11.0-1018-azure
|
Release files / pysnc-1.2.1-py3-none-any.whl
| Download URL | pysnc-1.2.1-py3-none-any.whl |
|---|---|
| Size | 42.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
54fdfa2d99a5e3cccea6b295b8f1e5649ce221b0c4423fccc4c5b8d09cdccdda
|
|
BLAKE2b-256 checksum How to use checksums |
a7167e0560357fef8aa95c123c6634a0e59bfb3479a8bb7d072cfcfff9999342
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.11.14 Linux/6.11.0-1018-azure
|
Security for pysnc 1.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.