Skip to content

Commit

Permalink
feat: implement the Formatter API for Python lib (#277)
Browse files Browse the repository at this point in the history
The Rust API includes support for source code formatting, add it to the Python API too.
  • Loading branch information
latonis authored Jan 13, 2025
1 parent cd61206 commit e760015
Show file tree
Hide file tree
Showing 7 changed files with 383 additions and 203 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ macros/target
site/node_modules
site/public
site/resources
__pycache__
83 changes: 42 additions & 41 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions py/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,17 @@ doc = false
crate-type = ["cdylib"]

[dependencies]
pyo3 = { version = "0.23.3", features = ["abi3", "abi3-py38", "extension-module"] }
pyo3 = { version = "0.23.3", features = [
"abi3",
"abi3-py38",
"extension-module",
] }
pyo3-file = "0.10.0"
serde_json = { workspace = true }

protobuf-json-mapping = { workspace = true }
yara-x = { workspace = true, features = ["parallel-compilation"] }
yara-x-fmt = { workspace = true }

[build-dependencies]
pyo3-build-config = "0.23.3"
pyo3-build-config = "0.23.3"
1 change: 1 addition & 0 deletions py/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ build-backend = "maturin"
[project]
name = "yara-x"
description = "Python bindings for YARA-X"
dynamic = ["version"]
requires-python = ">=3.9"
readme = "README.md"
keywords = ["pattern-matching", "cybersecurity", "forensics", "malware", "yara"]
Expand Down
Loading

0 comments on commit e760015

Please sign in to comment.