pyyasm
Python x86/x64 wrapper for Yasm
Using pyyasm
import pyyasm
# some inline asm which does nothing just to show how the library works
# __asm as to be bytes.
__asm = b"""
use32
org 0
pushfd
pushad
popad
popfd
"""
bytecode = pyyasm.assemble(__asm)
print(bytecode)
> b'f\x9cf`faf\x9d'
Running tests
python setup.py test
Changelog
0.0.1: initial release (07/05/2017)
Metadata
Release files for pyyasm 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyyasm-0.0.1.tar.gz | 506.7 kB | Details |
Release files / pyyasm-0.0.1.tar.gz
| Download URL | pyyasm-0.0.1.tar.gz |
|---|---|
| Size | 506.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
de10fe3885213e55f7ad784ab3f1dd3d74d550e6ccd7d710b7241d3d1864fbee
|
|
BLAKE2b-256 checksum How to use checksums |
24363069ee808f0b2870b6376459c18380a5584d11f05720b92db3aaefe26821
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |