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 429× 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

🔐 License-Based Activation

The system will download the licensed native Purem engine:

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

  2. The system will download the native Purem engine

  3. All functions will become available instantly after initialization

Without a valid license key:

  • No native Purem engine will be downloaded

🧠 Available Functions

After initialization, you can call:

from purem import purem

# Transforms a list of numbers into a probability distribution.
# Each output value is between 0 and 1, and all outputs sum to 1.
# Commonly used in classification tasks to interpret scores as probabilities.
purem.softmax([...])
...

Full function list: https://worktif.com/docs/basic-usage

📦 Packaging Notes

This package does not bundle the native Purem engine. You are required to:

  • Use a license key to download it dynamically

🧪 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

The native Purem engine is distributed exclusively through license-based activation. All users must:

  • Use their license key to install

For access, contact us or visit: https://worktif.com/documents/terms-of-service

📚 Full Example

# Import required modules
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.1.1.tar.gz (11.5 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.1.1-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: purem-2.1.1.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.0

File hashes

Hashes for purem-2.1.1.tar.gz
Algorithm Hash digest
SHA256 781db465f29e48dc40ceb409415b40a1009f7fcecf9672b027ff8e86cc676322
MD5 d99bbbef5cc4be6ccee7527f06a86d2f
BLAKE2b-256 569a4e73f6db75d13c000c9b14f5d2e549ec96ea149c6ef29e0fe5a486a4752c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: purem-2.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.7 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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 31dee1232a21aed0d4daff85a344ae16f09e5c763e0f5e6fa3dc4ae3283dc5c0
MD5 c8ff3b34cf36f9e57e685452903137c1
BLAKE2b-256 688e1adcd5b70d1107fd884b257c99a2b826345cf27165e0cfb4f12707bcfa05

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