Skip to main content

CLI and SDK wrappers for Probely's API

Project description

probely

Package level api key setup:

  • Config File: Create ~/.probely/config and add:

    [AUTH]
    api_key = <your_api_key>
    
  • Environment Variables

    export PROBELY_API_KEY=<your_api_key>
    
  • Tool specific config (see below)

CLI

Usage

  • Use -h/--help for available options
  • General usage:
    • probely <context> <action> [positional_params ...] [--optinal params ...] -- [positional_params ...]
    • -- allows you to add positional args after optional
  • add --api-key for command specific api key

SDK

  • Init Probely for specific config

    from probely_cli import Probely
    
    Probely.init(api_key=<your_api_key>)
    
    ...
    
  • Import probely_cli for public interface

    import probely_cli
    
    target = probely_cli.add_target("https://target_url.com")
    

Development guidelines:

  • Command structure: Probely <context> <action> params [--optinal params]
  • Follow CLI output good practices. Valid output to stdout, errors to stderr
  • Custom tooling, developers should be aware
    • rich.console is always available on the args
    • probely_cli pytest fixture (to call CLI commands)
  • Error message should have the following structure: {cmd}: error: {message}, following the default implementation of argparse
    • eg: probely targets get: error: filters and target ids are mutually exclusive.

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

probely-0.0.1a2.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

probely-0.0.1a2-py3-none-any.whl (37.9 kB view details)

Uploaded Python 3

File details

Details for the file probely-0.0.1a2.tar.gz.

File metadata

  • Download URL: probely-0.0.1a2.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.2

File hashes

Hashes for probely-0.0.1a2.tar.gz
Algorithm Hash digest
SHA256 6e09a39448985da18d67ddd58ab000b4153d6416bd588f7bb9bc0de4527783ea
MD5 0542f1e62886bed3d40ec43cdd2d4f45
BLAKE2b-256 54e633d49ba35f9fd54a259d58d1313ab48cc9cfaa072dabdd84ea110e714889

See more details on using hashes here.

File details

Details for the file probely-0.0.1a2-py3-none-any.whl.

File metadata

  • Download URL: probely-0.0.1a2-py3-none-any.whl
  • Upload date:
  • Size: 37.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.2

File hashes

Hashes for probely-0.0.1a2-py3-none-any.whl
Algorithm Hash digest
SHA256 9ee4f5bb33fd84ce59c0201d3ef32963f1548119958bfa03a80bb85449511bba
MD5 70cf4bb1ef54b4b2aa46d1ac7eecf39c
BLAKE2b-256 5a7799fdd9d671e5ab07a3453951e3df454739cf3bc873b9980301ea098b5e22

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