--- id: bytecode version: "0.18.1" license: The MIT License (MIT) Copyright Contributors to the bytecode project. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files… (full text in the JSON record) license_treatment: permissive maintenance: active --- # bytecode — Python module to generate and modify bytecode License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install bytecode uv add bytecode poetry add bytecode ## Description ******** bytecode ******** .. image:: https://img.shields.io/pypi/v/bytecode.svg :alt: Latest release on the Python Cheeseshop (PyPI) :target: https://pypi.python.org/pypi/bytecode .. image:: https://github.com/MatthieuDartiailh/bytecode/workflows/Continuous%20Integration/badge.svg :target: https://github.com/MatthieuDartiailh/bytecode/actions :alt: Continuous integration .. image:: https://github.com/MatthieuDartiailh/bytecode/workflows/Documentation%20building/badge.svg :target: https://github.com/MatthieuDartiailh/bytecode/actions :alt: Documentation building .. image:: https://img.shields.io/codecov/c/github/MatthieuDartiailh/bytecode/master.svg :alt: Code coverage of bytecode on codecov.io :target: https://codecov.io/github/MatthieuDartiailh/bytecode .. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json :target: https://github.com/astral-sh/ruff :alt: Ruff ``bytecode`` is a Python module to generate and modify bytecode. * `bytecode project homepage at GitHub `_ (code, bugs) * `bytecode documentation... ## AI interpretation — verify before relying bytecode generates and modifies Python bytecode objects, allowing programmatic creation of executable code from low-level instruction sequences. Verdict: bytecode is a well-maintained, low-friction library for bytecode generation with permissive licensing and no known vulnerabilities. It is suitable for projects requiring programmatic code generation at the bytecode level, though adoption should account for its Python 3.11+ requirement. [View on SkillFed](https://skillfed.io/packages/bytecode) · [View on PyPI](https://pypi.org/project/bytecode/)