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.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.0.1.tar.gz (13.2 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.0.1-py2.py3-none-any.whl (8.0 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for xn-twist-1.0.1.tar.gz
Algorithm Hash digest
SHA256 a496377f2ae8f54f48338410a04abf1178b3285df5881b472bbc576601bbf39b
MD5 d3e1f2c106358974d75523af15c0180a
BLAKE2b-256 cab9dc3ec09f41c00395671e6a9bab50b8b35b5634c09717be6e9645268438a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xn_twist-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2ab3cff0560894c6981a1e98a6a3117ac3d5be7059da9b331f214ddcfa08111f
MD5 efca0f158d8713f2b4c4623f30cc293d
BLAKE2b-256 af71265d03466cea5ca2b26e18207caf1dedb5b18e4ccfc70f0d446f6a21e8f0

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