Skip to main content

Client SDK for triggering actions on Repello's Artemis Platform

Project description

Repello Artemis SDK

A Python client SDK for triggering actions on Repello's Artemis Platform.

Installation

You can install the package from PyPI:

pip install repello-artemis-sdk

Requirements

  • Python 3.8 or higher
  • requests library (automatically installed as a dependency)

Quick Start

from repello_artemis_sdk import RepelloArtemisClient
from repello_artemis_sdk.enums import ScanType

# Initialize the client with your credentials
client = RepelloArtemisClient(
    client_id="your-client-id",
    client_secret="your-client-secret",
    log_to_console=True,  # Optional: Enable console logging
    log_to_file="artemis.log"  # Optional: Log to file
)

# Trigger a scan on an asset
client.assets.trigger_scan("asset_id", ScanType.quick_scan)

Features

  • Simple, intuitive API for interacting with Repello's Artemis Platform
  • Supports different scan types for assets
  • Configurable logging (console and/or file)
  • Type hints for better IDE integration

Authentication

The SDK uses client credentials for authentication. You need to provide your client_id and client_secret when initializing the client:

client = RepelloArtemisClient(client_id, client_secret)

Head to platform.repello.ai and login to your account, go to the CI/CD page, create a client secret, then copy the client ID and client secret.

API Reference

Client Initialization

RepelloArtemisClient(
    client_id: str,
    client_secret: str,
    log_to_console: bool = False,
    log_to_file: str = None
)

Parameters:

  • client_id: Your Repello Artemis client ID
  • client_secret: Your Repello Artemis client secret
  • log_to_console: (Optional) Enable logging to console
  • log_to_file: (Optional) Path to log file

Assets

Trigger Scan

client.assets.trigger_scan(asset_id: str, scan_type: ScanType)

Parameters:

  • asset_id: ID of the asset to scan
  • scan_type: Type of scan to perform (from ScanType enum)

Available scan types:

  • ScanType.quick_scan: Performs a quick scan on the asset
  • Other scan types (refer to the ScanType enum documentation)

Changelog

See the CHANGELOG.md file for details on all changes and releases.

License

This project is licensed under the Apache License 2.0 - see the details in the license file.

Issues

If you encounter any problems, please file an issue at the GitHub repository.

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

repello_artemis_sdk-1.0.0.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

repello_artemis_sdk-1.0.0-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file repello_artemis_sdk-1.0.0.tar.gz.

File metadata

  • Download URL: repello_artemis_sdk-1.0.0.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for repello_artemis_sdk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 984986fcd7fd32759be8ac84d4b3169b2443393ec1c6c32c1307ae45814fee91
MD5 e9c3f0fdbce08a923d1e5aa69ff57787
BLAKE2b-256 acc4d4a417bc519076a494b201fdc45b3d738ed1c1ca41f56a304016714a9c4f

See more details on using hashes here.

File details

Details for the file repello_artemis_sdk-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for repello_artemis_sdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3d57834ead19d2c2cef7318552c1d01b3d5c80642223edea58349625089f9cd7
MD5 04c7e68c7d143d311bcee02eb46614dc
BLAKE2b-256 8848e7d8773fc11590bc2f29ff60fec6aa22ea362b34b10b843f03d4b19ff6d6

See more details on using hashes here.

Supported by

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