BSD Ports

devel/py-xasm 1.2.0 DragonFly

Python cross-version byte-code assembler

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
GPLv2
Categories
devel, python
Package size
34.5 KiB, 158.4 KiB installed

Description

The Python xasm module has routines for assembly, and has a command to assemble bytecode for several different versions of Python.

Here are some potential uses:

  • Make small changes to existing Python bytecode when you don't have source
  • Craft custom and efficient bytecode
  • Write an instruction-level optimizing compiler
  • Experiment with and learn about Python bytecode
  • Foil decompilers like uncompyle6 so that they can't disassemble bytecode (at least for now)

This support the same kinds of bytecode that xdis supports. This is pretty much all released bytecode, although we tend to lag behind the latest Python releases.

In the other systems

SystemPortVersion
DragonFlydevel/py-xasm1.2.0
FreeBSDdevel/py-xasm1.2.2_1
HardenedBSDdevel/py-xasm1.2.2_1
GhostBSDdevel/py-xasm1.2.2

Install

Binary package:

pkg install py311-xasm

From DPorts:

cd /usr/dports/devel/py-xasm && make install clean

Dependencies

Run dependencies 2

No port depends on this one.