Aixen: AI x Engineering
An open-source toolkit for the rapid development of AI-powered applications.
Features:
- Clean Pipelines: Write AI pipelines as simple Python functions for readability and easy team collaboration.
- Declarative: Use type annotations and Pydantic for function signatures, enabling auto-checks and code generation.
- Tracking: Track and debug AI runs with statistics, performance evaluation, and API cost tracking. Gather fine-tuning samples.
- Learnable Functions: (Coming soon) Optimize functions with hyperparameters automatically.
Quick Start
Install using pip:
pip install aixen
Add API keys to the environment or .env file in your working directory:
OPENAI_API_KEY=sk-xxx
A simple pipeline:
import aixen as ai
from pydantic import BaseModel
@ai.fn
def add(a: int, b: int) -> int:
"""
Adds two numbers
"""
return a + b
@ai.chat_fn
def factorial(n: int) -> int:
"""
Calculates the factorial of a number
"""
class GreetingCard(BaseModel):
text: str
image_description: str
@ai.chat_fn
def greet(name: str) -> GreetingCard:
"""
Creates a greeting media message for a person specified by the user.
"""
with ai.Context() as context:
result = add(a=1, b=2)
fact5 = factorial(5)
card = greet(name="Lev")
print(f"Greeting card: {card}")
print(f"Used: ${context.usage_cost_usd}")
See the examples folder.
Community and Support
Join our community to stay updated and get support:
If you encounter any issues, please open an issue on GitHub.
Contributing
We welcome contributions from the community!
Release files for aixen 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aixen-0.1.1.tar.gz | 28.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aixen-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 51.5 kB
Release files / aixen-0.1.1.tar.gz
| Download URL | aixen-0.1.1.tar.gz |
|---|---|
| Size | 28.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
596883b5c42ceaad92fa461c75f433a4b954a168f174b3981c04d7ac87391a51
|
|
BLAKE2b-256 checksum How to use checksums |
d614fbb2c9c6752c3cf43e61866a2930b0c40d45ddf263b3f887fcb03bc9dbd5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / aixen-0.1.1-py3-none-any.whl
| Download URL | aixen-0.1.1-py3-none-any.whl |
|---|---|
| Size | 23.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a7df910b67064da4739120db17a7b625a0e8b035cc6ac18ad0e20162227c693b
|
|
BLAKE2b-256 checksum How to use checksums |
8266646319ffbb05b6098103164e8b6083d4fa8667fda2be7c21d2e88084652f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|