snow: Python asyncio library for ServiceNow
Snow is a simple and lightweight yet powerful and extensible library for interacting with ServiceNow. It works
with modern versions of Python, utilizes asyncio and
can be used for simple scripting as well as for building high-concurrency backend applications on top of the ServiceNow platform.
Also, its API is fully type annotated and documented.
Example code
import asyncio
from snow import Snow
from snow.schemas.table import IncidentSchema as Incident
app = Snow(".service-now.com", basic_auth=("", ""))
async def main():
async with app.get_table(Incident) as inc:
for response in await inc.get(Incident.priority <= 3, limit=5):
print(f"Number: {response['number']}, Priority: {response['priority'].text}")
asyncio.run(main())
Check out the examples directory for more examples.
Docume
|