Skip to main content

Simple python wrapper for the Robtex API.

Project description

MIT License

Copyright (c) 2017, Floyd Hightower

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


Description: *******************************
Robtex Python
*******************************


.. image:: https://img.shields.io/pypi/v/robtex_python.svg
:target: https://pypi.python.org/pypi/robtex_python

.. image:: https://img.shields.io/travis/fhightower/robtex-python.svg
:target: https://travis-ci.org/fhightower/robtex-python

.. image:: https://codecov.io/gh/fhightower/robtex-python/branch/master/graph/badge.svg
:target: https://codecov.io/gh/fhightower/robtex-python

.. image:: https://api.codacy.com/project/badge/Grade/8151c710cd704ddeb8575ee6dfbbd96e
:target: https://www.codacy.com/app/fhightower/robtex-python

.. image:: https://readthedocs.org/projects/robtex-python/badge/?version=latest
:target: http://robtex-python.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status

Simple python wrapper for the `Robtex API <https://www.robtex.com/api/>`_ . This project is currently **under development**. Feel free to contribute and don't forget to add yourself to the `AUTHORS.rst <https://github.com/fhightower/robtex-python/blob/master/AUTHORS.rst>`_ file!

* Free software: MIT license
* Documentation: https://robtex-python.readthedocs.io

Installation
============

Stable release
--------------

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

.. code-block:: console

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.

.. _pip: https://pip.pypa.io
.. _Python installation guide: http://docs.python-guide.org/en/latest/starting/installation/

From sources
------------

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

You can either clone the public repository:

.. code-block:: console

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

Or download the `tarball`_:

.. code-block:: console

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

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

.. code-block:: console

$ python3 setup.py install

.. _Github repo: https://github.com/fhightower/robtex-python
.. _tarball: https://github.com/fhightower/robtex-python/tarball/master

Usage
=====

Via Python
----------

You can use Robtex Python in a script as follows:

.. code-block:: python

from robtex_python 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:

.. code-block:: shell

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.

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`fhightower/python-project-template`: https://github.com/fhightower/python-project-template


*******
History
*******

0.1.0 (2017-09-19)
==============================================

* First release on PyPI.

Keywords: robtex
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5

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

robtex_python-0.3.0.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

robtex_python-0.3.0-py2.py3-none-any.whl (8.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file robtex_python-0.3.0.tar.gz.

File metadata

  • Download URL: robtex_python-0.3.0.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for robtex_python-0.3.0.tar.gz
Algorithm Hash digest
SHA256 12b8fe650a3a5d65ff30cd095c4cc83f1f68b868aff67fef39573340139aa34e
MD5 26a7aef025ae876b1ba2f21350fd9a47
BLAKE2b-256 2a8eb3ff8f909d1e5171c3c138f18345b1f4655dc4b7963a7cca91c758ed6883

See more details on using hashes here.

File details

Details for the file robtex_python-0.3.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for robtex_python-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 28e924d2c51f6d67b27e357c997032a331d340c797574267a08b603d5b395131
MD5 7d0354aea2e72a7354a476f616ce63f2
BLAKE2b-256 b9bbf71da3854d6dd65320457d383854791212e63e05a9859d0edcf0878434fa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page