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.
sudo on your computer.sudo dpkg -i PyRAM[version].deb
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.
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.
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 is free to use under the MIT License. You can read the full license in the LICENSE file.
Want to help make PYRAM better? You can contribute by forking the project and sending a pull request on GitHub.