Skip to main content

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

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

import yara_x

rules = yara_x.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.

Metadata

Release files for yara-x 1.21.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for yara-x 1.21.0
File
yara_x-1.21.0-pp311-pypy311_pp73-win_amd64.whl PyPy 3.11 PyPy 3.11 7.3 Windows x86-64 Details
yara_x-1.21.0-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl PyPy 3.11 PyPy 3.11 7.3 Linux glibc 2.28+ x86-64 Details
yara_x-1.21.0-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl PyPy 3.11 PyPy 3.11 7.3 Linux glibc 2.28+ ARM64 Details
yara_x-1.21.0-pp311-pypy311_pp73-macosx_14_0_x86_64.whl PyPy 3.11 PyPy 3.11 7.3 macOS 14.0+ x86-64 Details
yara_x-1.21.0-pp311-pypy311_pp73-macosx_14_0_arm64.whl PyPy 3.11 PyPy 3.11 7.3 macOS 14.0+ ARM64 Details
yara_x-1.21.0-cp38-abi3-win_amd64.whl CPython 3.8 abi3 Windows x86-64 Details
yara_x-1.21.0-cp38-abi3-manylinux_2_28_x86_64.whl CPython 3.8 abi3 Linux glibc 2.28+ x86-64 Details
yara_x-1.21.0-cp38-abi3-manylinux_2_28_aarch64.whl CPython 3.8 abi3 Linux glibc 2.28+ ARM64 Details
yara_x-1.21.0-cp38-abi3-macosx_14_0_x86_64.whl CPython 3.8 abi3 macOS 14.0+ x86-64 Details
yara_x-1.21.0-cp38-abi3-macosx_14_0_arm64.whl CPython 3.8 abi3 macOS 14.0+ ARM64 Details

Total release size: 89.4 MB

Release files / yara_x-1.21.0-pp311-pypy311_pp73-win_amd64.whl

Download URL yara_x-1.21.0-pp311-pypy311_pp73-win_amd64.whl
Size 8.3 MB
Tags PyPy 3.11 PyPy 3.11 7.3 Windows x86-64
SHA-256 checksum
How to use checksums
c5a8bcce08ece1e57d116cac63e671fe88d28f0dff58ee1d1055ca611d0eb0a8
BLAKE2b-256 checksum
How to use checksums
35ae091d2f241a6359d7d916bba0d1e6c0e4e0996d1fffd4fe7a7e8be90c20e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.

Transparency log

Release files / yara_x-1.21.0-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl

Download URL yara_x-1.21.0-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl
Size 9.6 MB
Tags Linux glibc 2.28+ x86-64 PyPy 3.11 PyPy 3.11 7.3
SHA-256 checksum
How to use checksums
54222707bc9e0ee9fca7b6553e330b7885ba43d068d1ae560809724951f7c728
BLAKE2b-256 checksum
How to use checksums
0e9d737d4a6c365143b7926ca2bcf3bca035a15d63d058d90f2d220b50ac15bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.

Transparency log

Release files / yara_x-1.21.0-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl

Download URL yara_x-1.21.0-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl
Size 9.6 MB
Tags Linux glibc 2.28+ ARM64 PyPy 3.11 PyPy 3.11 7.3
SHA-256 checksum
How to use checksums
b863e93b7a01cbb7c192ce9582d2da562706d603ec7a58416a84940cde7540ac
BLAKE2b-256 checksum
How to use checksums
eade612b394eb8fac3fd8e3dff2ee49428908ee016a87d2e124a939468914794
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.

Transparency log

Release files / yara_x-1.21.0-pp311-pypy311_pp73-macosx_14_0_x86_64.whl

Download URL yara_x-1.21.0-pp311-pypy311_pp73-macosx_14_0_x86_64.whl
Size 9.0 MB
Tags PyPy 3.11 PyPy 3.11 7.3 macOS 14.0+ x86-64
SHA-256 checksum
How to use checksums
db8565ba7ec71746349ec92d2662a70d90cbc580a6623d633ae2468af432144c
BLAKE2b-256 checksum
How to use checksums
0d1f53c1b678ebf1e976ff7c6f092c2e29bbd3c9b03b4c8bc7b5b070643cfece
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.

