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.22.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.22.0
File Actions
yara_x-1.22.0-pp311-pypy311_pp80-win_amd64.whl PyPy 3.11 PyPy 3.11 8.0 Windows x86-64 Details for yara_x-1.22.0-pp311-pypy311_pp80-win_amd64.whl
yara_x-1.22.0-pp311-pypy311_pp80-manylinux_2_28_x86_64.whl PyPy 3.11 PyPy 3.11 8.0 Linux glibc 2.28+ x86-64 Details for yara_x-1.22.0-pp311-pypy311_pp80-manylinux_2_28_x86_64.whl
yara_x-1.22.0-pp311-pypy311_pp80-manylinux_2_28_aarch64.whl PyPy 3.11 PyPy 3.11 8.0 Linux glibc 2.28+ ARM64 Details for yara_x-1.22.0-pp311-pypy311_pp80-manylinux_2_28_aarch64.whl
yara_x-1.22.0-pp311-pypy311_pp80-macosx_14_0_x86_64.whl PyPy 3.11 PyPy 3.11 8.0 macOS 14.0+ x86-64 Details for yara_x-1.22.0-pp311-pypy311_pp80-macosx_14_0_x86_64.whl
yara_x-1.22.0-pp311-pypy311_pp80-macosx_14_0_arm64.whl PyPy 3.11 PyPy 3.11 8.0 macOS 14.0+ ARM64 Details for yara_x-1.22.0-pp311-pypy311_pp80-macosx_14_0_arm64.whl
yara_x-1.22.0-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details for yara_x-1.22.0-cp39-abi3-win_amd64.whl
yara_x-1.22.0-cp39-abi3-manylinux_2_28_x86_64.whl CPython 3.9 abi3 Linux glibc 2.28+ x86-64 Details for yara_x-1.22.0-cp39-abi3-manylinux_2_28_x86_64.whl
yara_x-1.22.0-cp39-abi3-manylinux_2_28_aarch64.whl CPython 3.9 abi3 Linux glibc 2.28+ ARM64 Details for yara_x-1.22.0-cp39-abi3-manylinux_2_28_aarch64.whl
yara_x-1.22.0-cp39-abi3-macosx_14_0_x86_64.whl CPython 3.9 abi3 macOS 14.0+ x86-64 Details for yara_x-1.22.0-cp39-abi3-macosx_14_0_x86_64.whl
yara_x-1.22.0-cp39-abi3-macosx_14_0_arm64.whl CPython 3.9 abi3 macOS 14.0+ ARM64 Details for yara_x-1.22.0-cp39-abi3-macosx_14_0_arm64.whl

Total release size: 93.0 MB

Release files / yara_x-1.22.0-pp311-pypy311_pp80-win_amd64.whl

Download URL yara_x-1.22.0-pp311-pypy311_pp80-win_amd64.whl
Size 8.5 MB
Tags PyPy 3.11 PyPy 3.11 8.0 Windows x86-64
SHA-256 checksum
How to use checksums
96fb99c4581eaf452bc0d38294b443946b833798e2fa126053d6cfd287868627
BLAKE2b-256 checksum
How to use checksums
266a8382111661394ace7692bac28ddb1f429f5fcebfc8789d02fa2d966091f3
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 Oct 20, 2026.

Transparency log

Release files / yara_x-1.22.0-pp311-pypy311_pp80-manylinux_2_28_x86_64.whl

Download URL yara_x-1.22.0-pp311-pypy311_pp80-manylinux_2_28_x86_64.whl
Size 10.1 MB
Tags Linux glibc 2.28+ x86-64 PyPy 3.11 PyPy 3.11 8.0
SHA-256 checksum
How to use checksums
27ca2eba9b5922b6b0abf372b8ed0d06621b7df6c738b80ba505e113c6393350
BLAKE2b-256 checksum
How to use checksums
26d464132100947fc2d0fd1dbb631e08118667eab88a21017aac3f18bd92ca7f
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 Oct 20, 2026.

Transparency log

Release files / yara_x-1.22.0-pp311-pypy311_pp80-manylinux_2_28_aarch64.whl

Download URL yara_x-1.22.0-pp311-pypy311_pp80-manylinux_2_28_aarch64.whl
Size 9.9 MB
Tags Linux glibc 2.28+ ARM64 PyPy 3.11 PyPy 3.11 8.0
SHA-256 checksum
How to use checksums
f34301eaedfa467ab87da8d121916a666caa1c8f2a1d6fa71e1e4f1cc58d4733
BLAKE2b-256 checksum
How to use checksums
d169f18603efe4d75fa728182100db46a80feb507708893389819b83e1a26f6b
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 Oct 20, 2026.

