Skip to main content

Script for checking TekSavvy Quota

Project description

“Have you had to much to download?”

https://travis-ci.org/mikeodr/tekuila.svg?branch=master

Pull your TekSavvy Quota and act on it.

To avoid using command line flags create a config file at:

~/.tekuila

Place the following variables within the config file:

API=<your API KEY from https://myaccount.teksavvy.com/ApiKey/ApiKeyManagement>
CAP=<your cap in GB>
WARN_RATIO=<ratio % to warn in 0.1 increments up to 1.0>

Installation

To install, run the following:

pip install tekuila

Or, if you wish to install the latest from source:

git clone https://github.com/mikeodr/tekuila
cd tekuila
python setup.py install

API Usage

Readthedocs.

Console Usage

Console command help:

tekuila -h
usage: tekuila [-h] [-c CONFIG] [--cap CAP] [--API API] [--warn WARN] [-v]

Check TekSavvy Cap

optional arguments:
  -h, --help            show this help message and exit
  -c CONFIG, --config CONFIG
                        Alternative config file
  --cap CAP             Your cap in GB
  --API API             API Key
  --warn WARN           Warn ratio against data cap, causes nonzero return
                        code
  -v, --verbose         Show output, don't just use return code

Pull Requests and Issues

Pull requests very much welcome. Check that it complies with pep8, please make sure the documentation builds.

Please use elementary commits vs big commits and try and have your commit messages be detailed. See Tim Pope’s excellent guide.

License

GPLv2

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

tekuila-1.0.0.tar.gz (4.6 kB view hashes)

Uploaded Source

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