Skip to main content
# 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 Distribution

sfn_blueprint-0.3.11.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

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

sfn_blueprint-0.3.11-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file sfn_blueprint-0.3.11.tar.gz.

File metadata

  • Download URL: sfn_blueprint-0.3.11.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for sfn_blueprint-0.3.11.tar.gz
Algorithm Hash digest
SHA256 93603485749a3e573ee7bb0cc1fd7dbf149504fb2ab8ad7d23773c15d1f313be
MD5 333c1a29e885f4f300adbab5b946b83b
BLAKE2b-256 da085139491e56f8ef8db4d8982d8f5c7faca84765a1e7759b3d151adaacd61f

See more details on using hashes here.

File details

Details for the file sfn_blueprint-0.3.11-py3-none-any.whl.

File metadata

  • Download URL: sfn_blueprint-0.3.11-py3-none-any.whl
  • Upload date:
  • Size: 18.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for sfn_blueprint-0.3.11-py3-none-any.whl
Algorithm Hash digest
SHA256 0057e4942b83b6fbb144dbd2a9971d38855c60361940a943e61e8e7468de4735
MD5 47a72603f353e9cae96f1567a7896f46
BLAKE2b-256 c63aa8bf1d71f3f4fb20e93cd934d2769a5e1d8b5f93f05726a9f104e39cc365

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 Sentry Error logging StatusPage Status page