Asynchronous Python ServiceNow library
Project description
aiosnow: Asynchronous Python ServiceNow Library
aiosnow is a Python asyncio library for interacting with ServiceNow programmatically. It hopes to be:
- Convenient: A good deal of work is put into making the library flexible and easy to use.
- Performant: Uses non-blocking I/O to allow large amounts of API request tasks to run concurrently while being friendly on system resources.
- Modular: Core functionality is componentized into modules that are built with composability and extensibility in mind.
Example code
import asyncio
import aiosnow
from aiosnow.models.table.declared import IncidentModel as Incident
async def main():
client = aiosnow.Client("<instance>.service-now.com", basic_auth=("<username>", "<password>"))
async with Incident(client, table_name="incident") as inc:
# Fetch high-priority incidents
for response in await inc.get(Incident.priority <= 3, limit=5):
print(f"Number: {response['number']}, Priority: {response['priority'].value}")
asyncio.run(main())
Check out the examples directory for more material.
Documentation
API reference and more is available in the technical documentation.
Funding
The aiosnow code is permissively licensed, and can be incorporated into any type of application–commercial or otherwise–without costs or limitations. Its author believes it's in the commercial best-interest for users of the project to invest in its ongoing development.
Consider leaving a donation if you like this software, it will:
- Directly contribute to faster releases, more features, and higher quality software.
- Allow more time to be invested in documentation, issue triage, and community support.
- Safeguard the future development of aiosnow.
Development status
Beta: Core functionality is done and API breakage unlikely to happen.
Contributing
Check out the contributing guidelines if you want to help out with code or documentation.
Author
Robert Wikman <rbw@vault13.org>
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
Built Distribution
File details
Details for the file aiosnow-0.6.0.tar.gz
.
File metadata
- Download URL: aiosnow-0.6.0.tar.gz
- Upload date:
- Size: 24.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.0b4 CPython/3.7.3 Linux/4.19.0-11-amd64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c057c0cb132e952d53bf643bc236a1755e880385a3278e2dbfb7ec12133d2d24 |
|
MD5 | 74a8e90e0478e45c52da56f2472621bb |
|
BLAKE2b-256 | 4e7edcb9d9f74d84330fdf0f05a52e3c9cc602d3e105e862acbcac7e6a508c74 |
File details
Details for the file aiosnow-0.6.0-py3-none-any.whl
.
File metadata
- Download URL: aiosnow-0.6.0-py3-none-any.whl
- Upload date:
- Size: 36.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.0b4 CPython/3.7.3 Linux/4.19.0-11-amd64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 685b8575f09da3a1d59a2ea6e6921fdafacb2e82ab9337d76712b57317b1350b |
|
MD5 | 9e9eed12fe422a99de2c4afe5213bc86 |
|
BLAKE2b-256 | 193052cb8e2a0dd42f3c0b6c9cdb825bc574542c2b9792a87ceee2678f4c663b |