# Python example code for headless permit2 swap

**URL:** https://forum.0xprotocol.org/t/python-example-code-for-headless-permit2-swap/3846
**Category:** ⌨️ Technical Development
**Created:** [August 29, 2024, 1:07pm UTC](https://forum.0xprotocol.org/t/python-example-code-for-headless-permit2-swap/3846 "2024-08-29T13:07:51Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Theoldelston](https://avatars.discourse-cdn.com/v4/letter/t/d07c76/32.png) [@Theoldelston](https://forum.0xprotocol.org/u/Theoldelston)
#### Post date: [August 29, 2024, 1:07pm UTC](https://forum.0xprotocol.org/t/python-example-code-for-headless-permit2-swap/3846/1 "2024-08-29T13:07:51Z")

</div>

On 0x website you can find js and bun examples but no python example for a simple permit2 swap 0x, would be great to help who has to use python.

---

<div class="post-metadata">

### Author: ![jlin27](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.0xprotocol.org/jlin27/32/1322_2.png) [@jlin27](https://forum.0xprotocol.org/u/jlin27)
#### Post date: [September 3, 2024, 5:04pm UTC](https://forum.0xprotocol.org/t/python-example-code-for-headless-permit2-swap/3846/2 "2024-09-03T17:04:55Z")

</div>

Unfortunately, we don’t have any v2/permit Python examples at the moment.

We do have a very old [0x v4 RFQ Python guide](https://gist.github.com/PirosB3/8141b51fbb307bca265866ef1cef564f) that might serve as inspiration, but please be aware that many aspects of it are outdated.

I have added this to our list of guides under consideration to build.

If you don’t mind sharing, what use case is this for? Would help us better craft more tailored content moving forward.
