Skip to main content

coz_bytecode

Latest release on the Python Cheeseshop (PyPI) Build status of bytecode on Travis CI Code coverage of bytecode on codecov.io

bytecode is a Python module to generate and modify bytecode.

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)

Source distribution for coz-bytecode 0.5.1
File Size Uploaded
coz_bytecode-0.5.1.tar.gz 49.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for coz-bytecode 0.5.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.5.1 This release

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