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

Requirements
------------

-  `Python <https://www.python.org>`__ 2.7 or 3.4+
-  ANTLR grammar runtime (4.7 or newer):

   -  `antlr4-python2-runtime <https://pypi.org/project/antlr4-python2-runtime>`__
      (Python 2.7)
   -  `antlr4-python3-runtime <https://pypi.org/project/antlr4-python3-runtime>`__
      (Python 3)

-  `six <https://pypi.org/project/six>`__
-  `typing <https://pypi.org/project/typing>`__ (Python 3.4)

Install Package
---------------

Using `pip <https://pip.pypa.io>`__ is highly recommended:

.. code:: bash

    $ pip install stix2-patterns

For more information about installing Python packages, see the `Python
Packaging User Guide
<https://packaging.python.org/tutorials/installing-packages/>`__.
