跳转至

Code Repositories(代码仓库(Code Repositories))

:::callout{theme="neutral"} To edit and manage your code in a familiar IDE, try VS Code workspaces and the Palantir extension for Visual Studio Code. :::

Code Repositories provides a web-based integrated development environment (IDE) for writing and collaborating on production-ready code in Foundry. The application provides a user-friendly way to interact with the underlying Git repository, and provides a range of additional features:

  • All common Git version control tasks, including branching, committing, and tagging releases can be performed through the web UI
  • Repositories have integrated support for code review and collaboration through pull requests, including support for highly configurable permissions to ensure the codebase is high-quality
  • Every repository type includes integrated features to aid with the code authoring experience, including IntelliSense, code linting and error checking, and rich help dialogs

code repositories transforms

Repository types

Code Repositories support creating repositories of many types. The most common repository types are described below.

  • Transforms repositories support authoring data transformation logic, and include features to enable previewing and debugging transforms. Supported languages include Python, Java, and SQL
  • Functions repositories enable writing business logic that can be executed with low latency in an operational context, and include native support for accessing data from the Foundry Ontology. The Code Repositories environment supports autocomplete based on Ontology data types, and enables code authors to preview Functions while authoring them. Functions can be written in TypeScript or Python.
  • Model development is supported in Code Repositories. Learn more about how to develop models in Code Repositories.

中文翻译

代码仓库(Code Repositories)

:::callout{theme="neutral"} 若要在熟悉的集成开发环境(IDE)中编辑和管理代码,请尝试使用 VS Code 工作区(VS Code workspaces)适用于 Visual Studio Code 的 Palantir 扩展(Palantir extension for Visual Studio Code)。 :::

代码仓库(Code Repositories) 提供基于网页的集成开发环境(IDE),用于在 Foundry 中编写和协作开发生产级代码。该应用程序提供了与底层 Git 仓库交互的友好方式,并具备一系列附加功能:

  • 所有常见的 Git 版本控制任务,包括分支创建、提交和发布标记,均可通过网页界面执行
  • 仓库通过拉取请求(pull requests) 集成了代码审查和协作支持,并支持高度可配置的权限设置,以确保代码库的高质量
  • 每种仓库类型都包含集成功能,以提升代码编写体验,包括智能感知(IntelliSense)、代码检查(linting)、错误检查以及丰富的帮助对话框

代码仓库转换

仓库类型(Repository types)

代码仓库(Code Repositories)支持创建多种类型的仓库。以下介绍最常见的仓库类型。

  • 转换(Transforms) 仓库支持编写数据转换逻辑,并包含预览和调试转换的功能。支持的语言包括 PythonJavaSQL
  • 函数(Functions) 仓库支持编写可在操作化环境中以低延迟执行业务逻辑的代码,并原生支持访问 Foundry 本体论(Ontology) 中的数据。代码仓库(Code Repositories)环境支持基于本体论(Ontology)数据类型的自动补全功能,并允许代码作者在编写时预览函数(Functions)。函数(Functions)可使用 TypeScriptPython 编写。
  • 模型开发(Model development) 在代码仓库(Code Repositories)中得到支持。了解如何在代码仓库(Code Repositories)中开发模型。