pltr-cli 0.11.0__tar.gz → 0.13.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pltr_cli-0.13.0/.github/workflows/claude-code-review.yml +56 -0
- pltr_cli-0.13.0/.github/workflows/claude.yml +49 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/.gitignore +7 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/.pre-commit-config.yaml +1 -1
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/PKG-INFO +55 -4
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/README.md +52 -2
- pltr_cli-0.13.0/claude_skill/README.md +51 -0
- pltr_cli-0.13.0/claude_skill/SKILL.md +188 -0
- pltr_cli-0.13.0/claude_skill/reference/admin-commands.md +311 -0
- pltr_cli-0.13.0/claude_skill/reference/aip-agents-commands.md +209 -0
- pltr_cli-0.13.0/claude_skill/reference/connectivity-commands.md +227 -0
- pltr_cli-0.13.0/claude_skill/reference/dataset-commands.md +154 -0
- pltr_cli-0.13.0/claude_skill/reference/filesystem-commands.md +398 -0
- pltr_cli-0.13.0/claude_skill/reference/functions-commands.md +279 -0
- pltr_cli-0.13.0/claude_skill/reference/language-models-commands.md +235 -0
- pltr_cli-0.13.0/claude_skill/reference/mediasets-commands.md +222 -0
- pltr_cli-0.13.0/claude_skill/reference/models-commands.md +232 -0
- pltr_cli-0.13.0/claude_skill/reference/ontology-commands.md +171 -0
- pltr_cli-0.13.0/claude_skill/reference/orchestration-commands.md +221 -0
- pltr_cli-0.13.0/claude_skill/reference/quick-start.md +136 -0
- pltr_cli-0.13.0/claude_skill/reference/sql-commands.md +156 -0
- pltr_cli-0.13.0/claude_skill/reference/streams-commands.md +268 -0
- pltr_cli-0.13.0/claude_skill/workflows/data-analysis.md +215 -0
- pltr_cli-0.13.0/claude_skill/workflows/data-pipeline.md +242 -0
- pltr_cli-0.13.0/claude_skill/workflows/permission-management.md +254 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/docs/examples/gallery.md +8 -0
- pltr_cli-0.13.0/docs/migration/v2-pagination.md +478 -0
- pltr_cli-0.13.0/docs/pagination.md +494 -0
- pltr_cli-0.13.0/docs/user-guide/claude-skill.md +141 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/docs/user-guide/commands.md +86 -112
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/docs/user-guide/troubleshooting.md +15 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/docs/user-guide/workflows.md +8 -18
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/pyproject.toml +3 -2
- pltr_cli-0.13.0/src/pltr/__init__.py +1 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/cli.py +40 -0
- pltr_cli-0.13.0/src/pltr/commands/admin.py +1084 -0
- pltr_cli-0.13.0/src/pltr/commands/aip_agents.py +333 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/commands/connectivity.py +309 -1
- pltr_cli-0.13.0/src/pltr/commands/cp.py +103 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/commands/dataset.py +104 -4
- pltr_cli-0.13.0/src/pltr/commands/functions.py +503 -0
- pltr_cli-0.13.0/src/pltr/commands/language_models.py +515 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/commands/mediasets.py +176 -0
- pltr_cli-0.13.0/src/pltr/commands/models.py +362 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/commands/ontology.py +44 -13
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/commands/orchestration.py +167 -11
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/commands/project.py +231 -22
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/commands/resource.py +416 -17
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/commands/space.py +25 -303
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/commands/sql.py +54 -7
- pltr_cli-0.13.0/src/pltr/commands/streams.py +616 -0
- pltr_cli-0.13.0/src/pltr/commands/third_party_applications.py +82 -0
- pltr_cli-0.13.0/src/pltr/services/admin.py +642 -0
- pltr_cli-0.13.0/src/pltr/services/aip_agents.py +147 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/services/base.py +104 -1
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/services/connectivity.py +139 -0
- pltr_cli-0.13.0/src/pltr/services/copy.py +391 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/services/dataset.py +77 -4
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/services/folder.py +6 -1
- pltr_cli-0.13.0/src/pltr/services/functions.py +223 -0
- pltr_cli-0.13.0/src/pltr/services/language_models.py +281 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/services/mediasets.py +144 -9
- pltr_cli-0.13.0/src/pltr/services/models.py +179 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/services/ontology.py +48 -1
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/services/orchestration.py +133 -1
- pltr_cli-0.13.0/src/pltr/services/project.py +406 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/services/resource.py +229 -60
- pltr_cli-0.13.0/src/pltr/services/space.py +203 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/services/sql.py +44 -20
- pltr_cli-0.13.0/src/pltr/services/streams.py +290 -0
- pltr_cli-0.13.0/src/pltr/services/third_party_applications.py +53 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/utils/formatting.py +195 -1
- pltr_cli-0.13.0/src/pltr/utils/pagination.py +325 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/test_commands/test_admin.py +423 -19
- pltr_cli-0.13.0/tests/test_commands/test_aip_agents.py +458 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/test_commands/test_connectivity.py +400 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/test_commands/test_dataset.py +154 -0
- pltr_cli-0.13.0/tests/test_commands/test_functions.py +629 -0
- pltr_cli-0.13.0/tests/test_commands/test_language_models.py +639 -0
- pltr_cli-0.13.0/tests/test_commands/test_mediasets.py +520 -0
- pltr_cli-0.13.0/tests/test_commands/test_models.py +404 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/test_commands/test_ontology.py +16 -8
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/test_commands/test_orchestration.py +165 -5
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/test_commands/test_sql.py +9 -4
- pltr_cli-0.13.0/tests/test_commands/test_streams.py +579 -0
- pltr_cli-0.13.0/tests/test_commands/test_third_party_applications.py +255 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/test_services/test_admin.py +377 -15
- pltr_cli-0.13.0/tests/test_services/test_aip_agents.py +204 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/test_services/test_connectivity.py +208 -0
- pltr_cli-0.13.0/tests/test_services/test_copy.py +160 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/test_services/test_dataset.py +69 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/test_services/test_folder.py +7 -1
- pltr_cli-0.13.0/tests/test_services/test_functions.py +345 -0
- pltr_cli-0.13.0/tests/test_services/test_language_models.py +381 -0
- pltr_cli-0.13.0/tests/test_services/test_mediasets.py +371 -0
- pltr_cli-0.13.0/tests/test_services/test_models.py +274 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/test_services/test_orchestration.py +133 -0
- pltr_cli-0.13.0/tests/test_services/test_pagination_integration.py +167 -0
- pltr_cli-0.13.0/tests/test_services/test_project.py +495 -0
- pltr_cli-0.13.0/tests/test_services/test_resource.py +594 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/test_services/test_space.py +60 -154
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/test_services/test_sql.py +10 -4
- pltr_cli-0.13.0/tests/test_services/test_streams.py +376 -0
- pltr_cli-0.13.0/tests/test_utils/test_pagination.py +321 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/uv.lock +339 -9
- pltr_cli-0.11.0/children.csv +0 -3
- pltr_cli-0.11.0/folder_info.json +0 -9
- pltr_cli-0.11.0/folders.json +0 -11
- pltr_cli-0.11.0/src/pltr/__init__.py +0 -1
- pltr_cli-0.11.0/src/pltr/commands/admin.py +0 -530
- pltr_cli-0.11.0/src/pltr/services/admin.py +0 -314
- pltr_cli-0.11.0/src/pltr/services/project.py +0 -232
- pltr_cli-0.11.0/src/pltr/services/space.py +0 -354
- pltr_cli-0.11.0/tests/test_services/test_project.py +0 -283
- pltr_cli-0.11.0/tests/test_services/test_resource.py +0 -339
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/.github/workflows/ci.yml +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/.github/workflows/publish.yml +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/.github/workflows/test-publish.yml +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/CHANGELOG.md +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/CLAUDE.md +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/LICENSE +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/RELEASE.md +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/docs/README.md +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/docs/api/wrapper.md +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/docs/examples/csv-upload.md +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/docs/features/dataset-transactions.md +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/docs/user-guide/aliases.md +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/docs/user-guide/authentication.md +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/docs/user-guide/quick-start.md +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/mypy.ini +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/scripts/release.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/__main__.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/auth/__init__.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/auth/base.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/auth/manager.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/auth/oauth.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/auth/storage.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/auth/token.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/commands/__init__.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/commands/alias.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/commands/completion.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/commands/configure.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/commands/folder.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/commands/resource_role.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/commands/shell.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/commands/verify.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/config/__init__.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/config/aliases.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/config/profiles.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/config/settings.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/services/__init__.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/services/resource_role.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/utils/__init__.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/utils/alias_resolver.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/utils/completion.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/src/pltr/utils/progress.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/__init__.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/conftest.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/integration/README.md +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/integration/__init__.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/integration/conftest.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/integration/test_auth_flow.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/integration/test_cli_integration.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/integration/test_data_workflows.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/integration/test_data_workflows_simple.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/integration/test_simple_integration.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/test_auth/__init__.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/test_auth/test_base.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/test_auth/test_manager.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/test_auth/test_oauth.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/test_auth/test_storage.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/test_auth/test_token.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/test_commands/__init__.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/test_commands/test_alias.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/test_commands/test_completion.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/test_commands/test_folder.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/test_commands/test_shell.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/test_commands/test_verify_simple.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/test_config/__init__.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/test_config/test_aliases.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/test_config/test_profiles.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/test_config/test_settings.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/test_services/__init__.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/test_services/test_base.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/test_services/test_dataset_transactions.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/test_services/test_ontology.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/test_services/test_resource_role.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/test_utils/__init__.py +0 -0
- {pltr_cli-0.11.0 → pltr_cli-0.13.0}/tests/test_utils/test_alias_resolver.py +0 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
name: Claude Code Review
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
types: [opened, synchronize]
|
|
6
|
+
# Optional: Only run on specific file changes
|
|
7
|
+
# paths:
|
|
8
|
+
# - "src/**/*.ts"
|
|
9
|
+
# - "src/**/*.tsx"
|
|
10
|
+
# - "src/**/*.js"
|
|
11
|
+
# - "src/**/*.jsx"
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
claude-review:
|
|
15
|
+
# Optional: Filter by PR author
|
|
16
|
+
# if: |
|
|
17
|
+
# github.event.pull_request.user.login == 'external-contributor' ||
|
|
18
|
+
# github.event.pull_request.user.login == 'new-developer' ||
|
|
19
|
+
# github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'
|
|
20
|
+
|
|
21
|
+
runs-on: ubuntu-latest
|
|
22
|
+
permissions:
|
|
23
|
+
contents: read
|
|
24
|
+
pull-requests: read
|
|
25
|
+
issues: read
|
|
26
|
+
id-token: write
|
|
27
|
+
|
|
28
|
+
steps:
|
|
29
|
+
- name: Checkout repository
|
|
30
|
+
uses: actions/checkout@v4
|
|
31
|
+
with:
|
|
32
|
+
fetch-depth: 1
|
|
33
|
+
|
|
34
|
+
- name: Run Claude Code Review
|
|
35
|
+
id: claude-review
|
|
36
|
+
uses: anthropics/claude-code-action@v1
|
|
37
|
+
with:
|
|
38
|
+
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
|
|
39
|
+
prompt: |
|
|
40
|
+
REPO: ${{ github.repository }}
|
|
41
|
+
PR NUMBER: ${{ github.event.pull_request.number }}
|
|
42
|
+
|
|
43
|
+
Please review this pull request and provide feedback on:
|
|
44
|
+
- Code quality and best practices
|
|
45
|
+
- Potential bugs or issues
|
|
46
|
+
- Performance considerations
|
|
47
|
+
- Security concerns
|
|
48
|
+
- Test coverage
|
|
49
|
+
|
|
50
|
+
Use the repository's CLAUDE.md for guidance on style and conventions. Be constructive and helpful in your feedback.
|
|
51
|
+
|
|
52
|
+
Use `gh pr comment` with your Bash tool to leave your review as a comment on the PR.
|
|
53
|
+
|
|
54
|
+
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
|
|
55
|
+
# or https://docs.claude.com/en/docs/claude-code/cli-reference for available options
|
|
56
|
+
claude_args: '--allowed-tools "Bash(gh issue view:*),Bash(gh search:*),Bash(gh issue list:*),Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr list:*)"'
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
name: Claude Code
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
issue_comment:
|
|
5
|
+
types: [created]
|
|
6
|
+
pull_request_review_comment:
|
|
7
|
+
types: [created]
|
|
8
|
+
issues:
|
|
9
|
+
types: [opened, assigned]
|
|
10
|
+
pull_request_review:
|
|
11
|
+
types: [submitted]
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
claude:
|
|
15
|
+
if: |
|
|
16
|
+
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
|
|
17
|
+
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
|
|
18
|
+
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
|
|
19
|
+
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
|
|
20
|
+
runs-on: ubuntu-latest
|
|
21
|
+
permissions:
|
|
22
|
+
contents: read
|
|
23
|
+
pull-requests: read
|
|
24
|
+
issues: read
|
|
25
|
+
id-token: write
|
|
26
|
+
actions: read # Required for Claude to read CI results on PRs
|
|
27
|
+
steps:
|
|
28
|
+
- name: Checkout repository
|
|
29
|
+
uses: actions/checkout@v4
|
|
30
|
+
with:
|
|
31
|
+
fetch-depth: 1
|
|
32
|
+
|
|
33
|
+
- name: Run Claude Code
|
|
34
|
+
id: claude
|
|
35
|
+
uses: anthropics/claude-code-action@v1
|
|
36
|
+
with:
|
|
37
|
+
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
|
|
38
|
+
|
|
39
|
+
# This is an optional setting that allows Claude to read CI results on PRs
|
|
40
|
+
additional_permissions: |
|
|
41
|
+
actions: read
|
|
42
|
+
|
|
43
|
+
# Optional: Give a custom prompt to Claude. If this is not specified, Claude will perform the instructions specified in the comment that tagged it.
|
|
44
|
+
# prompt: 'Update the pull request description to include a summary of changes.'
|
|
45
|
+
|
|
46
|
+
# Optional: Add claude_args to customize behavior and configuration
|
|
47
|
+
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
|
|
48
|
+
# or https://docs.claude.com/en/docs/claude-code/cli-reference for available options
|
|
49
|
+
# claude_args: '--allowed-tools Bash(gh pr:*)'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pltr-cli
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.13.0
|
|
4
4
|
Summary: Command-line interface for Palantir Foundry APIs
|
|
5
5
|
Project-URL: Homepage, https://github.com/anjor/pltr-cli
|
|
6
6
|
Project-URL: Repository, https://github.com/anjor/pltr-cli
|
|
@@ -27,8 +27,9 @@ Classifier: Topic :: System :: Systems Administration
|
|
|
27
27
|
Classifier: Topic :: Utilities
|
|
28
28
|
Requires-Python: >=3.9
|
|
29
29
|
Requires-Dist: click-repl>=0.3.0
|
|
30
|
-
Requires-Dist: foundry-platform-sdk
|
|
30
|
+
Requires-Dist: foundry-platform-sdk<2.0.0,>=1.69.0
|
|
31
31
|
Requires-Dist: keyring>=25.6.0
|
|
32
|
+
Requires-Dist: pandas>=2.0.0
|
|
32
33
|
Requires-Dist: python-dotenv>=1.1.1
|
|
33
34
|
Requires-Dist: requests>=2.32.4
|
|
34
35
|
Requires-Dist: rich>=14.1.0
|
|
@@ -37,7 +38,7 @@ Description-Content-Type: text/markdown
|
|
|
37
38
|
|
|
38
39
|
# pltr-cli
|
|
39
40
|
|
|
40
|
-
A comprehensive command-line interface for Palantir Foundry APIs, providing
|
|
41
|
+
A comprehensive command-line interface for Palantir Foundry APIs, providing 81+ commands for data analysis, dataset management, ontology operations, orchestration, SQL queries, folder management, and administrative tasks.
|
|
41
42
|
|
|
42
43
|
## Overview
|
|
43
44
|
|
|
@@ -55,6 +56,9 @@ A comprehensive command-line interface for Palantir Foundry APIs, providing 80+
|
|
|
55
56
|
- 🎯 **Comprehensive Ontology Access**: 13 commands for objects, actions, and queries
|
|
56
57
|
- 🏗️ **Orchestration Management**: Create, manage, and monitor builds, jobs, and schedules
|
|
57
58
|
- 🎬 **MediaSets Operations**: Upload, download, and manage media content with transaction support
|
|
59
|
+
- 🤖 **Models Management**: Create and inspect ML models and versions in the model registry
|
|
60
|
+
- 🌊 **Streams Management**: Manage streaming datasets and publish real-time data
|
|
61
|
+
- 💬 **Language Models**: Interact with Claude and OpenAI embeddings for LLM operations
|
|
58
62
|
- 📝 **Full SQL Support**: Execute, submit, monitor, and export query results
|
|
59
63
|
- 👥 **Admin Operations**: User, group, role, and organization management (16 commands)
|
|
60
64
|
- 💻 **Interactive Shell**: REPL mode with tab completion and command history
|
|
@@ -215,6 +219,7 @@ pltr connectivity import table <conn-rid> <table-name> <dataset-rid> --execute
|
|
|
215
219
|
# Administrative
|
|
216
220
|
pltr admin user current # Current user info
|
|
217
221
|
pltr admin user list # List users
|
|
222
|
+
pltr third-party-apps get <rid> # Get third-party application details
|
|
218
223
|
|
|
219
224
|
# Interactive & Tools
|
|
220
225
|
pltr shell # Interactive mode
|
|
@@ -332,6 +337,52 @@ pltr media-sets download ri.mediasets.main.media-set.abc \
|
|
|
332
337
|
- Preview mode (`--preview`)
|
|
333
338
|
- Transaction-based upload workflow
|
|
334
339
|
|
|
340
|
+
### 🤖 Models Commands
|
|
341
|
+
|
|
342
|
+
pltr-cli provides support for managing ML models and versions in the Foundry model registry. This is distinct from the LanguageModels module, which handles LLM chat and embeddings.
|
|
343
|
+
|
|
344
|
+
**Note**: The SDK does not provide a way to list all models. Use the Foundry web UI or Ontology API to discover models.
|
|
345
|
+
|
|
346
|
+
#### Model Operations
|
|
347
|
+
```bash
|
|
348
|
+
# Create a new model
|
|
349
|
+
pltr models model create "fraud-detector" --folder ri.compass.main.folder.xxx
|
|
350
|
+
|
|
351
|
+
# Get model details
|
|
352
|
+
pltr models model get ri.foundry.main.model.abc123
|
|
353
|
+
|
|
354
|
+
# Get model as JSON
|
|
355
|
+
pltr models model get ri.foundry.main.model.abc123 --format json
|
|
356
|
+
```
|
|
357
|
+
|
|
358
|
+
#### Model Version Operations
|
|
359
|
+
```bash
|
|
360
|
+
# List all versions of a model
|
|
361
|
+
pltr models version list ri.foundry.main.model.abc123
|
|
362
|
+
|
|
363
|
+
# List with pagination
|
|
364
|
+
pltr models version list ri.foundry.main.model.abc123 --page-size 50
|
|
365
|
+
|
|
366
|
+
# Get next page
|
|
367
|
+
pltr models version list ri.foundry.main.model.abc123 \
|
|
368
|
+
--page-size 50 --page-token <token-from-previous-response>
|
|
369
|
+
|
|
370
|
+
# Get specific version details
|
|
371
|
+
pltr models version get ri.foundry.main.model.abc123 v1.0.0
|
|
372
|
+
|
|
373
|
+
# Save version details to file
|
|
374
|
+
pltr models version get ri.foundry.main.model.abc123 v1.0.0 \
|
|
375
|
+
--format json --output version-details.json
|
|
376
|
+
```
|
|
377
|
+
|
|
378
|
+
**All Models commands support:**
|
|
379
|
+
- Multiple output formats (table, JSON, CSV)
|
|
380
|
+
- File output (`--output filename`)
|
|
381
|
+
- Profile selection (`--profile production`)
|
|
382
|
+
- Preview mode (`--preview`)
|
|
383
|
+
|
|
384
|
+
**Note**: Model version creation requires specialized ML tooling and is not provided via CLI. Use the Python SDK directly for version creation with dill-serialized models.
|
|
385
|
+
|
|
335
386
|
### 📊 Dataset Transaction Management
|
|
336
387
|
|
|
337
388
|
pltr-cli provides comprehensive transaction management for datasets, allowing atomic operations with rollback capability:
|
|
@@ -470,7 +521,7 @@ See **[API Wrapper Documentation](docs/api/wrapper.md)** for detailed architectu
|
|
|
470
521
|
|
|
471
522
|
pltr-cli is **production-ready** with comprehensive features:
|
|
472
523
|
|
|
473
|
-
- ✅ **
|
|
524
|
+
- ✅ **81+ Commands** across 11 command groups
|
|
474
525
|
- ✅ **273 Unit Tests** with 67% code coverage
|
|
475
526
|
- ✅ **Published on PyPI** with automated releases
|
|
476
527
|
- ✅ **Cross-Platform** support (Windows, macOS, Linux)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# pltr-cli
|
|
2
2
|
|
|
3
|
-
A comprehensive command-line interface for Palantir Foundry APIs, providing
|
|
3
|
+
A comprehensive command-line interface for Palantir Foundry APIs, providing 81+ commands for data analysis, dataset management, ontology operations, orchestration, SQL queries, folder management, and administrative tasks.
|
|
4
4
|
|
|
5
5
|
## Overview
|
|
6
6
|
|
|
@@ -18,6 +18,9 @@ A comprehensive command-line interface for Palantir Foundry APIs, providing 80+
|
|
|
18
18
|
- 🎯 **Comprehensive Ontology Access**: 13 commands for objects, actions, and queries
|
|
19
19
|
- 🏗️ **Orchestration Management**: Create, manage, and monitor builds, jobs, and schedules
|
|
20
20
|
- 🎬 **MediaSets Operations**: Upload, download, and manage media content with transaction support
|
|
21
|
+
- 🤖 **Models Management**: Create and inspect ML models and versions in the model registry
|
|
22
|
+
- 🌊 **Streams Management**: Manage streaming datasets and publish real-time data
|
|
23
|
+
- 💬 **Language Models**: Interact with Claude and OpenAI embeddings for LLM operations
|
|
21
24
|
- 📝 **Full SQL Support**: Execute, submit, monitor, and export query results
|
|
22
25
|
- 👥 **Admin Operations**: User, group, role, and organization management (16 commands)
|
|
23
26
|
- 💻 **Interactive Shell**: REPL mode with tab completion and command history
|
|
@@ -178,6 +181,7 @@ pltr connectivity import table <conn-rid> <table-name> <dataset-rid> --execute
|
|
|
178
181
|
# Administrative
|
|
179
182
|
pltr admin user current # Current user info
|
|
180
183
|
pltr admin user list # List users
|
|
184
|
+
pltr third-party-apps get <rid> # Get third-party application details
|
|
181
185
|
|
|
182
186
|
# Interactive & Tools
|
|
183
187
|
pltr shell # Interactive mode
|
|
@@ -295,6 +299,52 @@ pltr media-sets download ri.mediasets.main.media-set.abc \
|
|
|
295
299
|
- Preview mode (`--preview`)
|
|
296
300
|
- Transaction-based upload workflow
|
|
297
301
|
|
|
302
|
+
### 🤖 Models Commands
|
|
303
|
+
|
|
304
|
+
pltr-cli provides support for managing ML models and versions in the Foundry model registry. This is distinct from the LanguageModels module, which handles LLM chat and embeddings.
|
|
305
|
+
|
|
306
|
+
**Note**: The SDK does not provide a way to list all models. Use the Foundry web UI or Ontology API to discover models.
|
|
307
|
+
|
|
308
|
+
#### Model Operations
|
|
309
|
+
```bash
|
|
310
|
+
# Create a new model
|
|
311
|
+
pltr models model create "fraud-detector" --folder ri.compass.main.folder.xxx
|
|
312
|
+
|
|
313
|
+
# Get model details
|
|
314
|
+
pltr models model get ri.foundry.main.model.abc123
|
|
315
|
+
|
|
316
|
+
# Get model as JSON
|
|
317
|
+
pltr models model get ri.foundry.main.model.abc123 --format json
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
#### Model Version Operations
|
|
321
|
+
```bash
|
|
322
|
+
# List all versions of a model
|
|
323
|
+
pltr models version list ri.foundry.main.model.abc123
|
|
324
|
+
|
|
325
|
+
# List with pagination
|
|
326
|
+
pltr models version list ri.foundry.main.model.abc123 --page-size 50
|
|
327
|
+
|
|
328
|
+
# Get next page
|
|
329
|
+
pltr models version list ri.foundry.main.model.abc123 \
|
|
330
|
+
--page-size 50 --page-token <token-from-previous-response>
|
|
331
|
+
|
|
332
|
+
# Get specific version details
|
|
333
|
+
pltr models version get ri.foundry.main.model.abc123 v1.0.0
|
|
334
|
+
|
|
335
|
+
# Save version details to file
|
|
336
|
+
pltr models version get ri.foundry.main.model.abc123 v1.0.0 \
|
|
337
|
+
--format json --output version-details.json
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
**All Models commands support:**
|
|
341
|
+
- Multiple output formats (table, JSON, CSV)
|
|
342
|
+
- File output (`--output filename`)
|
|
343
|
+
- Profile selection (`--profile production`)
|
|
344
|
+
- Preview mode (`--preview`)
|
|
345
|
+
|
|
346
|
+
**Note**: Model version creation requires specialized ML tooling and is not provided via CLI. Use the Python SDK directly for version creation with dill-serialized models.
|
|
347
|
+
|
|
298
348
|
### 📊 Dataset Transaction Management
|
|
299
349
|
|
|
300
350
|
pltr-cli provides comprehensive transaction management for datasets, allowing atomic operations with rollback capability:
|
|
@@ -433,7 +483,7 @@ See **[API Wrapper Documentation](docs/api/wrapper.md)** for detailed architectu
|
|
|
433
483
|
|
|
434
484
|
pltr-cli is **production-ready** with comprehensive features:
|
|
435
485
|
|
|
436
|
-
- ✅ **
|
|
486
|
+
- ✅ **81+ Commands** across 11 command groups
|
|
437
487
|
- ✅ **273 Unit Tests** with 67% code coverage
|
|
438
488
|
- ✅ **Published on PyPI** with automated releases
|
|
439
489
|
- ✅ **Cross-Platform** support (Windows, macOS, Linux)
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# pltr-cli Claude Code Skill
|
|
2
|
+
|
|
3
|
+
This directory contains a Claude Code skill for working with Palantir Foundry using the pltr-cli.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
### Use Within This Repository
|
|
8
|
+
|
|
9
|
+
The skill is automatically available when using Claude Code in this repository.
|
|
10
|
+
|
|
11
|
+
### Install Globally
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
cp -r claude_skill ~/.claude/skills/pltr
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Structure
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
claude_skill/
|
|
21
|
+
├── SKILL.md # Main skill definition
|
|
22
|
+
├── reference/ # Command references (loaded on-demand)
|
|
23
|
+
│ ├── quick-start.md # Setup and authentication
|
|
24
|
+
│ ├── dataset-commands.md # Dataset operations
|
|
25
|
+
│ ├── sql-commands.md # SQL queries
|
|
26
|
+
│ ├── orchestration-commands.md # Builds, jobs, schedules
|
|
27
|
+
│ ├── ontology-commands.md # Ontology operations
|
|
28
|
+
│ ├── admin-commands.md # User/group management
|
|
29
|
+
│ ├── filesystem-commands.md # Folders, spaces, projects
|
|
30
|
+
│ ├── connectivity-commands.md # Connections, imports
|
|
31
|
+
│ └── mediasets-commands.md # Media operations
|
|
32
|
+
└── workflows/ # Common patterns
|
|
33
|
+
├── data-analysis.md # Analysis workflows
|
|
34
|
+
├── data-pipeline.md # ETL and pipelines
|
|
35
|
+
└── permission-management.md # Access control
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Usage
|
|
39
|
+
|
|
40
|
+
Ask Claude Code questions about Foundry tasks:
|
|
41
|
+
|
|
42
|
+
- "How do I query a dataset?"
|
|
43
|
+
- "Help me set up a daily build schedule"
|
|
44
|
+
- "Grant viewer access to john.doe on my dataset"
|
|
45
|
+
- "Execute SQL query to count rows"
|
|
46
|
+
|
|
47
|
+
Claude will automatically use this skill to provide accurate guidance.
|
|
48
|
+
|
|
49
|
+
## Documentation
|
|
50
|
+
|
|
51
|
+
See [docs/user-guide/claude-skill.md](../docs/user-guide/claude-skill.md) for full documentation.
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pltr-cli
|
|
3
|
+
description: Helps you work with Palantir Foundry using the pltr CLI. Use this when you need to query datasets, manage orchestration builds, work with ontologies, run SQL queries, manage folders/spaces/projects, copy datasets, or perform admin operations in Foundry. Triggers: Foundry, pltr, dataset, SQL query, ontology, build, schedule, RID.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# pltr-cli: Palantir Foundry CLI
|
|
7
|
+
|
|
8
|
+
This skill helps you use the pltr-cli to interact with Palantir Foundry effectively.
|
|
9
|
+
|
|
10
|
+
## Compatibility
|
|
11
|
+
|
|
12
|
+
- **Skill version**: 1.1.0
|
|
13
|
+
- **pltr-cli version**: 0.12.0+
|
|
14
|
+
- **Python**: 3.9, 3.10, 3.11, 3.12
|
|
15
|
+
- **Dependencies**: foundry-platform-sdk >= 1.69.0
|
|
16
|
+
|
|
17
|
+
## Overview
|
|
18
|
+
|
|
19
|
+
pltr-cli is a comprehensive CLI with 100+ commands for:
|
|
20
|
+
- **Dataset operations**: Get info, list files, download files, manage branches and transactions
|
|
21
|
+
- **SQL queries**: Execute queries, export results, manage async queries
|
|
22
|
+
- **Ontology**: List ontologies, object types, objects, execute actions and queries
|
|
23
|
+
- **Orchestration**: Manage builds, jobs, and schedules
|
|
24
|
+
- **Filesystem**: Folders, spaces, projects, resources
|
|
25
|
+
- **Admin**: User, group, role management
|
|
26
|
+
- **Connectivity**: External connections and data imports
|
|
27
|
+
- **MediaSets**: Media file management
|
|
28
|
+
- **Language Models**: Interact with Anthropic Claude models and OpenAI embeddings
|
|
29
|
+
- **Streams**: Create and manage streaming datasets, publish real-time data
|
|
30
|
+
- **Functions**: Execute queries and inspect value types
|
|
31
|
+
- **AIP Agents**: Manage AI agents, sessions, and versions
|
|
32
|
+
- **Models**: ML model registry for model and version management
|
|
33
|
+
|
|
34
|
+
## Critical Concepts
|
|
35
|
+
|
|
36
|
+
### RID-Based API
|
|
37
|
+
The Foundry API is **RID-based** (Resource Identifier). Most commands require RIDs:
|
|
38
|
+
- **Datasets**: `ri.foundry.main.dataset.{uuid}`
|
|
39
|
+
- **Folders**: `ri.compass.main.folder.{uuid}` (root: `ri.compass.main.folder.0`)
|
|
40
|
+
- **Builds**: `ri.orchestration.main.build.{uuid}`
|
|
41
|
+
- **Schedules**: `ri.orchestration.main.schedule.{uuid}`
|
|
42
|
+
- **Ontologies**: `ri.ontology.main.ontology.{uuid}`
|
|
43
|
+
|
|
44
|
+
Users must know RIDs in advance (from Foundry web UI or previous API calls).
|
|
45
|
+
|
|
46
|
+
### Authentication
|
|
47
|
+
Before using any command, ensure authentication is configured:
|
|
48
|
+
```bash
|
|
49
|
+
# Configure interactively
|
|
50
|
+
pltr configure configure
|
|
51
|
+
|
|
52
|
+
# Or use environment variables
|
|
53
|
+
export FOUNDRY_TOKEN="your-token"
|
|
54
|
+
export FOUNDRY_HOST="foundry.company.com"
|
|
55
|
+
|
|
56
|
+
# Verify connection
|
|
57
|
+
pltr verify
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Output Formats
|
|
61
|
+
All commands support multiple output formats:
|
|
62
|
+
```bash
|
|
63
|
+
pltr <command> --format table # Default: Rich table
|
|
64
|
+
pltr <command> --format json # JSON output
|
|
65
|
+
pltr <command> --format csv # CSV format
|
|
66
|
+
pltr <command> --output file.csv # Save to file
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Profile Selection
|
|
70
|
+
Use `--profile` to switch between Foundry instances:
|
|
71
|
+
```bash
|
|
72
|
+
pltr <command> --profile production
|
|
73
|
+
pltr <command> --profile development
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## Reference Files
|
|
77
|
+
|
|
78
|
+
Load these files based on the user's task:
|
|
79
|
+
|
|
80
|
+
| Task Type | Reference File |
|
|
81
|
+
|-----------|----------------|
|
|
82
|
+
| Setup, authentication, getting started | `reference/quick-start.md` |
|
|
83
|
+
| Dataset operations (get, files, branches, transactions) | `reference/dataset-commands.md` |
|
|
84
|
+
| SQL queries | `reference/sql-commands.md` |
|
|
85
|
+
| Builds, jobs, schedules | `reference/orchestration-commands.md` |
|
|
86
|
+
| Ontologies, objects, actions | `reference/ontology-commands.md` |
|
|
87
|
+
| Users, groups, roles, orgs | `reference/admin-commands.md` |
|
|
88
|
+
| Folders, spaces, projects, resources, permissions | `reference/filesystem-commands.md` |
|
|
89
|
+
| Connections, imports | `reference/connectivity-commands.md` |
|
|
90
|
+
| Media sets, media items | `reference/mediasets-commands.md` |
|
|
91
|
+
| Anthropic Claude models, OpenAI embeddings | `reference/language-models-commands.md` |
|
|
92
|
+
| Streaming datasets, real-time data publishing | `reference/streams-commands.md` |
|
|
93
|
+
| Functions queries, value types | `reference/functions-commands.md` |
|
|
94
|
+
| AIP Agents, sessions, versions | `reference/aip-agents-commands.md` |
|
|
95
|
+
| ML model registry, model versions | `reference/models-commands.md` |
|
|
96
|
+
|
|
97
|
+
## Workflow Files
|
|
98
|
+
|
|
99
|
+
For common multi-step tasks:
|
|
100
|
+
|
|
101
|
+
| Workflow | File |
|
|
102
|
+
|----------|------|
|
|
103
|
+
| Data exploration, SQL analysis, ontology queries | `workflows/data-analysis.md` |
|
|
104
|
+
| ETL pipelines, scheduled jobs, data quality | `workflows/data-pipeline.md` |
|
|
105
|
+
| Setting up permissions, resource roles, access control | `workflows/permission-management.md` |
|
|
106
|
+
|
|
107
|
+
## Common Commands Quick Reference
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
# Verify setup
|
|
111
|
+
pltr verify
|
|
112
|
+
|
|
113
|
+
# Current user info
|
|
114
|
+
pltr admin user current
|
|
115
|
+
|
|
116
|
+
# Execute SQL query
|
|
117
|
+
pltr sql execute "SELECT * FROM my_table LIMIT 10"
|
|
118
|
+
|
|
119
|
+
# Get dataset info
|
|
120
|
+
pltr dataset get ri.foundry.main.dataset.abc123
|
|
121
|
+
|
|
122
|
+
# List files in dataset
|
|
123
|
+
pltr dataset files list ri.foundry.main.dataset.abc123
|
|
124
|
+
|
|
125
|
+
# Download file from dataset
|
|
126
|
+
pltr dataset files get ri.foundry.main.dataset.abc123 "/path/file.csv" "./local.csv"
|
|
127
|
+
|
|
128
|
+
# Copy dataset to another folder
|
|
129
|
+
pltr cp ri.foundry.main.dataset.abc123 ri.compass.main.folder.target456
|
|
130
|
+
|
|
131
|
+
# List folder contents
|
|
132
|
+
pltr folder list ri.compass.main.folder.0 # root folder
|
|
133
|
+
|
|
134
|
+
# Search builds
|
|
135
|
+
pltr orchestration builds search
|
|
136
|
+
|
|
137
|
+
# Interactive shell mode
|
|
138
|
+
pltr shell
|
|
139
|
+
|
|
140
|
+
# Send message to Claude model
|
|
141
|
+
pltr language-models anthropic messages ri.language-models.main.model.xxx \
|
|
142
|
+
--message "Explain this concept"
|
|
143
|
+
|
|
144
|
+
# Generate embeddings
|
|
145
|
+
pltr language-models openai embeddings ri.language-models.main.model.xxx \
|
|
146
|
+
--input "Sample text"
|
|
147
|
+
|
|
148
|
+
# Create streaming dataset
|
|
149
|
+
pltr streams dataset create my-stream \
|
|
150
|
+
--folder ri.compass.main.folder.xxx \
|
|
151
|
+
--schema '{"fieldSchemaList": [{"name": "value", "type": "STRING"}]}'
|
|
152
|
+
|
|
153
|
+
# Publish record to stream
|
|
154
|
+
pltr streams stream publish ri.foundry.main.dataset.xxx \
|
|
155
|
+
--branch master \
|
|
156
|
+
--record '{"value": "hello"}'
|
|
157
|
+
|
|
158
|
+
# Execute a function query
|
|
159
|
+
pltr functions query execute myQuery --parameters '{"limit": 10}'
|
|
160
|
+
|
|
161
|
+
# Get AIP Agent info
|
|
162
|
+
pltr aip-agents get ri.foundry.main.agent.abc123
|
|
163
|
+
|
|
164
|
+
# List agent sessions
|
|
165
|
+
pltr aip-agents sessions list ri.foundry.main.agent.abc123
|
|
166
|
+
|
|
167
|
+
# Get ML model info
|
|
168
|
+
pltr models model get ri.foundry.main.model.abc123
|
|
169
|
+
|
|
170
|
+
# List model versions
|
|
171
|
+
pltr models version list ri.foundry.main.model.abc123
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
## Best Practices
|
|
175
|
+
|
|
176
|
+
1. **Always verify authentication first**: Run `pltr verify` before starting work
|
|
177
|
+
2. **Use appropriate output format**: JSON for programmatic use, CSV for spreadsheets, table for readability
|
|
178
|
+
3. **Use async for large queries**: `pltr sql submit` + `pltr sql wait` for long-running queries
|
|
179
|
+
4. **Export results**: Use `--output` to save results for further analysis
|
|
180
|
+
5. **Use shell mode for exploration**: `pltr shell` provides tab completion and history
|
|
181
|
+
|
|
182
|
+
## Getting Help
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
pltr --help # All commands
|
|
186
|
+
pltr <command> --help # Command help
|
|
187
|
+
pltr <command> <sub> --help # Subcommand help
|
|
188
|
+
```
|