Skip to main content

High-performance mapping function for mixed-type arrays

Project description

PyPI version License: BUSL-1.1

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

  1. 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:

  1. Call purem.configure(license_key='<your-license-key>')

  2. The system will download the .so file to ./lib/

  3. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

purem-2.0.3.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

purem-2.0.3-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file purem-2.0.3.tar.gz.

File metadata

  • Download URL: purem-2.0.3.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

Hashes for purem-2.0.3.tar.gz
Algorithm Hash digest
SHA256 b90b7ef03473a0f6e3c5b7a4d79593410e1de03a8bc4903da704d99e8132ae34
MD5 5daa3e2277c2eabfb9a8c25248505670
BLAKE2b-256 2b832a72a2d076a5a5a7aa76fd39bea017ee4175a8e653cc0c13d532c58c4200

See more details on using hashes here.

File details

Details for the file purem-2.0.3-py3-none-any.whl.

File metadata

  • Download URL: purem-2.0.3-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

Hashes for purem-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 26eb03c76859994734137e3615c6416ed3694ca4fb5bcb3d43414d34b2a7c142
MD5 6ec310414a71a0b5c8d1c188b0024911
BLAKE2b-256 f759f618d13abbc5990948838a88c2d8c6fbe16a72d6ce3e43bbcd914e69716c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page