Transparency log

Release files / yara_x-1.21.0-pp311-pypy311_pp73-macosx_14_0_arm64.whl

Download URL yara_x-1.21.0-pp311-pypy311_pp73-macosx_14_0_arm64.whl
Size 8.2 MB
Tags PyPy 3.11 PyPy 3.11 7.3 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
cc1ed7760521aa80ba5a4ae4703441e7146d88ad09733d751a3b6e277bf0ef69
BLAKE2b-256 checksum
How to use checksums
caac813b04dce76cb1afd02c943fd85446f51bef7c7462bc503f56076e787566
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.

Transparency log

Release files / yara_x-1.21.0-cp38-abi3-win_amd64.whl

Download URL yara_x-1.21.0-cp38-abi3-win_amd64.whl
Size 8.3 MB
Tags CPython 3.8 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
04be37c92bbbcba4065a4cf0f0029c0b0bf3e7c68f3c35b4cf523300e534cf58
BLAKE2b-256 checksum
How to use checksums
4c22335221abb841219214dfb01830053e0447d41d30cb2ce71052969ac4daf2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.

Transparency log

Release files / yara_x-1.21.0-cp38-abi3-manylinux_2_28_x86_64.whl

Download URL yara_x-1.21.0-cp38-abi3-manylinux_2_28_x86_64.whl
Size 9.6 MB
Tags CPython 3.8 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
33bc3665170e640752fed275a7ad6551079696f00d698c9433607dfc6bdd7493
BLAKE2b-256 checksum
How to use checksums
cf832e99d07da255a76706af32a1a3f6988d37ebedac315bc748d4d1b6ce2032
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.

Transparency log

Release files / yara_x-1.21.0-cp38-abi3-manylinux_2_28_aarch64.whl

Download URL yara_x-1.21.0-cp38-abi3-manylinux_2_28_aarch64.whl
Size 9.6 MB
Tags CPython 3.8 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
9bd9961b44b47dd747d526e61c703a2a8170426d003e789e7724bc7862de6d56
BLAKE2b-256 checksum
How to use checksums
9c8e63adf06593aff53180c7246f6b35c22ff9729705d1d31dd2e8a35a2e4643
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.

Transparency log

Release files / yara_x-1.21.0-cp38-abi3-macosx_14_0_x86_64.whl

Download URL yara_x-1.21.0-cp38-abi3-macosx_14_0_x86_64.whl
Size 9.0 MB
Tags CPython 3.8 abi3 macOS 14.0+ x86-64
SHA-256 checksum
How to use checksums
1c6e15cf61500bc27960099872586d41f3cfdd8597e4bb8d2f0361b921b118d9
BLAKE2b-256 checksum
How to use checksums
6f6b362a34a3cfe186fb5a956d65c1f1c98fd14d8f8dfb322211c72c9bb6ab19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.

Transparency log

Release files / yara_x-1.21.0-cp38-abi3-macosx_14_0_arm64.whl

Download URL yara_x-1.21.0-cp38-abi3-macosx_14_0_arm64.whl
Size 8.2 MB
Tags CPython 3.8 abi3 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
24a739f492782335bb3b886cb2b6eaf008991f67b9e63e15b940af02aba233c0
BLAKE2b-256 checksum
How to use checksums
eaf3d5646eabcd9d3920a5bcf77de64077df7e88f245842a4ac555d12280a220
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.21.0 This release

10 release files

1.7.1

10 release files

1.7.0

10 release files

1.4.0

10 release files

1.2.1

10 release files

1.2.0

10 release files

1.1.0

10 release files

0.7.0

16 release files

0.6.0

17 release files

0.5.0

16 release files

0.4.0

17 release files

0.3.0

17 release files

0.2.1

17 release files

0.2.0

17 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page