Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yara-python
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-depend
yara-python
Commits
d5ff7c9a
Commit
d5ff7c9a
authored
Sep 15, 2015
by
Victor M. Alvarez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
First draft for the README file
parent
b461d54b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
2 deletions
+41
-2
README.md
README.md
+0
-2
README.rst
README.rst
+41
-0
No files found.
README.md
deleted
100644 → 0
View file @
b461d54b
# yara-python
YARA library for Python
README.rst
0 → 100644
View file @
d5ff7c9a
yara-python
===========
This is library for using `YARA <https://github.com/plusvic/yara>`_ from Python.
You can use it to compile, save and load YARA rules, and to scan files or
data strings.
Here it goes a little example:
.. code-block:: bash
>>> import yara
>>> rule = yara.compile(source='rule foo {strings: $a = "lmn" condition: $a}')
>>> matches = rule.match(data='abcdefgjiklmnoprstuvwxyz')
>>> for m in matches:
... print m.rule
... print m.strings
...
foo
[(10L, '$a', 'lmn')]
Installation
------------
Before installing yara-python you'll need to install YARA, except if you plan
to link YARA statically into yara-python. If you don't have a specific reason
for using the static linking method, just install YARA as described in it
`documentation <http://yara.readthedocs.org/en/latest/gettingstarted.html#compiling-and-installing-yara`_
and then:
.. code-block:: bash
$ pip install yara-python
Documentation
-------------
You can find more information about how to use yara-python at
http://yara.readthedocs.org/en/latest/yarapython.html.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment