<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Chainguard Libraries for Python on</title><link>https://deploy-preview-3857--ornate-narwhal-088216.netlify.app/chainguard/libraries/python/</link><description>Recent content in Chainguard Libraries for Python on</description><generator>Hugo -- gohugo.io</generator><language>en-US</language><copyright>Copyright (c) 2023 Chainguard</copyright><lastBuildDate>Wed, 09 Apr 2025 08:04:00 +0000</lastBuildDate><atom:link href="https://deploy-preview-3857--ornate-narwhal-088216.netlify.app/chainguard/libraries/python/index.xml" rel="self" type="application/rss+xml"/><item><title>Chainguard Libraries for Python overview</title><link>https://deploy-preview-3857--ornate-narwhal-088216.netlify.app/chainguard/libraries/python/overview/</link><pubDate>Wed, 09 Apr 2025 04:00:00 +0000</pubDate><guid>https://deploy-preview-3857--ornate-narwhal-088216.netlify.app/chainguard/libraries/python/overview/</guid><description>&lt;p&gt;Chainguard Libraries for Python provides enhanced security for the vast Python
ecosystem by rebuilding PyPI packages with comprehensive supply chain protection
and automated patching. With over 600,000 packages on the &lt;a href="https://pypi.org/"&gt;Python Package Index
(PyPI)&lt;/a&gt; serving application development, machine learning,
and data science needs, Chainguard addresses the critical security challenges of
depending on packages from untrusted sources by rebuilding them within the
controlled Chainguard Factory environment. In addition, Chainguard eliminates
security risk by remediating High and Critical vulnerabilities across older
package versions where upstream maintainers are not able to prioritize fixes.&lt;/p&gt;</description></item><item><title>Global configuration</title><link>https://deploy-preview-3857--ornate-narwhal-088216.netlify.app/chainguard/libraries/python/global-configuration/</link><pubDate>Tue, 25 Mar 2025 08:04:00 +0000</pubDate><guid>https://deploy-preview-3857--ornate-narwhal-088216.netlify.app/chainguard/libraries/python/global-configuration/</guid><description>&lt;p&gt;Python library consumption in a large organization is typically managed by a
repository manager. Commonly used repository manager applications are
&lt;a href="https://cloudsmith.com/"&gt;Cloudsmith&lt;/a&gt;, &lt;a href="https://jfrog.com/artifactory/"&gt;JFrog
Artifactory&lt;/a&gt;, and &lt;a href="https://www.sonatype.com/products/sonatype-nexus-repository"&gt;Sonatype Nexus
Repository&lt;/a&gt;. The
repository manager acts as a single point of access for developers and
development tools to retrieve the required libraries.&lt;/p&gt;
&lt;p&gt;The recommended approach is to use the &lt;a href="https://deploy-preview-3857--ornate-narwhal-088216.netlify.app/chainguard/libraries/overview/#upstream-fallback-and-controls"&gt;upstream
fallback&lt;/a&gt;
feature of Chainguard Repository, which allows you to configure your repository
manager with a single upstream pointed at &lt;code&gt;https://libraries.cgr.dev/python/&lt;/code&gt;. The
Chainguard Repository handles fallback and policy enforcement; your repository
manager handles local caching and access control. Chainguard proxies and serves
packages from the public PyPI repository on your behalf when upstream
fallback is enabled. All packages served from Chainguard are protected with
malware scanning and a configurable cooldown policy.&lt;/p&gt;</description></item><item><title>Configure Python build tools</title><link>https://deploy-preview-3857--ornate-narwhal-088216.netlify.app/chainguard/libraries/python/build-configuration/</link><pubDate>Tue, 25 Mar 2025 08:04:00 +0000</pubDate><guid>https://deploy-preview-3857--ornate-narwhal-088216.netlify.app/chainguard/libraries/python/build-configuration/</guid><description>&lt;p&gt;Chainguard Libraries for Python works with your existing build tools — pip,
Poetry, and uv — through a repository configuration change. This page is a
reference for configuring each supported build tool. It covers repository
access, authentication, cache clearing, and minimal example projects.&lt;/p&gt;
&lt;p&gt;Apply these changes on every workstation and build server that builds your
applications or downloads libraries, including CI/CD infrastructure such as
Jenkins, TeamCity, or GitHub Actions.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;https://libraries.cgr.dev/python/&lt;/code&gt; endpoint is also the &lt;a href="https://deploy-preview-3857--ornate-narwhal-088216.netlify.app/chainguard/chainguard-repository/overview/"&gt;Chainguard
Repository&lt;/a&gt; endpoint for Python. By
default, it serves only Chainguard-built artifacts. When &lt;a href="https://deploy-preview-3857--ornate-narwhal-088216.netlify.app/chainguard/libraries/overview/#upstream-fallback-and-controls"&gt;upstream
fallback&lt;/a&gt; is
enabled for your organization, the same endpoint can also serve requested
versions from PyPI under Chainguard security controls.&lt;/p&gt;</description></item><item><title>Management and maintenance</title><link>https://deploy-preview-3857--ornate-narwhal-088216.netlify.app/chainguard/libraries/python/management/</link><pubDate>Tue, 25 Mar 2025 08:04:00 +0000</pubDate><guid>https://deploy-preview-3857--ornate-narwhal-088216.netlify.app/chainguard/libraries/python/management/</guid><description>&lt;p&gt;Chainguard Libraries for Python operates transparently after completing the &lt;a href="https://deploy-preview-3857--ornate-narwhal-088216.netlify.app/chainguard/libraries/python/global-configuration/"&gt;global configuration&lt;/a&gt; and &lt;a href="https://deploy-preview-3857--ornate-narwhal-088216.netlify.app/chainguard/libraries/python/build-configuration/"&gt;build configuration&lt;/a&gt;, automatically providing security-enhanced versions of your PyPI dependencies. New packages and versions are retrieved from Chainguard&amp;rsquo;s hardened repository when available, while PyPI and other configured repositories provide fallback access to ensure continuous development workflow without interruption.&lt;/p&gt;
&lt;p&gt;The following sections detail optional management, maintenance, and auditing
steps on the repository manager and the build tool.&lt;/p&gt;
&lt;h2 id="source-verification" class="heading-2" data-heading-level="2"&gt;
&lt;span class="heading-text"&gt;Source verification&lt;/span&gt;
&lt;a href="#source-verification" class="anchor" aria-label="Link to Source verification" title="Link to this section"&gt;
&lt;svg width="16" height="9" viewBox="0 0 16 9" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"&gt;
&lt;path d="M6.833 8.125H4C3 8.125 2.146 7.77067 1.438 7.062C0.729333 6.354 0.375 5.5 0.375 4.5C0.375 3.5 0.729333 2.646 1.438 1.938C2.146 1.22933 3 0.875 4 0.875H6.833V1.958H4C3.30533 1.958 2.708 2.208 2.208 2.708C1.708 3.208 1.458 3.80533 1.458 4.5C1.458 5.19467 1.708 5.792 2.208 6.292C2.708 6.792 3.30533 7.042 4 7.042H6.833V8.125ZM5.208 5.042V3.958H10.792V5.042H5.208ZM9.167 8.125V7.042H12C12.6947 7.042 13.292 6.792 13.792 6.292C14.292 5.792 14.542 5.19467 14.542 4.5C14.542 3.80533 14.292 3.208 13.792 2.708C13.292 2.208 12.6947 1.958 12 1.958H9.167V0.875H12C13 0.875 13.854 1.22933 14.562 1.938C15.2707 2.646 15.625 3.5 15.625 4.5C15.625 5.5 15.2707 6.354 14.562 7.062C13.854 7.77067 13 8.125 12 8.125H9.167Z" fill="currentColor"/&gt;
&lt;/svg&gt;
&lt;/a&gt;
&lt;/h2&gt;&lt;p&gt;You can verify what artifacts are retrieved from the Chainguard Libraries
repository on a global level:&lt;/p&gt;</description></item><item><title>Migrating a Python project to Chainguard Libraries</title><link>https://deploy-preview-3857--ornate-narwhal-088216.netlify.app/chainguard/libraries/python/migration/</link><pubDate>Tue, 14 Jul 2026 00:00:00 +0000</pubDate><guid>https://deploy-preview-3857--ornate-narwhal-088216.netlify.app/chainguard/libraries/python/migration/</guid><description>&lt;p&gt;Chainguard Libraries for Python provides a curated index of PyPI packages rebuilt from source and verified against Chainguard&amp;rsquo;s build provenance. Because Chainguard Libraries uses the standard pip simple-index protocol, switching an existing project requires only an index configuration change — no changes to your application code or dependency declarations.&lt;/p&gt;
&lt;p&gt;This guide walks through migrating an existing Python project to Chainguard Libraries, covering the two most common setups:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Direct access&lt;/strong&gt;: Your build tool connects directly to &lt;code&gt;libraries.cgr.dev&lt;/code&gt;. This option is faster for initial evaluation and smaller-scale setups.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Repository manager&lt;/strong&gt;: Your build tool connects to a repository manager (such as JFrog Artifactory or Sonatype Nexus), which proxies requests to Chainguard Libraries. This option is recommended for teams and organizations.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To follow along with a ready-made project instead of your own, use the &lt;a href="https://github.com/chainguard-demo/chainguard-libraries-python"&gt;Chainguard Libraries for Python demo repository&lt;/a&gt;. It provides example projects for pip, uv, and Poetry, each with a &lt;code&gt;demo.sh&lt;/code&gt; script that configures access and installs sample packages.&lt;/p&gt;</description></item></channel></rss>