PYRAM - Lightweight PyPy Wrapper

PYRAM is a lightweight tool to run Python programs very quickly, especially on servers. It uses PyPy 3.10 (a fast Python implementation), removes unnecessary extras, and comes with Django, PyMySQL, and NumPy ready to use. By running the PyPy interpreter directly from your computer's memory (RAM), PYRAM can deliver faster startup and execution in some scenarios.

Features

How to Install

  1. Make sure you have permission to use sudo on your computer.
  2. Download the latest version from the releases page.
  3. Open your terminal and install it with this command:
    sudo dpkg -i PyRAM[version].deb

How to Use

After installing, you can run your Python script like this:

sudo pyram /path/to/your/script.py

Tip: Using sudo lets PYRAM use your computer's memory for the best speed.

Adding More Libraries

If you need extra Python libraries, download the .whl file for PyPy 3.10 from PyPI and install it like this:

sudo pyram -m pip install /path/to/your_library.whl --target /path/to/your/script

Then, just import the library in your script and run it as before:

sudo pyram /path/to/your/script/main.py

For more help and advanced tips, check the documentation.

Benchmarks

Recent benchmarks show that PYRAM matches or slightly outperforms PyPy3 in most scenarios, especially right after boot or on slower disks. For CPU-heavy tasks, both are much faster than standard Python 3. In typical use with SSDs, performance is nearly identical to PyPy3.
See detailed benchmark results and charts.

PYRAM Fibonacci Benchmark PyPy3 Fibonacci Benchmark Python3 Fibonacci Benchmark

License

PYRAM is free to use under the MIT License. You can read the full license in the LICENSE file.

Contributing

Want to help make PYRAM better? You can contribute by forking the project and sending a pull request on GitHub.