Skip to main content

A library for building LLM pipelines with built-in support for batch processing and multi-provider compatibility. Beta prerelease - use at your own risk.

Project description

ParaLLeM

ParaLLeM is a library for orchestrating agentic LLM workflows.

  • Batch API support
  • Concise, readable, and expressive
  • Developer-centered and lightweight
  • Parallelize thousands of requests, while keeping reproducible traces for each run
  • Save 50% on all token costs

Find out more about our mission — parallem.org

Quickstart

pip install parallem
from dotenv import load_dotenv
import parallem as pllm

load_dotenv()  # Put OPENAI_API_KEY in the .env file

with pllm.resume_directory(
    ".pllm/simplest",
    provider="openai",
    strategy="sync",
    dashboard=True,
) as orch:
    with orch.agent() as agt:
        resp = agt.ask_llm("Please name a power of 3.")
        agt.print(resp.final_answer)

To switch to the Batch API, simply change strategy="sync" to strategy="batch".

Compatibility

Sync/Batch OpenAI Anthropic Google
Simple
Structured Output
Function Calls
Web Search
Image Input
MCP - -

Philosophy

  1. We are built from the ground up around the Batch API.
  2. Switch between sync (sequential) and batch in just 1 line of code.
  3. Control flow is best represented with Python, not data structures.
  4. An agent is more than just one LLM.

Documentation

Please refer to the documentation.

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

parallem-0.0.2.tar.gz (103.3 kB view details)

Uploaded Source

Built Distribution

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

parallem-0.0.2-py3-none-any.whl (128.1 kB view details)

Uploaded Python 3

File details

Details for the file parallem-0.0.2.tar.gz.

File metadata

  • Download URL: parallem-0.0.2.tar.gz
  • Upload date:
  • Size: 103.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.5

File hashes

Hashes for parallem-0.0.2.tar.gz
Algorithm Hash digest
SHA256 2a0fabd2001697240eae7473aeb89e404f1285d58796330469f45a89be167d96
MD5 48a34a0aae94f94719b878738818108d
BLAKE2b-256 d2fdfa00d9f1d926afed92b4cce1cc6e6905b58f6efec8a6b7dc73526851497e

See more details on using hashes here.

File details

Details for the file parallem-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: parallem-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 128.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.5

File hashes

Hashes for parallem-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a03856e66992c374707c629f04534317f1c1c579484b251e8bb51303e0b4bcd1
MD5 a5d32bf396b563f0c9836328ebc622ec
BLAKE2b-256 1b470f46a9545ba41487b102424d4373e297be215c00bf7ad4c225cf60f4bbad

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