# Patching a pure python package that uses requests

**URL:** <https://forum.anaconda.com/t/patching-a-pure-python-package-that-uses-requests/20427>\
**Category:** PyScript\
**Created:** [May 2, 2022, 9:46pm UTC](https://forum.anaconda.com/t/patching-a-pure-python-package-that-uses-requests/20427 "2022-05-02T21:46:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![clee](https://avatars.discourse-cdn.com/v4/letter/c/db6015/32.png) [@clee](https://forum.anaconda.com/u/clee)\
**Post date:** [May 2, 2022, 9:46pm UTC](https://forum.anaconda.com/t/patching-a-pure-python-package-that-uses-requests/20427/1 "2022-05-02T21:46:34Z")

</div>

Hi,

I’d like to import a pure python package within pyscript, but it uses the requests library, which isn’t supported in emscripten. Is there any way to patch that package so that I can import it within pyscript?

---

<div class="post-metadata">

**Author:** ![MARTIN\_DURANT](https://dub1.discourse-cdn.com/anaconda/user_avatar/forum.anaconda.com/martin_durant/32/67_2.png) [@MARTIN\_DURANT](https://forum.anaconda.com/u/MARTIN_DURANT)\
**Post date:** [May 3, 2022, 1:40pm UTC](https://forum.anaconda.com/t/patching-a-pure-python-package-that-uses-requests/20427/2 "2022-05-03T13:40:24Z")

</div>

We haven’t yet figured this story out. PyScript has access the the browser’s native HTTP fetch mechanism, and we could make a requests-like interface over that, but your package wouldn’t know about this. Also, in the browser, all requests are limited by CORS, so enabling HTTP isn’t enough. We are actively considering options here.
