# Python SDK how to set a proxy

**URL:** <https://developer.sailpoint.com/discuss/t/python-sdk-how-to-set-a-proxy/99218>\
**Category:** SHF Discussion and Questions\
**Tags:** python-sdk, apis, sailpoint-identity-security\
**Created:** [January 28, 2025, 11:21am UTC](https://developer.sailpoint.com/discuss/t/python-sdk-how-to-set-a-proxy/99218 "2025-01-28T11:21:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mpotti](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/mpotti/32/2916_2.png) [@mpotti](https://developer.sailpoint.com/discuss/u/mpotti)\
**Post date:** [January 28, 2025, 12:51pm UTC](https://developer.sailpoint.com/discuss/t/python-sdk-how-to-set-a-proxy/99218/2 "2025-01-28T12:51:49Z")

</div>

You could try setting the environment variables for username and password. Then update the proxy string to be an f string and pass in the environment variables. Proxy setting are going to be unique to your endearment. The @proxy.acme.com:9443 is an example of how you would configure the proxy information. If you do not have a proxy then I would just comment this out and try running it again. You will also need to define the proxy headers. Hope this helps.

### Fstring Example

```python
configuration.proxy = f"http://{username}:{password}@proxy.acme.com:9443"

```

### Proxy config using urllib3

```python
configuration.proxy = "https://proxy.acme.com:9443/"
configuration.proxy_headers = make_headers(proxy_basic_auth=f"{username}:{mypassword}")
```

---

_[View the full topic](https://developer.sailpoint.com/discuss/t/python-sdk-how-to-set-a-proxy/99218)._
