coz_bytecode
bytecode is a Python module to generate and modify bytecode.
bytecode project homepage at GitHub (code, bugs)
Download latest bytecode release at the Python Cheeseshop (PyPI)
This is a fork of https://github.com/vstinner/bytecode
It will be removed from Pypi once the original is deployed there.
Install bytecode: python3 -m pip install coz_bytecode. It requires Python 3.4 or newer.
Example executing print('Hello World!'):
from bytecode import Instr, Bytecode
bytecode = Bytecode([Instr("LOAD_NAME", 'print'),
Instr("LOAD_CONST", 'Hello World!'),
Instr("CALL_FUNCTION", 1),
Instr("POP_TOP"),
Instr("LOAD_CONST", None),
Instr("RETURN_VALUE")])
code = bytecode.to_code()
exec(code)
Metadata
Release files for coz-bytecode 0.5.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 | |
|---|---|---|---|
| coz_bytecode-0.5.1.tar.gz | 49.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| coz_bytecode-0.5.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 89.1 kB
Release files / coz_bytecode-0.5.1.tar.gz
| Download URL | coz_bytecode-0.5.1.tar.gz |
|---|---|
| Size | 49.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d1ac2488ce793bbd4b48a9dd1fa981dcb1cc984b375d0250b6efd4ca1a278244
|
|
BLAKE2b-256 checksum How to use checksums |
13f38f552174fee1e26fed209f68d738885f31b83c727390e5b6827faa9f4827
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / coz_bytecode-0.5.1-py3-none-any.whl
| Download URL | coz_bytecode-0.5.1-py3-none-any.whl |
|---|---|
| Size | 39.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
36a944a9c9d340f7fdc9d04a0cdf8580cf9ddfc471db9e631145824934584cb2
|
|
BLAKE2b-256 checksum How to use checksums |
7e9672132b21d49ef06bd927ffd3c8bb352fa404f32c7a08ca4cad05ded9d1ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |