Metadata-Version: 2.1
Name: bytecomp
Version: 1.0.0
Summary: Utilities to work with bytecode.
Home-page: https://github.com/dekrypted/bytecomp
Author: DeKrypt
Author-email: gregcoolkidd@gmail.com
Project-URL: Bug Tracker, https://github.com/dekrypted/bytecomp/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.5
Description-Content-Type: text/markdown

# bytecomp
Utilities for working with bytecode.

**Magic:**
```py
import bytecomp

bytecomp.MAGIC # Returns Magic
```

**Pyc Headers:**
```py
import bytecomp

bytecomp.HEADER # Returns .pyc Header
bytecomp.generate_header() # Also returns a .pyc header
```
**Compiling Bytecode:**
```py
import bytecomp

code_object = compile("""print('Hello!')""",'file','exec')
pyc = open('compiled.pyc','wb')
pyc.write(bytecomp.compile_object(code_object))
pyc.close()

# Above code generates a working .pyc file from a code object.
```
