https://github.com/combatopera/pyrbo
Python JIT compiler for near-native performance of low-level arithmetic
https://github.com/combatopera/pyrbo
Last synced: about 1 year ago
JSON representation
Python JIT compiler for near-native performance of low-level arithmetic
- Host: GitHub
- URL: https://github.com/combatopera/pyrbo
- Owner: combatopera
- License: gpl-3.0
- Created: 2016-12-04T14:00:20.000Z (over 9 years ago)
- Default Branch: trunk
- Last Pushed: 2025-04-16T19:02:38.000Z (about 1 year ago)
- Last Synced: 2025-04-17T04:08:54.021Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 279 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# pyrbo
Python JIT compiler for near-native performance of low-level arithmetic.
## Install
These are generic installation instructions.
### To use, disposably
Install the current release from PyPI to a virtual environment:
```
python3 -m venv venvname
venvname/bin/pip install -U pip
venvname/bin/pip install pyrbo
. venvname/bin/activate
```
### To use, permanently
```
pip3 install --break-system-packages --user pyrbo
```
See `~/.local/bin` for executables.
### To develop
First install venvpool to get the `motivate` command:
```
pip3 install --break-system-packages --user venvpool
```
Get codebase and install executables:
```
git clone git@github.com:combatopera/pyrbo.git
motivate pyrbo
```
Requirements will be satisfied just in time, using sibling projects with matching .egg-info if any.
## API
### pyrbo
### pyrbo.leaf
###### turbo
```python
def turbo(**kwargs)
```
Accelerate the decorated function or method using Cython.
The `types` kwarg is a dict of local variables (including params) to their numpy type.
(If `types` would be the only kwarg, its contents may be provided to `turbo` directly.)
### pyrbo.model