Skip to main content

A client module for hhelper-server

Project description

## hhelper-client

[![pipeline status](https://git.tpage.io/tyler/hhelper-client/badges/master/pipeline.svg)](https://git.tpage.io/tyler/hhelper-client/commits/master)

Python module that interacts with hhelper-server in order to securely provide secrets and send messages to my XMPP server within all my other python based projects

### Requirements

  • requests - Python HTTP request library

### Currently supported client functions:

  • send_message - Send a message to a channel via XMPP
  • send_file - Send a file to a channel via XMPP
  • get_secret - Get a secret from Vault

### Required parameters:

  • send_message
    • room - The room to send the message
    • message - The message to send to the room
    • token - The unique token to authenticate to the API endpoint
  • send_file
    • room - The room to send the file
    • message - The room to send the message
    • file - The file to send
    • token - The unique token to authenticate to the API endpoint
  • get_secret
    • secret - The secret to retrieve from Vault
    • token - The unique token to authenticate to the API endpoint

### Notes:

  • Set HHELPER_CLIENT_CONFIG_FILE to a valid JSON file containing the authorized token to use with the hhelper-server instance

### Example hhelper-client.json

` { "token": "asdf-sfdf-asee-21d12s" } `

Project details


Download files

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

Files for hhelper-client, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size hhelper_client-0.0.1-py2.py3-none-any.whl (4.6 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size hhelper-client-0.0.1.tar.gz (2.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page