{"id":37085807,"url":"https://github.com/armorblox/armorblox-python-sdk","last_synced_at":"2026-01-14T10:33:24.417Z","repository":{"id":41429890,"uuid":"423809756","full_name":"armorblox/armorblox-python-sdk","owner":"armorblox","description":"Armorblox SDK for Python","archived":false,"fork":false,"pushed_at":"2023-03-21T12:28:18.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-20T01:10:41.415Z","etag":null,"topics":["email-security","python","sdk","security"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/armorblox.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-02T11:03:54.000Z","updated_at":"2022-07-01T15:11:07.000Z","dependencies_parsed_at":"2023-01-24T06:30:54.034Z","dependency_job_id":null,"html_url":"https://github.com/armorblox/armorblox-python-sdk","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/armorblox/armorblox-python-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armorblox%2Farmorblox-python-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armorblox%2Farmorblox-python-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armorblox%2Farmorblox-python-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armorblox%2Farmorblox-python-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/armorblox","download_url":"https://codeload.github.com/armorblox/armorblox-python-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armorblox%2Farmorblox-python-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28417593,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:25:19.714Z","status":"ssl_error","status_checked_at":"2026-01-14T10:22:49.371Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["email-security","python","sdk","security"],"created_at":"2026-01-14T10:33:24.345Z","updated_at":"2026-01-14T10:33:24.408Z","avatar_url":"https://github.com/armorblox.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://assets.armorblox.com/f/52352/775x159/8fa6246e47/logo_color.svg\" width=387 alt=\"Armorblox logo\"\u003e\n\n# Armorblox Python SDK (Alpha)\n\n[![PyPI version](https://badge.fury.io/py/armorblox-sdk.svg)](https://badge.fury.io/py/armorblox-sdk)\n[![Apache-2 License](https://img.shields.io/badge/license-Apache2-blueviolet)](https://www.apache.org/licenses/LICENSE-2.0)\n\nThis is an alpha version of the SDK with limited documentation and no support.\n\n## Requirements\n\nPython 3.5+\n\n## Installation\n\n```\npip install armorblox-sdk\n```\n\n## Usage\n\n```\nfrom armorblox import client\n\n# Create an API client for your tenant\nc = client.Client(api_key='your-api-key-here', instance_name='yourtenantname')\n\n# Fetch information about an incident's analysis data\nincident_analysis = c.incidents.analysis(78143)\n\n# Fetch information about an incident's sender data\nincident_senders = c.incidents.senders(78143)\n\n# Fetch information about an object associated with an incident (usually mail). \n# Get the object ID from Get Incident by Id's response, under .events[].object_id\nincident_object = c.incidents.mail('d72c07bc789c30cb4d63d78ee2861f94add695f9c812e30cfb081b20d3e7e5e7')\n\n# Updates the action to be taken for an incident's objects\nupdate_details = c.incidents.update(78143, body = {\n                  \"policyActionType\": \"DELETE\",\n                  \"addSenderToException\": False,\n                  \"actionProfileId\": \"\"\n                })\n\n\n# Fetch a list of threats\nthreat_incidents, next_page_token, total_incident_count = c.threats.list()\n\n# Fetch a specific threat\nincident = c.threats.get(44006)\n\n\n# Fetch a list of abuse incidents\nabuse_incidents, next_page_token, total_incident_count = c.abuse_incidents.list()\n\n# Fetch a specific abuse incident\nabuse_incident = c.abuse_incidents.get(44200)\n\n\n# Fetch a list of DLP incidents\ndlp_incidents, next_page_token, total_incident_count = c.dlp_incidents.list()\n\n# Fetch a specific DLP incident\ndlp_incident = c.dlp_incidents.get(44010)\n\n\n# Fetch a list of EAC incidents\neac_incidents, next_page_token, total_incident_count = c.eac_incidents.list()\n\n# Fetch a specific EAC incident\neac_incident = c.eac_incidents.get(67)\n\n\n# Fetch a list of Graymail incidents\ngraymail_incidents, next_page_token, total_incident_count = c.graymail_incidents.list()\n\n# Fetch a specific EAC incident\ngraymail_incident = c.graymail_incidents.get(2627)\n\n\n# Example to fetch all threats using next_page_token\nnext_page_token = None\nincidents = []\nwhile True:\n    threats, next_page_token, total_incident_count = c.threats.list(page_token=next_page_token)\n    incidents.extend(threats)\n    if not next_page_token:\n        break\n```\n\n## Contributing\n\n* Install [Poetry](https://python-poetry.org)\n* Clone the SDK repo \u0026 `cd` into it\n```\ngit clone https://github.com/armorblox/armorblox-python-sdk\ncd armorblox-python-sdk\n```\n* Run `poetry install` to install the dependencies\n* Run `tox` to run the tests\n\n## Publishing\n\n#### TestPyPI\n\nOne-time setup\n```\npoetry config repositories.test-pypi https://test.pypi.org/legacy/\npoetry config pypi-token.test-pypi \u003cyour-TestPyPI-token\u003e\n```\n\nPublishing\n```\npoetry publish --build -r test-pypi\n```\n\nUse\n```\npip install --index-url https://test.pypi.org/simple/ --no-deps armorblox-sdk\n```\nto make sure the installation works correctly.\n\n#### PyPI\n\nOne-time setup\n```\npoetry config pypi-token.pypi \u003cyour-PyPI-token\u003e\n```\n\nPublishing\n```\npoetry publish --build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farmorblox%2Farmorblox-python-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farmorblox%2Farmorblox-python-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farmorblox%2Farmorblox-python-sdk/lists"}