
python-repl
by gptme
python-replは、機械学習とAI開発のためのスキルです。モデル構築から運用まで、包括的で効率的なAI開発ワークフローをサポートします。
ユースケース
CLIツール作成
コマンドラインツールの開発を効率化。python-replを活用。
AIモデル統合
LLMや機械学習モデルをアプリに統合。
プロンプト最適化
より良い結果を得るためのプロンプト改善。
データ分析自動化
AIを活用したデータ分析と洞察の抽出。
SKILL.md
name: python-repl description: Interactive Python REPL automation with common helpers and best practices
Python REPL Skill
Enhances Python REPL workflows with bundled utility functions for data analysis, debugging, and performance profiling.
Overview
This skill bundles Python REPL helpers, common imports, and execution patterns for efficient Python development in gptme.
Bundled Scripts
Helper Functions (python_helpers.py)
This skill includes bundled utility functions for common Python tasks:
- Data inspection (inspect_df, describe_object)
- Quick plotting (quick_plot)
- Performance profiling (time_function)
- Common imports setup (setup_common_imports)
Usage Patterns
Data Analysis
When working with data, automatically import common libraries and set up display options:
import numpy as np
import pandas as pd
pd.set_option('display.max_rows', 100)
Debugging
Use bundled helpers for debugging:
from python_helpers import inspect_df, describe_object
inspect_df(df) # Quick dataframe overview
describe_object(obj) # Object introspection
Dependencies
Required packages are listed in requirements.txt:
- ipython: Interactive Python shell
- numpy: Numerical computing
- pandas: Data manipulation
Best Practices
- Use helpers: Leverage bundled helper functions instead of reimplementing
- Import once: Common imports are handled by pre-execute hook
- Profile performance: Use time_function for performance-sensitive code
Examples
Quick Data Analysis
# Helpers auto-import pandas, numpy
df = pd.read_csv('data.csv')
inspect_df(df) # Show overview
Performance Profiling
from python_helpers import time_function
@time_function
def slow_operation():
# Your code here
pass
Related
- Tool: ipython
スコア
総合スコア
リポジトリの品質指標に基づく評価
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 1000以上
3ヶ月以内に更新
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
レビュー
レビュー機能は近日公開予定です
