bpf-asm-0.1.2
توضیحات
Python BPF Assembler
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | bpf-asm-0.1.2 |
| نام | bpf-asm |
| نسخه کتابخانه | 0.1.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Segev Finer |
| ایمیل نویسنده | segev208@gmail.com |
| آدرس صفحه اصلی | https://github.com/segevfiner/pybpf_asm |
| آدرس اینترنتی | https://pypi.org/project/bpf-asm/ |
| مجوز | GPL-2.0-only |
pybpf_asm
=========
.. image:: https://img.shields.io/pypi/v/bpf_asm.svg
:target: https://pypi.org/project/bpf_asm/
:alt: PyPI
.. image:: https://github.com/segevfiner/pybpf_asm/actions/workflows/build-and-test.yml/badge.svg
:target: https://github.com/segevfiner/pybpf_asm/actions/workflows/build-and-test.yml
:alt: Build & Test
.. image:: https://github.com/segevfiner/pybpf_asm/actions/workflows/docs.yml/badge.svg
:target: https://segevfiner.github.io/pybpf_asm/
:alt: Docs
Python BPF Assembler.
Based on the BPF assembler in Linux sources.
Installations
-------------
Wheels are available. To build from source you need a relatively recent Flex & Bison. (On Windows
you can use winflexbison, on macOS, and sometimes on Linux, you can install them from homebrew).
Usage
-----
.. code-block:: python
import bpf_asm
ASM = """\
ldh [12]
jeq #0x800, accept, drop
accept:
ret #65536
drop:
ret #0
"""
print(bpf_asm.assemble(ASM))
Or use the ``pybpf_asm`` script. See ``pybpf_asm --help`` for usage.
License
-------
GPL-2.0-only.
نیازمندی
| مقدار | نام |
|---|---|
| - | flake8 |
| - | pytest |
| ==5.* | sphinx |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl bpf-asm-0.1.2:
pip install bpf-asm-0.1.2.whl
نصب پکیج tar.gz bpf-asm-0.1.2:
pip install bpf-asm-0.1.2.tar.gz