High-performance mapping function for mixed-type arrays
Project description
Overview
Purem is an advanced high-performance computational library optimized for vectorized mathematical operations. This project focuses on efficient execution of element-wise transformations, including softmax, exp, and other mathematical functions, leveraging highly optimized assembly code for modern architectures.
Key Features
Purem is a blazing-fast AI math engine that turns your Python formulas into native-speed vectorized execution. Achieve up to 80× faster performance on CPU/GPU/TPU — no rewrites, no dependencies, just speed. Designed for ML researchers, scientific computing, and production-grade workloads that can’t afford to wait.
—
🔧 Installation
Install the Python wrapper via pip:
pip install purem
📦 Note: Installation is quick, but purem must be initialized with a license before use. Setup takes less than a minute – we’re ready when you are: https://worktif.com/#start
—
🚀 Quickstart
Import and Initialize:
from purem import purem purem.configure(license_key='your-license-key') # Auto-downloads and configures backend
Alternatively, if you already have the backend .so file:
from purem import purem purem.softmax([...]) # Initialized from local ./lib/libpurem.so
—
📁 Local Library Structure
If the backend .so is already downloaded manually, place it here:
your_project/ ├── main.py ├── lib/ │ └── libpurem.so
—
🔐 License-Based Activation
To automatically download and configure the backend library:
Call purem.configure(license_key='<your-license-key>')
The system will download the .so file to ./lib/
All functions will become available instantly after initialization
Without a valid license key:
No .so will be downloaded
The library won’t work unless you provide the .so manually
—
🧠 Available Functions
After initialization, you can call:
from purem import purem purem.softmax([...]) ...
Full function list: https://worktif.com/docs/basic-usage
—
📦 Packaging Notes
This package does not bundle the .so file. You are required to:
Use a license key to download it dynamically
Alternatively, place it manually into ./lib/ folder before calling init()
—
🧪 Benchmark Tutorial
Visit the Benchmark Tutorial: https://worktif.com/#benchmarks
How Purem compares to NumPy, PyTorch and Numba
How it reaches low-level performance via native execution
Why it’s faster than traditional Python-based computation
—
📧 Distribution and Licensing
We do not provide direct download links for the backend. All users must either:
Use their license key to install
Or receive .so file from verified sources
For access, contact us or visit: https://worktif.com/documents/terms-of-service
—
📚 Full Example
import numpy as np
from purem import purem
# Automatic setup using license key
try:
purem.configure(license_key='<your-license-key>')
except Exception as e:
print(f"Setup failed: {e}")
data = np.array([1.0, 2.0, 3.0], dtype=float)
output = purem.softmax(data)
print(output)
—
🧠 Why Purem?
🔥 High level performance with zero Python overhead
🧪 Built-in benchmarking and scientific accuracy
🧩 Easy plug-and-play design
🔐 Secure and license-aware system
—
🛠 Advanced Usage & API Docs
Coming soon…
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file purem-2.1.0.tar.gz.
File metadata
- Download URL: purem-2.1.0.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a05757285e3906aa4a41872cd52aec10d09768765efae7784a2644792e5273c8
|
|
| MD5 |
8418941009df161d83edf575ee9826cd
|
|
| BLAKE2b-256 |
03e5c5fb052597c2610506d614a9f674e2a7806143d0548cc56f01cb9e7c9337
|
File details
Details for the file purem-2.1.0-py3-none-any.whl.
File metadata
- Download URL: purem-2.1.0-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34133394f9f15c944d8dc160d0aa01887a9034c2df53181659b016803c280c09
|
|
| MD5 |
fab53ba2a66eee3de959f70133f3dda6
|
|
| BLAKE2b-256 |
68018b305b26e6e3b119879d37ac553c00615b31b226f760dcc7315ec4fb89ce
|