Skip to main content

A Python Automation Library for Creating Agents

Project description

Maticlib Logo

A high-performance Python Automation Library for Creating Agents.

License: MIT Downloads PyPI version

Maticlib is a developer-centric library designed to build complex, stateful AI workflows with ease. Whether you need a simple chat completion or a multi-node parallel execution graph, Maticlib provides the primitives to build it with a focus on type safety and performance.


Documentation

For complete documentation, visit: https://arvohsoft.github.io/maticlib/


Installation

From PyPI

pip install maticlib

From Source (Local Development)

# Clone the repository
git clone https://github.com/arvohsoft/maticlib.git
cd maticlib

# Create and activate a virtual environment
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate

# Install in editable mode with dev dependencies
pip install -e ".[dev]"

Quick Start

from maticlib.llm.openai import OpenAIClient

# Initialize client (uses OPENAI_API_KEY from environment)
client = OpenAIClient()

# Make a request
response = client.complete("Explain quantum computing in one sentence.")
print(client.get_text_response(response))

Quick Start: Embeddings

from maticlib import OpenAIEmbeddings

# Initialize the client
embed_client = OpenAIEmbeddings()

# Embed single query
res = embed_client.embed_query("Core features of Maticlib")
print(res.vector[:5])      # List[float]
print(res.prompt_tokens)   # Total prompt tokens used

Project Leadership

Maticlib is developed and maintained by Arvoh Software.


License

This project is licensed under the MIT License - see the LICENSE file for details.

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

maticlib-0.1.9.tar.gz (38.4 kB view details)

Uploaded Source

Built Distribution

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

maticlib-0.1.9-py3-none-any.whl (46.1 kB view details)

Uploaded Python 3

File details

Details for the file maticlib-0.1.9.tar.gz.

File metadata

  • Download URL: maticlib-0.1.9.tar.gz
  • Upload date:
  • Size: 38.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for maticlib-0.1.9.tar.gz
Algorithm Hash digest
SHA256 bc287d22dc5c1c940cb7255eef2dd1503750a48e04a133980c06e8e82e18e270
MD5 a8ab08565176efe8c3099c06dd8d243c
BLAKE2b-256 c1673b1e37aa3bcaa1670cb27d1d81f5f739884edb4200f8070208dcea32936c

See more details on using hashes here.

File details

Details for the file maticlib-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: maticlib-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 46.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for maticlib-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 2175a5743da8d70319edbef986e262bd7190c6894f12b114e05a01ac976a604e
MD5 f69ca4401241d30fbcfe643d48230a32
BLAKE2b-256 d24d6a6c5d0339d550c466669eec81bfc42414dcc3250c92cdf5a7e190aa23d2

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