# ServiceNow API

















*Version: 0.20.68*
ServiceNow API Python Wrapper
This repository is actively maintained and will continue adding more API calls
Contributions are welcome!
All API Response objects are customized for the response call.
You can get all return values in a parent.value.nested_value format,
or you can run parent.model_dump() to get the table in dictionary format.
#### API Calls:
- Application Service
- Change Management
- CI/CD
- CMDB
- Import Sets
- Incident
- Knowledge Base
- Table
- Custom Endpoint
If your API call isn't supported, you can always run the standard custom API endpoint function to get/post/put/delete and endpoint
<details>
<summary><b>Usage:</b></summary>
OAuth Authentication
```python
#!/usr/bin/python
# coding: utf-8
import servicenow_api
username = "<SERVICENOW USERNAME>"
password = "<SERVICENOW PASSWORD>"
client_id = "<SERVICENOW CLIENT_ID>"
client_secret = "<SERVICENOW_CLIENT_SECRET>"
servicenow_url = "<SERVICENOW_URL>"
client = servicenow_api.Api(url=servicenow_url,
username=username,
password=password,
client_id=client_id,
client_secret=client_secret)
table = client.get_table(table="<TABLE NAME>")
print(f"Table: {table.model_dump()}")
```
Basic Authentication
```python
#!/usr/bin/python
# coding: utf-8
import servicenow_api
username = "<SERVICENOW USERNAME>"
password = "<SERVICENOW PASSWORD>"
servicenow_url = "<SERVICENOW_URL>"
client = servicenow_api.Api(url=servicenow_url,
username=username,
password=password)
table = client.get_table(table="<TABLE NAME>")
print(f"Table: {table.model_dump()}")
```
Proxy and SSL Verify
```python
#!/usr/bin/python
# coding: utf-8
import servicenow_api
username = "<SERVICENOW USERNAME>"
password = "<SERVICENOW PASSWORD>"
servicenow_url = "<SERVICENOW_URL>"
proxy = "https://proxy.net"
client = servicenow_api.Api(url=servicenow_url,
username=username,
password=password,
proxy=proxy,
verify=False)
table = client.get_table(table="<TABLE NAME>")
print(f"Table: {table.model_dump()}")
```
</details>
<details>
<summary><b>Installation Instructions:</b></summary>
Install Python Package
```bash
python -m pip install servicenow-api
```
</details>
<details>
<summary><b>Tests:</b></summary>
```bash
python ./test/test_servicenow_models.py
```
</details>
<details>
<summary><b>Repository Owners:</b></summary>
<img width="100%" height="180em" src="https://github-readme-stats.vercel.app/api?username=Knucklessg1&show_icons=true&hide_border=true&&count_private=true&include_all_commits=true" />


</details>
Raw data
{
"_id": null,
"home_page": "https://github.com/Knuckles-Team/servicenow-api",
"name": "servicenow-api",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": "Audel Rouhi",
"author_email": "knucklessg1@gmail.com",
"download_url": null,
"platform": null,
"description": "# ServiceNow API\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n*Version: 0.20.68*\n\nServiceNow API Python Wrapper\n\nThis repository is actively maintained and will continue adding more API calls\n\nContributions are welcome!\n\nAll API Response objects are customized for the response call.\nYou can get all return values in a parent.value.nested_value format,\nor you can run parent.model_dump() to get the table in dictionary format.\n\n#### API Calls:\n- Application Service\n- Change Management\n- CI/CD\n- CMDB\n- Import Sets\n- Incident\n- Knowledge Base\n- Table\n- Custom Endpoint\n\nIf your API call isn't supported, you can always run the standard custom API endpoint function to get/post/put/delete and endpoint\n\n<details>\n <summary><b>Usage:</b></summary>\n\nOAuth Authentication\n\n```python\n#!/usr/bin/python\n# coding: utf-8\nimport servicenow_api\n\nusername = \"<SERVICENOW USERNAME>\"\npassword = \"<SERVICENOW PASSWORD>\"\nclient_id = \"<SERVICENOW CLIENT_ID>\"\nclient_secret = \"<SERVICENOW_CLIENT_SECRET>\"\nservicenow_url = \"<SERVICENOW_URL>\"\n\nclient = servicenow_api.Api(url=servicenow_url,\n username=username,\n password=password,\n client_id=client_id,\n client_secret=client_secret)\n\ntable = client.get_table(table=\"<TABLE NAME>\")\nprint(f\"Table: {table.model_dump()}\")\n```\n\n\nBasic Authentication\n\n```python\n#!/usr/bin/python\n# coding: utf-8\nimport servicenow_api\n\nusername = \"<SERVICENOW USERNAME>\"\npassword = \"<SERVICENOW PASSWORD>\"\nservicenow_url = \"<SERVICENOW_URL>\"\n\nclient = servicenow_api.Api(url=servicenow_url,\n username=username,\n password=password)\n\ntable = client.get_table(table=\"<TABLE NAME>\")\nprint(f\"Table: {table.model_dump()}\")\n```\n\nProxy and SSL Verify\n\n```python\n#!/usr/bin/python\n# coding: utf-8\nimport servicenow_api\n\nusername = \"<SERVICENOW USERNAME>\"\npassword = \"<SERVICENOW PASSWORD>\"\nservicenow_url = \"<SERVICENOW_URL>\"\n\nproxy = \"https://proxy.net\"\n\nclient = servicenow_api.Api(url=servicenow_url,\n username=username,\n password=password,\n proxy=proxy,\n verify=False)\n\ntable = client.get_table(table=\"<TABLE NAME>\")\nprint(f\"Table: {table.model_dump()}\")\n```\n\n</details>\n\n<details>\n <summary><b>Installation Instructions:</b></summary>\n\nInstall Python Package\n\n```bash\npython -m pip install servicenow-api\n```\n\n</details>\n\n<details>\n <summary><b>Tests:</b></summary>\n\n```bash\npython ./test/test_servicenow_models.py\n```\n</details>\n\n<details>\n <summary><b>Repository Owners:</b></summary>\n\n\n<img width=\"100%\" height=\"180em\" src=\"https://github-readme-stats.vercel.app/api?username=Knucklessg1&show_icons=true&hide_border=true&&count_private=true&include_all_commits=true\" />\n\n\n\n</details>\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Python ServiceNow API Wrapper",
"version": "0.20.68",
"project_urls": {
"Homepage": "https://github.com/Knuckles-Team/servicenow-api"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d6c071ad9d29c82c126b6e3c88c749cd31200a73cefbfe23cd235e320f6db135",
"md5": "a56e9af5b2ca9010d3d6e23e19e84af1",
"sha256": "e998a6278c1a079a3f69d0b18d020fc4418c8b7cd3fed83195f6a8e7a1927d44"
},
"downloads": -1,
"filename": "servicenow_api-0.20.68-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "a56e9af5b2ca9010d3d6e23e19e84af1",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 26814,
"upload_time": "2025-01-15T22:12:23",
"upload_time_iso_8601": "2025-01-15T22:12:23.665990Z",
"url": "https://files.pythonhosted.org/packages/d6/c0/71ad9d29c82c126b6e3c88c749cd31200a73cefbfe23cd235e320f6db135/servicenow_api-0.20.68-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-15 22:12:23",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Knuckles-Team",
"github_project": "servicenow-api",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "requests",
"specs": [
[
">=",
"2.8.1"
]
]
},
{
"name": "urllib3",
"specs": [
[
">=",
"2.2.2"
]
]
},
{
"name": "pydantic",
"specs": [
[
">=",
"2.8.2"
]
]
}
],
"lcname": "servicenow-api"
}