# ServiceNow API
![PyPI - Version](https://img.shields.io/pypi/v/servicenow-api)
![PyPI - Downloads](https://img.shields.io/pypi/dd/servicenow-api)
![GitHub Repo stars](https://img.shields.io/github/stars/Knuckles-Team/servicenow-api)
![GitHub forks](https://img.shields.io/github/forks/Knuckles-Team/servicenow-api)
![GitHub contributors](https://img.shields.io/github/contributors/Knuckles-Team/servicenow-api)
![PyPI - License](https://img.shields.io/pypi/l/servicenow-api)
![GitHub](https://img.shields.io/github/license/Knuckles-Team/servicenow-api)
![GitHub last commit (by committer)](https://img.shields.io/github/last-commit/Knuckles-Team/servicenow-api)
![GitHub pull requests](https://img.shields.io/github/issues-pr/Knuckles-Team/servicenow-api)
![GitHub closed pull requests](https://img.shields.io/github/issues-pr-closed/Knuckles-Team/servicenow-api)
![GitHub issues](https://img.shields.io/github/issues/Knuckles-Team/servicenow-api)
![GitHub top language](https://img.shields.io/github/languages/top/Knuckles-Team/servicenow-api)
![GitHub language count](https://img.shields.io/github/languages/count/Knuckles-Team/servicenow-api)
![GitHub repo size](https://img.shields.io/github/repo-size/Knuckles-Team/servicenow-api)
![GitHub repo file count (file type)](https://img.shields.io/github/directory-file-count/Knuckles-Team/servicenow-api)
![PyPI - Wheel](https://img.shields.io/pypi/wheel/servicenow-api)
![PyPI - Implementation](https://img.shields.io/pypi/implementation/servicenow-api)
*Version: 0.20.62*
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
<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" />
![GitHub followers](https://img.shields.io/github/followers/Knucklessg1)
![GitHub User's stars](https://img.shields.io/github/stars/Knucklessg1)
</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![PyPI - Version](https://img.shields.io/pypi/v/servicenow-api)\n![PyPI - Downloads](https://img.shields.io/pypi/dd/servicenow-api)\n![GitHub Repo stars](https://img.shields.io/github/stars/Knuckles-Team/servicenow-api)\n![GitHub forks](https://img.shields.io/github/forks/Knuckles-Team/servicenow-api)\n![GitHub contributors](https://img.shields.io/github/contributors/Knuckles-Team/servicenow-api)\n![PyPI - License](https://img.shields.io/pypi/l/servicenow-api)\n![GitHub](https://img.shields.io/github/license/Knuckles-Team/servicenow-api)\n\n![GitHub last commit (by committer)](https://img.shields.io/github/last-commit/Knuckles-Team/servicenow-api)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/Knuckles-Team/servicenow-api)\n![GitHub closed pull requests](https://img.shields.io/github/issues-pr-closed/Knuckles-Team/servicenow-api)\n![GitHub issues](https://img.shields.io/github/issues/Knuckles-Team/servicenow-api)\n\n![GitHub top language](https://img.shields.io/github/languages/top/Knuckles-Team/servicenow-api)\n![GitHub language count](https://img.shields.io/github/languages/count/Knuckles-Team/servicenow-api)\n![GitHub repo size](https://img.shields.io/github/repo-size/Knuckles-Team/servicenow-api)\n![GitHub repo file count (file type)](https://img.shields.io/github/directory-file-count/Knuckles-Team/servicenow-api)\n![PyPI - Wheel](https://img.shields.io/pypi/wheel/servicenow-api)\n![PyPI - Implementation](https://img.shields.io/pypi/implementation/servicenow-api)\n\n*Version: 0.20.62*\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\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![GitHub followers](https://img.shields.io/github/followers/Knucklessg1)\n![GitHub User's stars](https://img.shields.io/github/stars/Knucklessg1)\n</details>\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Python ServiceNow API Wrapper",
"version": "0.20.62",
"project_urls": {
"Homepage": "https://github.com/Knuckles-Team/servicenow-api"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6b90259fd1ab1731014558440b794672c4a1ad43346800e207c4580272b3b329",
"md5": "5d0b24b1982e14326ee0459f96630626",
"sha256": "e0bdee5cf4cdff942d39833d08f01aafd876a67fd2a0f11a1e3644f98b016ad9"
},
"downloads": -1,
"filename": "servicenow_api-0.20.62-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "5d0b24b1982e14326ee0459f96630626",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 26370,
"upload_time": "2024-07-26T15:31:08",
"upload_time_iso_8601": "2024-07-26T15:31:08.319097Z",
"url": "https://files.pythonhosted.org/packages/6b/90/259fd1ab1731014558440b794672c4a1ad43346800e207c4580272b3b329/servicenow_api-0.20.62-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-26 15:31:08",
"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"
}