Transparency log

Release files / yara_x-1.22.0-pp311-pypy311_pp80-macosx_14_0_x86_64.whl

Download URL yara_x-1.22.0-pp311-pypy311_pp80-macosx_14_0_x86_64.whl
Size 9.3 MB
Tags PyPy 3.11 PyPy 3.11 8.0 macOS 14.0+ x86-64
SHA-256 checksum
How to use checksums
89057972c4fec99e42761d264a74d84caaebe0dab99ec49dfe86bfc89a35afd3
BLAKE2b-256 checksum
How to use checksums
a85c495d56a680de7618b8426b3c1732a41695febebb27d40be97823027a4cd7
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 Oct 20, 2026.

Transparency log

Release files / yara_x-1.22.0-pp311-pypy311_pp80-macosx_14_0_arm64.whl

Download URL yara_x-1.22.0-pp311-pypy311_pp80-macosx_14_0_arm64.whl
Size 8.6 MB
Tags PyPy 3.11 PyPy 3.11 8.0 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
d2b6ec0dee512c1b035b8b9ddd6b0fe5c78c9ec22e2ee237926edce1782d5d56
BLAKE2b-256 checksum
How to use checksums
b25c164081becb6210f68fed75da9c5777afbb34b0252ae2bfdfa5a6ee55fd6f
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 Oct 20, 2026.

Transparency log

Release files / yara_x-1.22.0-cp39-abi3-win_amd64.whl

Download URL yara_x-1.22.0-cp39-abi3-win_amd64.whl
Size 8.8 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
a0e889ad5377634d1ce759c8823fe1784519733de44da683da02eb0a8771b1a9
BLAKE2b-256 checksum
How to use checksums
e83e53b5ba3fd391e2977204d00a95f5696f32815be6495fb64283f5f0d741c4
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 Oct 20, 2026.

Transparency log

Release files / yara_x-1.22.0-cp39-abi3-manylinux_2_28_x86_64.whl

Download URL yara_x-1.22.0-cp39-abi3-manylinux_2_28_x86_64.whl
Size 10.1 MB
Tags CPython 3.9 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
a9a9a4b213b980d6b05231ea5b835c03d40e304d99ed05d18ac5e7a801de3c81
BLAKE2b-256 checksum
How to use checksums
3beef8beabcc6ca804749c5dd91b943a81d75314ebb12ef471ad3eff7631c5f6
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 Oct 20, 2026.

Transparency log

Release files / yara_x-1.22.0-cp39-abi3-manylinux_2_28_aarch64.whl

Download URL yara_x-1.22.0-cp39-abi3-manylinux_2_28_aarch64.whl
Size 10.0 MB
Tags CPython 3.9 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
066e86533b7143ee96bb80e36b683eb25dad8bc4c064603802d3a8cbbd97f03e
BLAKE2b-256 checksum
How to use checksums
bb71bfc58b9d8afbc2e25a1fd0ce72a69c48fc9cb554238cde33c89787d84ff2
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 Oct 20, 2026.

Transparency log

Release files / yara_x-1.22.0-cp39-abi3-macosx_14_0_x86_64.whl

Download URL yara_x-1.22.0-cp39-abi3-macosx_14_0_x86_64.whl
Size 9.3 MB
Tags CPython 3.9 abi3 macOS 14.0+ x86-64
SHA-256 checksum
How to use checksums
1472591e7ec4a07be0e63383235fc2e8908b6d7d510b98d210068ffde30bbe10
BLAKE2b-256 checksum
How to use checksums
69190365004e652a44dfccaa2fc73916b6c8e5ac0e64bbae1c0dfc301c5bdd63
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 Oct 20, 2026.

Transparency log

Release files / yara_x-1.22.0-cp39-abi3-macosx_14_0_arm64.whl

Download URL yara_x-1.22.0-cp39-abi3-macosx_14_0_arm64.whl
Size 8.6 MB
Tags CPython 3.9 abi3 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
eb6d4812e73614643f3c10a2592692b544ca7db43eacb2c8c649a1c9658382c3
BLAKE2b-256 checksum
How to use checksums
0fbb22b5cb8b57d60a258196ff46392be59f9261c7dd33a237960059de5c9d55
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 Oct 20, 2026.

Transparency log

Security for yara-x 1.22.0

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.

Full provenance

All 10 files in this release have been uploaded with provenance metadata.

Select from 10 files

Attestation for yara_x-1.22.0-pp311-pypy311_pp80-win_amd64.whl

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 Oct 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.22.0 This release

10 release files Full provenance

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