If you’re using `httpx` instead of `requests`, it has a built-in `.curl()` method!
```python
import httpx
r = httpx.get("https://api.example.com")
print(r.curl())
```
No extra libs needed.
For `requests`, though, you’re stuck with `curlify` or manual conversion.
---
```python
import httpx
r = httpx.get("https://api.example.com")
print(r.curl())
```
No extra libs needed.
For `requests`, though, you’re stuck with `curlify` or manual conversion.
---
