Skip to main content

yara-helper

A tool to parse Yara rules and help you edit Yara rules in your program

Demo

Load and dump single rule

>>> rule_text = """rule person
... {
...     meta:
...         name = "James"
...         age = 18
...         is_male = true
...     strings:
...         say1 = "Hi"
...         say2 = "Nice"
...     condition:
...         all of them
... }"""
>>> info = RuleInfo.load(rule_text)
>>> info.meta['name']
'"James"'
>>> info.strings['say1']
'"Hi"'
>>> info.meta['age'] = 22
>>> info.dump()
'rule person\n{\n    meta:\n        name = "James"\n        age = 22\n        is_male = true\n    strings:\n        say1 = "Hi"\n        say2 = "Nice"\n    condition:\n        all of them\n}'

Load and dump multiple rules

>>> RuleInfo.load_multiple(yara_text) # return List[RuleInfo]
>>> RuleInfo.dump_multiple(list_of_ruleinfo) # return List[str]

Release files for yara-helper 0.3.6

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

Source distribution (sdist)

Source distribution for yara-helper 0.3.6
File Size Uploaded
yara-helper-0.3.6.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for yara-helper 0.3.6
File Interpreter ABI Platform
yara_helper-0.3.6-py3-none-any.whl Python 3 none any Details

Total release size: 8.5 kB

Release files / yara-helper-0.3.6.tar.gz

Download URL yara-helper-0.3.6.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f5240ed1ea36a325af6223aec814159370e92427cb2bbf05dd5e84babd654e3d
BLAKE2b-256 checksum
How to use checksums
ba435247c9fcb22dde32d1cb2651bc20eb8c9ed21eb45bcfa6084fb0b6258f84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.4

Release files / yara_helper-0.3.6-py3-none-any.whl

Download URL yara_helper-0.3.6-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e9f4c772ddff6de684ce09676b502cad89a5ca73839cf491179763bd16985a5e
BLAKE2b-256 checksum
How to use checksums
3fe33ec38014e55b18bdf9ee2693d2218c3b2a7c4bb977404935eb37d7c05d8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.4

Release history Release notifications | RSS feed

This release

0.3.6 This release

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 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