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.1

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

Total release size: 93.4 MB

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

Download URL yara_x-1.22.1-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
b010d2577036d2b970c793e75587362f1dcbf785251b3897ed15e84bc1357159
BLAKE2b-256 checksum
How to use checksums
f40d43dc211b78c6d4f9e0f223b7e3ea10d979d539a5f48d1e47dacb51cd3bba
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 26, 2026.

Transparency log

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

Download URL yara_x-1.22.1-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
ec2c2c05adea2f69ec5c9147c3d36b7d6e11932f89b4b1af8ecbed10978d243e
BLAKE2b-256 checksum
How to use checksums
f259481f47a743426974b86b8c99a75a521259cd7ea059d9877f254be67eb3f0
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 26, 2026.

Transparency log

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

Download URL yara_x-1.22.1-pp311-pypy311_pp80-manylinux_2_28_aarch64.whl
Size 10.0 MB
Tags Linux glibc 2.28+ ARM64 PyPy 3.11 PyPy 3.11 8.0
SHA-256 checksum
How to use checksums
0c91b629199a4aaf3393efcd0229056844968990303a8a32b7f53cb5bff0776b
BLAKE2b-256 checksum
How to use checksums
978fa83762ddcf51abfa51d15a61bd02cd85d0f6265a0bf930ad14aca0a28f69
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 26, 2026.

Transparency log

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

Download URL yara_x-1.22.1-pp311-pypy311_pp80-macosx_14_0_x86_64.whl
Size 9.4 MB
Tags PyPy 3.11 PyPy 3.11 8.0 macOS 14.0+ x86-64
SHA-256 checksum
How to use checksums
bfc2c8e152d0ee89af61efd615070cec8648d791cb50556344f207de0ec8cbf6
BLAKE2b-256 checksum
How to use checksums
278f88e22a91c4a9c252eff3d274bf7fa61d6347ca9cd7d91a67a935cef8c5f3
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 26, 2026.

Transparency log

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

Download URL yara_x-1.22.1-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
1bf476071c57ec0914b44e5be845c4cf77616d8bf39157d60150ac24f4ebe85b
BLAKE2b-256 checksum
How to use checksums
4f0d74ab24d5fcaef971f86736a833eca4732843c78f95063c9ca57a4410e8ca
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 26, 2026.

Transparency log

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

Download URL yara_x-1.22.1-cp39-abi3-win_amd64.whl
Size 8.8 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
55f26a02669cd0d6588aa03f7befbfb56d319cd23f340e0b8acdbac49261ca8f
BLAKE2b-256 checksum
How to use checksums
38987444d2f9119d023b8e44917717ea9b9c3cd70630be1064beec36d2ea4fa9
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 26, 2026.

Transparency log

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

Download URL yara_x-1.22.1-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
5dcb9db77784f0ad62460506923031673e0aadc525c1a5d25e53965a7f91587f
BLAKE2b-256 checksum
How to use checksums
d2bd6880135578a301a042ef647121e5a8806fcb59a0a7b15835a737734aa198
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 26, 2026.

Transparency log

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

Download URL yara_x-1.22.1-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
8ec9a6706d4acf83b8045c1630d5a058180e59da361d38098d8e86ce3e8576b0
BLAKE2b-256 checksum
How to use checksums
f989f4e4f4bbf11aaf6635f5aef49579cd9cddcdf02358f8f18c824aaa58ddff
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 26, 2026.

Transparency log

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

Download URL yara_x-1.22.1-cp39-abi3-macosx_14_0_x86_64.whl
Size 9.4 MB
Tags CPython 3.9 abi3 macOS 14.0+ x86-64
SHA-256 checksum
How to use checksums
247299622c7d6248585ba23b501ee6ea660e84b7f5dab1af377e2078961b73a4
BLAKE2b-256 checksum
How to use checksums
5d1811412efb9cd3ffb9ad874b0e8808838feff0de6054768fc304be062053ea
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 26, 2026.

Transparency log

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

Download URL yara_x-1.22.1-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
729c82ef1e74d75f4fd31608cacaab83eac822733e9f2c814449308b38d035ca
BLAKE2b-256 checksum
How to use checksums
ee76905d5207cf9b2c623629d6c44745d8ab9349245aeaa88ff6613d7210e6a8
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 26, 2026.

Transparency log

Security for yara-x 1.22.1

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.1-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 26, 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.1 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