# Examples for python in algov2

**URL:** <https://forum.algorand.co/t/examples-for-python-in-algov2/3759>\
**Category:** General\
**Tags:** testnet\
**Created:** [July 13, 2021, 4:30pm UTC](https://forum.algorand.co/t/examples-for-python-in-algov2/3759 "2021-07-13T16:30:57Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![fabrice](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@fabrice](https://forum.algorand.co/u/fabrice)\
**Post date:** [July 13, 2021, 5:55pm UTC](https://forum.algorand.co/t/examples-for-python-in-algov2/3759/6 "2021-07-13T17:55:50Z")

</div>

PureStake does not support v1 anymore.

Use algoexplorer api:

```python
from algosdk import algod

algod_token = ""
algod_address = "https://testnet.algoexplorerapi.io"
headers = {"User-Agent": "DoYouLoveMe?"}

client = algod.AlgodClient(algod_token, algod_address, headers)

print(client.suggested_params())

```

PS: You can write code and output between triple backquotes ``` instead of snapshots. This makes search easier.

---

_[View the full topic](https://forum.algorand.co/t/examples-for-python-in-algov2/3759)._
