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.2.4.tar.gz (11.1 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.2.4-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sfn_blueprint-0.2.4.tar.gz
  • Upload date:
  • Size: 11.1 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.2.4.tar.gz
Algorithm Hash digest
SHA256 5bf6905e522c125264976927ed9814d13bb5e11b6539896ec9ff7073d32719ae
MD5 84701aeb9101cfd01a50a8b68d88b211
BLAKE2b-256 28371c444e243faa725f5de211d16725d3f2c88aaae81f75014bda8bb710c08c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sfn_blueprint-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 15.6 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.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 054c4683bb750d72a256b25de71ce6a95b26536dd1c6868b98ad3db412330bfa
MD5 20da35fa484b2a7aafad591a55c2f604
BLAKE2b-256 4af854268069d8aba8a2b7e0f389398f3bc5fda7c29b20b4dd0f34e9db8ca1ed

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