semvec/pypi-packages huggingface dataset:
int3 0.0.2
Compiler for position-independent assembly programs
Requires Python: >=3.13
Keywords: assembly, llvm, compiler

# int3

## Synopsis

`int3` is a Python toolkit for writing low-level, position-independent code featuring the following...

A high-level command-line interface for common assembly tasks:

```sh
$ echo -n "int3" | int3 assemble -a x86_64 | int3 format
b"\xcc"
```

A Python interface for writing your own position-independent programs with automatic bad byte avoidance ([`examples/linux/hello_world.py`](examples/linux/hello_world.py)):

```python
import sys

from int3 import Compiler

cc = Compiler.from_str("linux/x86_64", bad_bytes=b"\n\r")

with cc.def_func.main():
    num_written = cc.sys_write(fd=1, buf=b"Hello, world\n")
    cc.sys_exit(num_written)

sys.stdout.buffer.write(cc.compile())
```

Support for disassembling them:

```sh
$ python3 examples/linux/hello_world.py | python3 -m int3 disassemble | tail -10
0x0078: inc edx
0x007a: inc edx
0x007c: inc edx
0x007e: inc edx
0x0080: mov rax, rdi
0x0083: syscall
0x0085: mov rdi, rax
0x0088: mov eax, 0x3c
0x008d: syscall
0x008f: ret
```

And executing them:

```sh
$ python3 examples/linux/hello_world.py | python3 -m int3 execute ; echo $?
Hello, world
13
```

## Installation

int3 is tested on the latest major version of CPython. You can get the latest release from PyPI with:

```sh
pip install int3
```

## Features

* Write position-independent assembly code in a higher-level Python interface
* Builtin support for cross-compiling to various architectures
* Mutate generated machine code to remove bad bytes
* Command-line interface for common formatting and exploratory reversing tasks

## License & Usage

`int3` is intended for educational use. `int3`'s unique code is released under the [GNU LGPLv3](https://choosealicense.com/licenses/lgpl-3.0), as per the [`LICENSE.txt`](LICENSE.txt) file in the root of this repository. Code belonging to other open source projects is licensed under the respective licenses of those projects.
toupie 0.1.0
A Tiny Python Kernel
Requires Python: >=3.11

Toupie
================================================================================

🗣️ Pronunciation: too-PEE. 🇫🇷 French word for "spinning top".

![Toupie](https://unsplash.com/photos/LiLPRqxWI9I/download?ixid=M3wxMjA3fDB8MXxzZWFyY2h8NHx8c3Bpbm5pbmclMjB0b3B8ZW58MHx8fHwxNzU1NTI1MTgzfDA&force=true&w=900)

<!--
Photo by <a href="https://unsplash.com/@ashamplifies?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash">Ash Amplifies</a> on <a href="https://unsplash.com/photos/gold-pyramid-on-brown-wooden-table-LiLPRqxWI9I?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash">Unsplash</a>
-->      


Getting Started
--------------------------------------------------------------------------------

Get [uv] and spin a toupie server with

```bash
uvx --from git+https://github.com/boisgera/toupie toupie
```

If you need additional Python dependencies, use the `--with` option.
For example:

```bash
uvx --with raylib --from git+https://github.com/boisgera/toupie toupie
```

> [!CAUTION]  
> Anyone who gets access to your spinning toupie server can do [a lot of damage]!

### Sanity check

To check that your toupie server works as expected, do

```bash
curl -X POST http://127.0.0.1:8000 -H "Content-Type: text/plain" --data-binary "print(1+1)"
```

or if `curl` is not available

```bash
uvx --with requests python -c "import requests; r = requests.post(url='http://127.0.0.1:8000', headers={'Content-Type': 'text/plain'}, data='print(1+1)'); print(r.text)"
```

In any case, you should see `2` should printed in your terminal.


[uv]: https://docs.astral.sh/uv/
[a lot of damage]: https://www.youtube.com/watch?v=JZLAHGfznlY
python-mmaare 0.3
Python-moduulimääretoteutus
Requires Python: >=3.8

python-mmaare
==============

Python-moduulimääretoteutus

Yhteensopivuus: Python 3.6+

Käyttö:
------

```python
# moduuli.py
import mmaare

@mmaare
def nimi(moduuli):
  return moduuli.__name__.split('.')[-1]
```