This release is a pre-release and may not be stable for production use.
Blaxel Python SDK
Blaxel is a computing platform for AI agent builders, with all the services and infrastructure to build and deploy agents efficiently. This repository contains the Python SDK to create and manage resources on Blaxel.
Table of Contents
Installation
Install Blaxel SDK which lets you manage Blaxel resources.
## Using pip
pip install blaxel
## Using uv
uv pip install blaxel
## Using uv add
uv add blaxel
Authentication
The Blaxel SDK authenticates with your workspace using credentials from these sources, in priority order:
- When running on Blaxel, authentication is handled automatically
- Variables in your .env file (
BL_WORKSPACEandBL_API_KEY, or see this page for other authentication options). - Environment variables from your machine
- Configuration file created locally when you log in through Blaxel CLI (or deploy on Blaxel)
When developing locally, the recommended method is to just log in to your workspace with Blaxel CLI. This allows you to run Blaxel SDK functions that will automatically connect to your workspace without additional setup. When you deploy on Blaxel, this connection persists automatically.
When running Blaxel SDK from a remote server that is not Blaxel-hosted, we recommend using environment variables as described in the third option above.
Features
- Agents & MCP servers
- Sandboxes
- Use environment variables or secrets
Quickstart
Blaxel CLI gives you a quick way to create new applications: agents, MCP servers, jobs, etc - and deploy them to Blaxel.
Prerequisites:
- Node.js: v18 or later.
- Blaxel CLI: Make sure you have Blaxel CLI installed. If not, install it:
curl -fsSL \ https://raw.githubusercontent.com/blaxel-ai/toolkit/main/install.sh \ | BINDIR=/usr/local/bin sudo -E sh
- Blaxel login: Login to Blaxel:
bl login YOUR-WORKSPACE
bl create-agent-app myfolder
cd myfolder
bl deploy
Also available:
bl create-mcp-serverbl create-job
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for blaxel 0.1.22rc70
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| blaxel-0.1.22rc70.tar.gz | 205.7 kB | Without provenance | Details for blaxel-0.1.22rc70.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| blaxel-0.1.22rc70-py3-none-any.whl | Python 3 | none | any | Details for blaxel-0.1.22rc70-py3-none-any.whl |
Total release size: 580.8 kB
Release files / blaxel-0.1.22rc70.tar.gz
| Download URL | blaxel-0.1.22rc70.tar.gz |
|---|---|
| Size | 205.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2c4b7f693332aae8b9106bc4dde726befbc8f4a70a7b7dd6123b898f9e8c941b
|
|
BLAKE2b-256 checksum How to use checksums |
cebb8bb255dbbfe5e2475efff5935e61c01e9981c35c52505a5e7ed4d91a8fce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.7.13
|
Release files / blaxel-0.1.22rc70-py3-none-any.whl
| Download URL | blaxel-0.1.22rc70-py3-none-any.whl |
|---|---|
| Size | 375.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
71c399ae21039d01bd3f3f58a732e9a76728c962f2221baefd83f9017606921f
|
|
BLAKE2b-256 checksum How to use checksums |
a1eaf641f94c3b21cc76414b11165de8cabdb56293afcd0f4d3c043b79f98c71
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.7.13
|
Security for blaxel 0.1.22rc70
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.