Skip to main content

Python library for Trend Micro Vision One

Project description

PyTMV1: Python Library for Trend Micro Vision One

Build Lint Test Coverage Pypi: version Downloads Python: version License: apache Types - mypy Imports: isort Code style: black

Prerequisites

Using this project requires at least Python 3.7.

Configuration

parameter description
name Identify the application using this library.
token Authentication token created for your account.
url Vision One API url this client connects to.
pool_connections Number of connection pools to cache (defaults to 1).
pool_maxsize Maximum size of the pool (defaults to 1).

Usage

>>> import pytmv1
>>> client = pytmv1.client("MyApplication", "Token", "https://api.xdr.trendmicro.com")
>>> result = client.get_exception_list()
>>> result.response
GetExceptionListResp(
    next_link=None,
    items=[
        ExceptionObject(
            url='https://*.example.com/path1/*',
            type=<ObjectType.URL: 'url'>,
            last_modified_date_time='2023-01-12T14:05:37Z',
            description='object description'
        )
    ]
)
>>> result.result_code
ResultCode.SUCCESS

Development

Install dependencies

pip install -e ".[dev]"

Build the project

hatch build

Run unit tests

pytest --verbose ./tests/unit

Run integration tests

pytest --mock-url="$url" --verbose ./tests/integration

Supported APIs

Python Vision One
Connectivity
test_connectivity Check availability of service
Common
get_base_task_result Download response task results
get_task_result Download response task results
Domain Account
disable_account Disable user account
enable_account Enable user account
reset_password_account Force password reset
sign_out_account Force sign out
Email
delete_email_message Delete email message
quarantine_email_message Quarantine email message
restore_email_message Restore email message
Endpoint
collect_file Collect file
isolate_endpoint Isolate endpoint
restore_endpoint Restore endpoint
terminate_process Terminate process
Sandbox Analysis
download_sandbox_analysis_result Download analysis results
download_sandbox_investigation_package Download investigation package
get_sandbox_analysis_result Get analysis results
get_sandbox_submission_status Get submission status
get_sandbox_suspicious_list Download suspicious object list
submit_file_to_sandbox Submit file to sandbox
submit_urls_to_sandbox Submit URLs to sandbox
Search
get_endpoint_data, consume_endpoint_data Get endpoint data
Suspicious Objects
add_to_block_list Add to block list
remove_from_block_list Remove from block list
Suspicious Object Exception List
add_to_exception_list Add to exception list
get_exception_list, consume_exception_list Get exception list
remove_from_exception_list Remove from exception list
Suspicious Object List
add_to_suspicious_list Add to suspicious object list
get_suspicious_list, consume_suspicious_list List suspicious objects
remove_from_suspicious_list Remove from suspicious object list
Workbench
add_alert_note Add alert note
edit_alert_status Modify alert status
get_alert_list, consume_alert_list Get alerts list

Contributing

Thank you for your interest in this project, please make sure to read the contribution guide.

Code of conduct

See Code of conduct.

License

Project distributed under the Apache 2.0 license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytmv1-0.0.3.tar.gz (22.7 kB view details)

Uploaded Source

Built Distribution

pytmv1-0.0.3-py3-none-any.whl (27.0 kB view details)

Uploaded Python 3

File details

Details for the file pytmv1-0.0.3.tar.gz.

File metadata

  • Download URL: pytmv1-0.0.3.tar.gz
  • Upload date:
  • Size: 22.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.16

File hashes

Hashes for pytmv1-0.0.3.tar.gz
Algorithm Hash digest
SHA256 b5c88aae04ac8211ca170d3bb6287c0cb61196ebd5348afe5ad953b7ba53344b
MD5 8cefdfada753daf402465dad937c598f
BLAKE2b-256 2d7c22d335ef574454882554f172c1819700ae5018742f32030aff73525c54c8

See more details on using hashes here.

File details

Details for the file pytmv1-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pytmv1-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 27.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.16

File hashes

Hashes for pytmv1-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 dbffd9490d94232494632fdbb0805a132fe757d79c208439dcf627aabc1e4af7
MD5 53fd9b8c6daa404d59e3304b33bf24b8
BLAKE2b-256 b44800ef3af7deef01fc22e4e6eae261d2f244364da36a925f16cb9749b58a6b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page