Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/pyscript/pyscript
/ text
Method
text
core/src/stdlib/pyscript/fetch.py:84–88 ·
view source on GitHub ↗
Get response body as a text string.
(self)
Source
from the content-addressed store, hash-verified
82
return
json.loads(await self.text())
83
84
async
def
text(self):
85
""
"
86
Get response body
as
a text string.
87
""
"
88
return
await self._response.text()
89
90
91
class
_FetchPromise:
Callers
1
json
Method · 0.95
Calls
1
text
Method · 0.45
Tested by
no test coverage detected