Skip to main content

Python bindings for YARA-X

Project description

PyPI - Version PyPI - License Documentation Downloads Downloads per week GitHub Repo stars

The official Python library for YARA-X. Supports Python 3.8+ in Linux, MacOS and Windows.

import ezyara

rules = ezyara.compile('''
  rule test { 
    strings: 
      $a = "foobar" 
    condition: 
      $a
  }''')

results = rules.scan(b"foobar")

assert results.matching_rules[0].identifier == "test"
assert results.matching_rules[0].patterns[0].identifier == "$a"
assert results.matching_rules[0].patterns[0].matches[0].offset == 0
assert results.matching_rules[0].patterns[0].matches[0].length == 6

For more information about how to use this library, please check the documentation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ezyara-0.4.1.tar.gz (493.2 kB view details)

Uploaded Source

Built Distribution

ezyara-0.4.1-cp38-abi3-macosx_11_0_arm64.whl (6.2 MB view details)

Uploaded CPython 3.8+ macOS 11.0+ ARM64

File details

Details for the file ezyara-0.4.1.tar.gz.

File metadata

  • Download URL: ezyara-0.4.1.tar.gz
  • Upload date:
  • Size: 493.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.6.0

File hashes

Hashes for ezyara-0.4.1.tar.gz
Algorithm Hash digest
SHA256 50557f45b860121953c03e705f13148982906839b5462a49119d77d9e81f9eac
MD5 d82ab89a06e05b65def3bbcfffad348f
BLAKE2b-256 8f4b7591de196075d1879f6e57bb2ed37c9f0fff575e6dccc37c95fd6150bb74

See more details on using hashes here.

File details

Details for the file ezyara-0.4.1-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ezyara-0.4.1-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8ff194a15d55743a134b5b3fdfc2cddc2735b77be2e06b9cc57f527b836e3d36
MD5 dd86b7a8417bcc0a7bdf9290b9a08534
BLAKE2b-256 e03d10aee84eeba5bae34d15ae355f27a832de59b230c499a1374060315183b0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page