Skip to content

fhightower/robtex-python

Repository files navigation

Robtex Python

https://api.codacy.com/project/badge/Grade/8151c710cd704ddeb8575ee6dfbbd96e

Simple python wrapper for the Robtex API .

Installation

Stable release

To install Robtex Python, run this command in your terminal:

pip install robtex-python

This is the preferred method to install the Robtex API wrapper, as it will always install the most recent stable release.

If you don't have pip installed, this Python installation guide can guide you through the process.

From sources

The sources for Robtex Python can be downloaded from the Github repo.

You can either clone the public repository:

$ git clone git://github.com/fhightower/robtex-python

Or download the tarball:

$ curl  -OL https://github.com/fhightower/robtex-python/tarball/master

Once you have a copy of the source, you can install it with:

$ python3 setup.py install

Usage

Via Python

You can use Robtex Python in a script as follows:

import robtex_python
response = robtex_python.pdns_forward("example.com")

Via Command Line

You can use Robtex Python as a command-line tool as follows:

Usage:
    robtex_python --ip=<ip>
    robtex_python --as=<asn>
    robtex_python --pdns-forward=<hostname>
    robtex_python --pdns-reverse=<ip>
    robtex_python (-h | --help)
    robtex_python --version

Credits

This package was created with Cookiecutter and the fhightower/python-project-template project template.