File: PKG-INFO

package info (click to toggle)
yara-python 3.5.0%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 152 kB
  • ctags: 97
  • sloc: ansic: 1,771; python: 133; sh: 10; makefile: 8
file content (72 lines) | stat: -rw-r--r-- 2,515 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
Metadata-Version: 1.0
Name: yara-python
Version: 3.5.0
Summary: Python interface for YARA
Home-page: https://github.com/VirusTotal/yara-python
Author: Victor M. Alvarez
Author-email: plusvic@gmail.com;vmalvarez@virustotal.com
License: Apache 2.0
Description: yara-python
        ===========
        
        With this library you can use `YARA <https://github.com/VirusTotal/yara>`_ from
        your Python programs. It covers all YARA's features, from compiling, saving
        and loading rules to scanning files, strings and processes.
        
        Here it goes a little example:
        
        .. code-block:: python
        
            >>> import yara
            >>> rule = yara.compile(source='rule foo: bar {strings: $a = "lmn" condition: $a}')
            >>> matches = rule.match(data='abcdefgjiklmnoprstuvwxyz')
            >>> print(matches)
            [foo]
            >>> print(matches[0].rule)
            foo
            >>> print(matches[0].tags)
            ['bar']
            >>> print(matches[0].strings)
            [(10L, '$a', 'lmn')]
        
        
        Installation
        ------------
        
        The easiest way of installing YARA is by using ``pip``:
        
        .. code-block:: bash
        
          $ pip install yara-python
        
        But you can also get the source from GitHub and compile it yourself:
        
        .. code-block:: bash
        
          $ git clone --recursive https://github.com/VirusTotal/yara-python
          $ cd yara-python
          $ python setup.py build
          $ sudo python setup.py install
        
        Notice the ``--recursive`` option used with ``git``. This is important because
        we need to download the ``yara`` subproject containing the source code for
        ``libyara`` (the core YARA library). It's also important to note that the two
        methods above link ``libyara`` statically into yara-python. If you want to link
        dynamically against a shared ``libyara`` library use:
        
        .. code-block:: bash
        
          $ sudo python setup.py install --dynamic-linking
        
        For this option to work you must build and install
        `YARA <https://github.com/VirusTotal/yara>`_ separately before installing
        ``yara-python``.
        
        
        Documentation
        -------------
        
        Find more information about how to use yara-python at
        http://yara.readthedocs.org/en/latest/yarapython.html.
        
Platform: UNKNOWN