{ "info": { "author": "Victor M. Alvarez", "author_email": "plusvic@gmail.com;vmalvarez@virustotal.com", "bugtrack_url": null, "classifiers": [], "description": "yara-python\n===========\n\nWith this library you can use `YARA `_ from\nyour Python programs. It covers all YARA's features, from compiling, saving\nand loading rules to scanning files, strings and processes.\n\nHere it goes a little example:\n\n.. code-block:: python\n\n >>> import yara\n >>> rule = yara.compile(source='rule foo: bar {strings: $a = \"lmn\" condition: $a}')\n >>> matches = rule.match(data='abcdefgjiklmnoprstuvwxyz')\n >>> print(matches)\n [foo]\n >>> print(matches[0].rule)\n foo\n >>> print(matches[0].tags)\n ['bar']\n >>> print(matches[0].strings)\n [(10L, '$a', 'lmn')]\n\n\nInstallation\n------------\n\nThe easiest way of installing YARA is by using ``pip``:\n\n.. code-block:: bash\n\n $ pip install yara-python\n\nBut you can also get the source from GitHub and compile it yourself:\n\n.. code-block:: bash\n\n $ git clone --recursive https://github.com/VirusTotal/yara-python\n $ cd yara-python\n $ python setup.py build\n $ sudo python setup.py install\n\nNotice the ``--recursive`` option used with ``git``. This is important because\nwe need to download the ``yara`` subproject containing the source code for\n``libyara`` (the core YARA library). It's also important to note that the two\nmethods above link ``libyara`` statically into yara-python. If you want to link\ndynamically against a shared ``libyara`` library use:\n\n.. code-block:: bash\n\n $ sudo python setup.py install --dynamic-linking\n\nFor this option to work you must build and install\n`YARA `_ separately before installing\n``yara-python``.\n\n\nDocumentation\n-------------\n\nFind more information about how to use yara-python at\nhttp://yara.readthedocs.org/en/latest/yarapython.html.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/VirusTotal/yara-python", "keywords": null, "license": "Apache 2.0", "maintainer": null, "maintainer_email": null, "name": "yara-python2", "package_url": "https://pypi.org/project/yara-python2/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/yara-python2/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/VirusTotal/yara-python" }, "release_url": "https://pypi.org/project/yara-python2/3.5.0/", "requires_dist": null, "requires_python": null, "summary": "Python interface for YARA", "version": "3.5.0" }, "last_serial": 2825844, "releases": { "3.5.0": [] }, "urls": [] }