# sfn_blueprint Framework
sfn_blueprint is a modular framework for rapid building of intelligent agents
to handle various data-related tasks, such as category identification,
code execution, feature suggestion generation, data analysis, and more.
These agents integrate with OpenAI to perform
their tasks and can be extended with custom logic.
## Features
- **Base Agent**: A base class for all agents to extend.
- **Category Identification**: Automatically categorize datasets based on column names.
- **Data Cleaning Suggestions**: Generate suggestions for cleaning datasets.
- **Code Execution**: Dynamically execute code on data frames.
- **Feature Suggestion**: Get feature engineering suggestions based on your dataset.
- **Data Analysis**: Analyze datasets and return detailed statistics.
## Installation
You can install the sfn_blueprint framework via pip:
```bash
pip install sfn_blueprint
Usage
1. Environment Setup
To use the agents, you need an API key from OpenAI. Store the key in a .env file in your project root directory:
OPENAI_API_KEY=your_openai_api_key_here
Ensure the python-dotenv package is installed to load environment variables.
2. Using Agents
Example : Loading Data with SFNDataLoader
from sfn_blueprint import SFNDataLoader, Task
task = Task(description="Load CSV data", data=open("data.csv", "rb"))
data_loader = SFNDataLoader()
# Load data into a pandas DataFrame
dataframe = data_loader.execute_task(task)
print(dataframe.head()) # Display the first few rows
Contact
For any queries or issues, please contact the maintainer at rajesh@stepfunction.ai.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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 sfn_blueprint-0.3.4-py3-none-any.whl.
File metadata
- Download URL: sfn_blueprint-0.3.4-py3-none-any.whl
- Upload date:
- Size: 17.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3feb3c4375b112b32e3e612d61936cb18c9b51a438a76498cd98c3bfd9f2b6bf
|
|
| MD5 |
31bbb1e4191133ccd821c70da5fa3c13
|
|
| BLAKE2b-256 |
d6216c8249dc5997574cac849a2457031013b6de557173f1bd54f6fef6e80eef
|