mirror of
https://github.com/langchain-ai/langsmith-fetch.git
synced 2026-07-01 20:54:19 -04:00
208ce05031
Add --filename-pattern option to threads command with sensible default
behavior for saving multiple thread files.
Changes:
- Add --filename-pattern option with default {thread_id}.json
- Support {thread_id}, {index}, and {idx} placeholders
- Support format specifications like {index:03d}
- Add sanitize_filename() helper for cross-platform safe filenames
- Add regex validation to ensure pattern contains valid placeholders
- Add test coverage for custom filename patterns
- Update .gitignore to exclude example/ directory
The validation uses regex to handle both simple placeholders like
{index} and format specifications like {index:03d}, ensuring flexible
file naming for bulk thread operations.
45 lines
346 B
Plaintext
45 lines
346 B
Plaintext
# Python
|
|
__pycache__/
|
|
*.py[cod]
|
|
*$py.class
|
|
*.so
|
|
.Python
|
|
build/
|
|
develop-eggs/
|
|
dist/
|
|
downloads/
|
|
eggs/
|
|
.eggs/
|
|
lib/
|
|
lib64/
|
|
parts/
|
|
sdist/
|
|
var/
|
|
wheels/
|
|
*.egg-info/
|
|
.installed.cfg
|
|
*.egg
|
|
|
|
# Virtual environments
|
|
venv/
|
|
ENV/
|
|
env/
|
|
.venv
|
|
|
|
# IDEs
|
|
.vscode/
|
|
.idea/
|
|
*.swp
|
|
*.swo
|
|
*~
|
|
|
|
# OS
|
|
.DS_Store
|
|
Thumbs.db
|
|
|
|
# Config (local)
|
|
.env
|
|
|
|
# Example/testing code
|
|
example/
|