Skip to main content

No project description provided

Project description

Build Status Documentation

saramPy

saramPy is the Python bindings for the Saram API. It provides both a Python module to be used from Python scripts, and also a command line util called saram.

Requirements

saramPy is written and works only with Python 3.7+

Install

May have to install with sudo to ensure saram is placed on path.

pip3 install saramPy

Install dev version with pip

git clone https://github.com/securisec/saramPy.git
cd saramPy
pip3 install -e .
# to update future versions without reinstalling, use from inside saramPy folder
git pull

Usage

Init

Before using saramPy, make sure to setup the API key. Easiest way to set it up is to run

saram --init yourapikey

Script

Refer to the docs on how to user saramPy Python module.

Command line tool

$ saram --help
usage: saram [-h] -t TOKEN [-l] [--comment COMMENT] [-c ... | -f FILE]
             [--baseurl BASEURL]

optional arguments:
  -h, --help            show this help message and exit
  -t TOKEN, --token TOKEN
                        Token for the entry
  -l, --local           Dev mode. Use localhost
  --comment COMMENT     Add an optional comment
  -c ..., --command ...
                        Command to run inside quotes
  -f FILE, --file FILE  Read a file and send it to the server
  --baseurl BASEURL

Docs

Documentation is on readthedocs

To manually set up docs, run the following commands from inside the saram directory

pip3 install sphinx
cd docs/
make clean html

Then open the docs located in _build/html/index.html

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 saramPy, version 1.1.19
Filename, size File type Python version Upload date Hashes
Filename, size saramPy-1.1.19-py3-none-any.whl (24.4 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size saramPy-1.1.19.tar.gz (11.7 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