<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Using Anon on</title><link>https://docs.protegrity.com/anonymization/latest/docs/using_anon/</link><description>Recent content in Using Anon on</description><generator>Hugo</generator><language>en</language><atom:link href="https://docs.protegrity.com/anonymization/latest/docs/using_anon/index.xml" rel="self" type="application/rss+xml"/><item><title>Python SDK</title><link>https://docs.protegrity.com/anonymization/latest/docs/using_anon/py_sdk_install/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/anonymization/latest/docs/using_anon/py_sdk_install/</guid><description>&lt;p>Use this section to install, configure, and validate the Python SDK for Protegrity Anonymization.&lt;/p>
&lt;h3 id="prerequisites">Prerequisites&lt;/h3>
&lt;p>Ensure one of the following is met:&lt;/p>
&lt;ul>
&lt;li>&lt;code>pip&lt;/code> is available in your active Python virtual environment.&lt;/li>
&lt;li>A conda environment is activated.&lt;/li>
&lt;/ul>
&lt;h3 id="overview">Overview&lt;/h3>
&lt;p>Use the Python SDK to access the Anonymization service programmatically.&lt;/p>
&lt;h4 id="1-install-the-anonymization-python-sdk">1. Install the Anonymization Python SDK&lt;/h4>
&lt;p>Install the SDK using &lt;code>pip&lt;/code> or &lt;code>conda&lt;/code> using the version that matches the deployed Anonymization service.&lt;/p>
&lt;p>&lt;strong>Using pip:&lt;/strong>&lt;/p></description></item><item><title>Python SDK Reference</title><link>https://docs.protegrity.com/anonymization/latest/docs/using_anon/apis/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/anonymization/latest/docs/using_anon/apis/</guid><description>&lt;p>This section describes the classes and methods available in the Anonymization Python SDK, along with usage examples. For installation steps, refer to the &lt;a href="https://docs.protegrity.com/anonymization/latest/docs/using_anon/py_sdk_install/">Python SDK Installation&lt;/a> section.&lt;/p>
&lt;h3 id="clientconfig">ClientConfig&lt;/h3>
&lt;p>Configuration dataclass for &lt;code>AnonymizationClient&lt;/code>.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-python" data-lang="python">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#204a87;font-weight:bold">from&lt;/span> &lt;span style="color:#000">anonymization_sdk.config&lt;/span> &lt;span style="color:#204a87;font-weight:bold">import&lt;/span> &lt;span style="color:#000">ClientConfig&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#000">config&lt;/span> &lt;span style="color:#ce5c00;font-weight:bold">=&lt;/span> &lt;span style="color:#000">ClientConfig&lt;/span>&lt;span style="color:#000;font-weight:bold">(&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#000">base_url&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">=&lt;/span>&lt;span style="color:#4e9a06">&amp;#34;&amp;lt;GATEWAY_URL&amp;gt;/pty/anonymization/v3&amp;#34;&lt;/span>&lt;span style="color:#000;font-weight:bold">,&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#000">username&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">=&lt;/span>&lt;span style="color:#4e9a06">&amp;#34;anonymization_admin&amp;#34;&lt;/span>&lt;span style="color:#000;font-weight:bold">,&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#000">password&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">=&lt;/span>&lt;span style="color:#4e9a06">&amp;#34;StrongPassword123!&amp;#34;&lt;/span>&lt;span style="color:#000;font-weight:bold">,&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#000">verify_ssl&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">=&lt;/span>&lt;span style="color:#204a87;font-weight:bold">True&lt;/span>&lt;span style="color:#000;font-weight:bold">,&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#000;font-weight:bold">)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>&lt;strong>Attributes:&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;strong>base_url&lt;/strong> (&lt;code>str&lt;/code>, default &lt;code>&amp;quot;http://localhost:8000&amp;quot;&lt;/code>) - Base URL of the Anonymization API.&lt;/li>
&lt;li>&lt;strong>timeout&lt;/strong> (&lt;code>float&lt;/code>, default &lt;code>30&lt;/code>) - Request timeout in seconds.&lt;/li>
&lt;li>&lt;strong>max_retries&lt;/strong> (&lt;code>int&lt;/code>, default &lt;code>3&lt;/code>) - Retry attempts on connection failure.&lt;/li>
&lt;li>&lt;strong>verify_ssl&lt;/strong> (&lt;code>bool&lt;/code>, default &lt;code>True&lt;/code>) - Set to &lt;code>False&lt;/code> for self-signed certificates.&lt;/li>
&lt;li>&lt;strong>username&lt;/strong> (&lt;code>str | None&lt;/code>, default &lt;code>None&lt;/code>) - Username for token-based authentication.&lt;/li>
&lt;li>&lt;strong>password&lt;/strong> (&lt;code>str | None&lt;/code>, default &lt;code>None&lt;/code>) - Password for token-based authentication.&lt;/li>
&lt;li>&lt;strong>refresh_buffer&lt;/strong> (&lt;code>int&lt;/code>, default &lt;code>30&lt;/code>) - Seconds before token expiry to proactively refresh.&lt;/li>
&lt;li>&lt;strong>poll_interval&lt;/strong> (&lt;code>float&lt;/code>, default &lt;code>2.0&lt;/code>) - Seconds between async job status polls.&lt;/li>
&lt;li>&lt;strong>job_timeout&lt;/strong> (&lt;code>float&lt;/code>, default &lt;code>600&lt;/code>) - Maximum seconds to wait for a job.&lt;/li>
&lt;/ul>
&lt;p>Alternatively, configure from environment variables using &lt;code>ClientConfig.from_env()&lt;/code>.&lt;/p></description></item></channel></rss>