Below is a task I gave to Claude (https://claude.ai/). It took about 10 minutes to generate client applications in both Python and R.
Prompt:
Here is the task for you. There is a Perfomalist API described below. I need a program (in Python or R) that calls the API to identify the three most significant change points in date-stamped data.
API description: https://www.trutechdev.com/2021/11/the-change-points-detection-perfomalapi.html
Claude’s response is shown below.
__________________________________________________________________________
6:52 PM
I'll create a Python
program to call the Perfomalist API and find the 3 most significant change
points. Let me start by reading the relevant skills for this task.
Check available skills
for API work and data handling
Now I'll create a
Python program that calls the Perfomalist API to find change points:
Create Python script
to call Perfomalist API and find top 3 change points
Now let me create an R
version as well:
Create R script to
call Perfomalist API and find top 3 change points
Now let me create a
README with usage instructions:
Create README with
usage instructions
Now let me create a
sample data file you can use for testing:
Create sample CSV data
file for testing
Perfect! Now let me
move all the files to the outputs directory:
Ran a command, read a
file
Perfect! I've created
complete programs in both Python and R to
call the Perfomalist API and find the 3 most significant change points. Here's
what you get:
📦 Files Provided
- perfomalist_changepoints.py - Full-featured Python
implementation
- perfomalist_changepoints.R - Complete R implementation
- README.md - Comprehensive usage guide
- sample_data.csv - Test data to get started
🚀 Quick Start
Python:
bash
pip install requests
python
perfomalist_changepoints.py
R:
r
install.packages(c("httr",
"readr"))
Rscript
perfomalist_changepoints.R
Both programs will run
with sample data out-of-the-box!
✨ Key Features
- ✅
Configurable API parameters (sValue, eValue, BaseLineLength)
- ✅
Automatic CSV formatting with parameters
- ✅
Flexible response parsing
- ✅
Intelligent change point ranking by significance
- ✅
Easy to use with your own CSV data
- ✅
Can be used as standalone scripts or imported as modules/libraries
To use your own data,
just modify the script to load your CSV file instead of the sample data. The
README has detailed instructions!
README file is published in the next post: https://www.trutechdev.com/2026/02/claude-ai-has-built-perfomalist.html
No comments:
Post a Comment