

 从补丁 198 开始，Amazon Redshift 将不再支持创建新的 Python UDF。现有的 Python UDF 将继续正常运行至 2026 年 6 月 30 日。有关更多信息，请参阅[博客文章](https://www.amazonaws.cn/blogs/big-data/amazon-redshift-python-user-defined-functions-will-reach-end-of-support-after-june-30-2026/)。

# Amazon Redshift Python 连接器
<a name="python-redshift-driver"></a>

通过使用适用于 Python 的 Amazon Redshift 连接器，您可以将工作与[适用于 Python 的 Amazon SDK（Boto3）](https://github.com/boto/boto3)以及 Pandas 和 Numerical Python（NumPy）集成。有关 pandas 的更多信息，请参阅 [pandas GitHub 存储库](https://github.com/pandas-dev/pandas)。有关 NumPy 的更多信息，请参阅 [NumPy GitHub 存储库](https://github.com/numpy/numpy)。

Amazon Redshift Python 连接器提供了一个开源解决方案。您可以浏览源代码、请求增强功能、报告问题和提供文章。

要使用 Amazon Redshift Python 连接器，请确保使用 Python 3.6 或更高版本。有关更多信息，请参阅[Amazon Redshift Python 驱动程序许可协议](https://github.com/aws/amazon-redshift-python-driver/blob/master/LICENSE)。

Amazon Redshift Python 连接器提供以下内容：
+ Amazon Identity and Access Management（IAM）身份验证 有关更多信息，请参阅 [Amazon Redshift 中的 Identity and Access Management](redshift-iam-authentication-access-control.md)。
+ 使用联合 API 访问进行身份提供者身份验证 企业身份提供者支持联合 API 访问，如下所示：
  + Azure AD 有关更多信息，请参阅 Amazon 大数据博客文章 [Federate Amazon Redshift access with Microsoft Azure AD single sign-on](https://www.amazonaws.cn/blogs/big-data/federate-amazon-redshift-access-with-microsoft-azure-ad-single-sign-on/)。
  + Active Directory 联合身份验证服务 有关更多信息，请参阅 Amazon 大数据博客文章 [Federate access to your Amazon Redshift cluster with Active Directory Federation Services (AD FS): Part 1](https://www.amazonaws.cn/blogs/big-data/federate-access-to-your-amazon-redshift-cluster-with-active-directory-federation-services-ad-fs-part-1/)。
  + Okta。有关更多信息，有关更多信息，请参阅 Amazon 大数据博客文章 [Federate Amazon Redshift access with Okta as an identity provider](https://www.amazonaws.cn/blogs/big-data/federate-amazon-redshift-access-with-okta-as-an-identity-provider/)。
  + PingFederate。有关更多信息，请参阅 [PingFederate 站点](https://www.pingidentity.com/en/software/pingfederate.html)。
  + JumpCloud。有关的更多信息，请参阅 [JumpCloud 站点](https://jumpcloud.com/)。
+ Amazon Redshift 数据类型。

Amazon Redshift Python 连接器实施 Python 数据库 API 规范 2.0。有关更多信息，请参阅 Python 网站上的 [PEP 249 – Python 数据库 API 规范 v2.0](https://www.python.org/dev/peps/pep-0249/)。

**Topics**
+ [安装 Amazon Redshift Python 连接器](python-driver-install.md)
+ [Amazon Redshift Python 连接器的配置选项](python-configuration-options.md)
+ [导入 Python 连接器](python-start-import.md)
+ [将 Python 连接器与 NumPy 集成](python-connect-integrate-numpy.md)
+ [将 Python 连接器与 pandas 集成](python-connect-integrate-pandas.md)
+ [使用身份提供者插件](python-connect-identity-provider-plugins.md)
+ [使用 Amazon Redshift Python 连接器的示例](python-connect-examples.md)
+ [Amazon Redshift Python 连接器的 API 参考](python-api-reference.md)