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 | |
|---|---|---|---|
| Simple | ✅ | ✅ | ✅ |
| Structured Output | ✅ | ✅ | ✅ |
| Function Calls | ✅ | ✅ | ✅ |
| Web Search | ✅ | ✅ | ✅ |
| Image Input | ✅ | ✅ | ✅ |
| MCP | ✅ | - | - |
Philosophy
- We are built from the ground up around the Batch API.
- Switch between sync (sequential) and batch in just 1 line of code.
- Control flow is best represented with Python, not data structures.
- An agent is more than just one LLM.
Documentation
Please refer to the documentation.
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a0fabd2001697240eae7473aeb89e404f1285d58796330469f45a89be167d96
|
|
| MD5 |
48a34a0aae94f94719b878738818108d
|
|
| BLAKE2b-256 |
d2fdfa00d9f1d926afed92b4cce1cc6e6905b58f6efec8a6b7dc73526851497e
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a03856e66992c374707c629f04534317f1c1c579484b251e8bb51303e0b4bcd1
|
|
| MD5 |
a5d32bf396b563f0c9836328ebc622ec
|
|
| BLAKE2b-256 |
1b470f46a9545ba41487b102424d4373e297be215c00bf7ad4c225cf60f4bbad
|