skillfed

pycnite

Python bytecode utilities

pycnite v2024.7.31 945.6K downloads/30d#4,668 on PyPI
Permissive license Apache 2.0 DORMANT released

What it is and what it does

Pycnite is a pure Python library for parsing and working with Python's compiled bytecode format (.pyc files). It provides versioned parsers that can read bytecode from Python 3.8 through 3.12, allowing tools to analyze or manipulate bytecode from different target Python versions without needing that version installed as the host runtime. This is useful for build tools, decompilers, bytecode analyzers, and other development utilities that need to work with compiled Python code.

The package has no external runtime dependencies, making it lightweight to integrate. It is classified as alpha software and has not been updated in 744 days, so while it covers the supported target versions, you should verify whether it remains actively maintained and whether its API is stable for your use case.

Use it for:

  • Build tools that need to inspect or validate bytecode from multiple Python versions without installing each version
  • Bytecode decompilers or reverse-engineering tools that must handle .pyc files from different Python releases
  • Static analysis tools that analyze compiled Python code across version boundaries
  • Development utilities that need to parse or transform bytecode as part of a larger workflow

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Pycnite provides pure Python parsers for Python bytecode (.pyc files) that work across different Python versions, letting tools analyze or manipulate bytecode from target versions 3.8 through 3.12 regardless of the host Python version.

Yes, if you need to parse Python bytecode across versions 3.8–3.12 and can tolerate alpha-stage software with no recent updates. The permissive license and zero dependencies make it low-friction to add. However, verify that the package's API and feature set match your bytecode analysis needs, and be prepared to maintain a fork or find alternatives if the dormant status becomes problematic.

Install

pycnite on PyPI

pip

pip install pycnite

uv

uv add pycnite

poetry

poetry add pycnite

Installing pycnite

Before you install

Installation is straightforward with no runtime dependencies. The package is in alpha status and has been dormant for 744 days since its last release, so it may not receive active maintenance or bug fixes.

License in practice

Licensed under Apache 2.0 (permissive), so you can use, modify, and distribute it freely in commercial and open-source projects without copyleft obligations.

Quickstart

pip install pycnite

import pycnite
# Parse a .pyc file from a specific Python version
# (exact API details would be found in package documentation)

Requires Python 3.8 or later; designed to parse bytecode from target versions 3.8, 3.9, 3.10, 3.11, and 3.12.

Verify before relying

  • Specific API surface and usage patterns (no documentation URL provided in fact sheet)
  • Whether the package is actively maintained despite dormant status, or if it is abandoned
  • Real-world adoption and reliability for production bytecode analysis workflows

Package facts

License Apache 2.0 (permissive)
Python support supports the current Python release (>=3.8)
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance dormant — 744 days since the last release
First released
Downloads 945,597/month — #4,668 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pycnite-2024.7.31-py3-none-any.whl

Development Status :: 3 - AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonTopic :: Software Development

Tags

python bytecode parserpyc file format readercross-version bytecode analysispython bytecode utilitiespyc format parserbytecode inspection toolsversion-agnostic bytecode
bytecode-analysiscross-version-compatibility

More Software Development packages