Skip to main content
===============================
XN Twist
===============================

.. image:: https://img.shields.io/pypi/v/xn-twist.svg
:target: https://pypi.python.org/pypi/xn-twist

.. image:: https://travis-ci.org/xn-twist/xn-twist.svg?branch=master
:target: https://travis-ci.org/xn-twist/xn-twist

.. image:: https://codecov.io/gh/xn-twist/xn-twist/branch/master/graph/badge.svg
:target: https://codecov.io/gh/xn-twist/xn-twist

.. image:: https://api.codacy.com/project/badge/Grade/166ee00207f5497da6316e35f4262bc0
:alt: Codacy Badge
:target: https://www.codacy.com/app/fhightower/xn-twist

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

.. image:: https://pyup.io/repos/github/xn-twist/xn-twist/shield.svg
:target: https://pyup.io/repos/github/xn-twist/xn-twist/
:alt: Updates

*Find Unicode domain squats*

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

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

To install XN Twist, run this command in your terminal:

.. code-block:: console

pip install xn-twist

This is the preferred method to install XN Twist, 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 XN Twist can be downloaded from the `Github repo`_.

You can either clone the public repository:

.. code-block:: console

$ git clone git://github.com/xn-twist/xn-twist

Or download the `tarball`_:

.. code-block:: console

$ curl -OL https://github.com/xn-twist/xn-twist/tarball/master

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

.. code-block:: console

$ python setup.py install

.. _Github repo: https://github.com/xn-twist/xn-twist
.. _tarball: https://github.com/xn-twist/xn-twist/tarball/master

Usage
=====

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

You can use XN-Twist in a script as follows:

.. code-block:: python

from xn_twist import XNTwist
xn = XNTwist()
domain_twist_results = xn.twist("example.com")

Via Command Line
----------------

You can use XN-Twist from the command line as follows:

.. code-block:: shell

xntwist example.com

The usage for the command line form of XN-Twist is as follows:

.. code-block::

XN Twist.

Usage:
xntwist <domain> [--dns] [--output=OUTPUT]
xntwist (-h | --help)
xntwist --version

Options:
-h --help Show this screen.
--version Show version.
-d --dns Query DNS for each domain.
-o=OUTPUT --output=OUTPUT Specify an output file.

Run Tests
=========

After cloning the repo, you can test it using the following commands from the base directory of this repository:

.. code-block:: shell

make test

Data, Data, Everywhere...
==========================

This project relies on a dataset. More details on how to access the dataset and even how to help us build it coming soon!

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


Download files

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

Source Distribution

xn-twist-1.2.0.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

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

xn_twist-1.2.0-py2.py3-none-any.whl (8.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file xn-twist-1.2.0.tar.gz.

File metadata

  • Download URL: xn-twist-1.2.0.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for xn-twist-1.2.0.tar.gz
Algorithm Hash digest
SHA256 f931884d59dfecda19ffb9d3dd51c46a92f086b00cdf8893c7bc3295c1fa5a9b
MD5 9294f029bef8d7308d67d2f4656df420
BLAKE2b-256 e1e0afeb58cf76d44e5cb4a8c10d50c2de20f2958d929baad975f1dfc22e9e96

See more details on using hashes here.

File details

Details for the file xn_twist-1.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for xn_twist-1.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 752988f6881d4cd038019ffeab6a537909f08c4cde69e7d68fe2ba0d069ca460
MD5 98786f28393cb7c6274201ccdac2f109
BLAKE2b-256 41613f00307b0558b0be240c7840ed332aa7e043ea4fade381ed4f4ffc9bc71e

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 Sentry Error logging StatusPage Status page