Name | fetchx JSON |
Version |
0.0.36
JSON |
| download |
home_page | None |
Summary | fetchx library and its two main functions "call" and "fetch" are designed to allow users to rapidly scrape/automate web applications. |
upload_time | 2025-09-12 21:20:20 |
maintainer | None |
docs_url | None |
author | Jaromir Sivic |
requires_python | >=3.10 |
license | MIT |
keywords |
fetch
fetchx
httpx
http 2
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# uurest
Library that allows developers to easily integrate their application(s) with Unicorn Systems solutions and products using REST API.
## !!!!! DEPRECATED. DO NOT USE THIS LIBRARY !!!!!

## How To Use the Library
```python
from uurest import *
# fetch function behavior can be setup globally or by every "fetch" call
fetch_global_setup(raise_exception_on_error=False, timeout=120, verbose=True)
response = fetch("https://www.websitewhichdoesnotexist.net") # fetch non existing web page
# response.json = {"__error__": "Unknown response type received when calling \"https://www.websitewhichdoesnotexist.net\" ...
response = fetch("http://devserver.com/tsMetadataTransfer/get") # fetch data without authorization / without sending a token
# response.json = {"__error__": "Http/Https error code \"403\" occured. Cannot process text data ...
response = fetch("https://upload.wikimedia.org/wikipedia/commons/c/cd/Google_Logo_%281998%29.png") # fetch binary file
# response.json = {"__base64__": "iVBORw0KGgoAAAANSUhEUgAAC0AAAAMWEAYAAAAy59uuAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQ ...
response = fetch("https://upload.wikimedia.org/wikipedia/commons/2/2f/Google_2015_logo.svg") # fetch svg, html, css, js, ...
# response.json = {"__text__": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<svg xmlns=\"http://www.w3 ...
# open web browser (Chrome, Edge). On the keyboard press F12 to open "DevTools". Click on the "Network" tab in the menu
# Select the request in the list. Right click on the selected item. In the popup menu click on the "Copy" -> "Copy as fetch"
# Paste the copied command from the clipboard directly into the source code. It should look like the code below.
response = fetch("https://jsonplaceholder.typicode.com/todos/1", {
"headers": {
"accept": "*/*",
},
"referrer": "https://jsonplaceholder.typicode.com/",
"body": null,
"method": "GET"
})
# response.json = {"userId": 1, "id": 1, "title": "delectus aut autem", "completed": false}
```
You can play with the response using following inbuild methods
```python
from uurest import *
response = fetch("https://jsonplaceholder.typicode.com/todos/1", {
"headers": {
"accept": "*/*",
},
"referrer": "https://jsonplaceholder.typicode.com/",
"body": null,
"method": "GET"
})
# prints formatted json
print(response) # {"userId": 1, "id": 1, "title": "delectus aut autem", "completed": false}
print(response.json["title"]) # delectus aut autem
json_object = response.json.parse() # transforms dictionary into the object
if json_object.completed:
print("Successfully competed")
else:
print("Not completed")
print(str(response.http_status_code))
print(response.content_type)
response.save_json("./test.json")
response.save_raw_content("./raw_content.raw")
```
Check out: https://www.youtube.com/
Raw data
{
"_id": null,
"home_page": null,
"name": "fetchx",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "fetch, fetchx, httpx, http 2",
"author": "Jaromir Sivic",
"author_email": "unknown@unknown.com",
"download_url": "https://files.pythonhosted.org/packages/0a/ee/3b6a9bea76f73f8989db943c6cfcfd803d3555e8b0583a2f38ca7eed8c7b/fetchx-0.0.36.tar.gz",
"platform": null,
"description": "\n# uurest\nLibrary that allows developers to easily integrate their application(s) with Unicorn Systems solutions and products using REST API.\n\n## !!!!! DEPRECATED. DO NOT USE THIS LIBRARY !!!!!\n\n\n\n## How To Use the Library\n```python\nfrom uurest import *\n\n# fetch function behavior can be setup globally or by every \"fetch\" call\nfetch_global_setup(raise_exception_on_error=False, timeout=120, verbose=True)\n\nresponse = fetch(\"https://www.websitewhichdoesnotexist.net\") # fetch non existing web page\n# response.json = {\"__error__\": \"Unknown response type received when calling \\\"https://www.websitewhichdoesnotexist.net\\\" ...\nresponse = fetch(\"http://devserver.com/tsMetadataTransfer/get\") # fetch data without authorization / without sending a token\n# response.json = {\"__error__\": \"Http/Https error code \\\"403\\\" occured. Cannot process text data ...\nresponse = fetch(\"https://upload.wikimedia.org/wikipedia/commons/c/cd/Google_Logo_%281998%29.png\") # fetch binary file\n# response.json = {\"__base64__\": \"iVBORw0KGgoAAAANSUhEUgAAC0AAAAMWEAYAAAAy59uuAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQ ...\nresponse = fetch(\"https://upload.wikimedia.org/wikipedia/commons/2/2f/Google_2015_logo.svg\") # fetch svg, html, css, js, ...\n# response.json = {\"__text__\": \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\"?>\\n<svg xmlns=\\\"http://www.w3 ...\n\n# open web browser (Chrome, Edge). On the keyboard press F12 to open \"DevTools\". Click on the \"Network\" tab in the menu\n# Select the request in the list. Right click on the selected item. In the popup menu click on the \"Copy\" -> \"Copy as fetch\"\n# Paste the copied command from the clipboard directly into the source code. It should look like the code below.\nresponse = fetch(\"https://jsonplaceholder.typicode.com/todos/1\", {\n \"headers\": {\n \"accept\": \"*/*\",\n },\n \"referrer\": \"https://jsonplaceholder.typicode.com/\",\n \"body\": null,\n \"method\": \"GET\"\n})\n# response.json = {\"userId\": 1, \"id\": 1, \"title\": \"delectus aut autem\", \"completed\": false}\n```\n\nYou can play with the response using following inbuild methods\n```python\nfrom uurest import *\n\nresponse = fetch(\"https://jsonplaceholder.typicode.com/todos/1\", {\n \"headers\": {\n \"accept\": \"*/*\",\n },\n \"referrer\": \"https://jsonplaceholder.typicode.com/\",\n \"body\": null,\n \"method\": \"GET\"\n})\n# prints formatted json\nprint(response) # {\"userId\": 1, \"id\": 1, \"title\": \"delectus aut autem\", \"completed\": false}\nprint(response.json[\"title\"]) # delectus aut autem\njson_object = response.json.parse() # transforms dictionary into the object\nif json_object.completed:\n print(\"Successfully competed\")\nelse:\n print(\"Not completed\")\nprint(str(response.http_status_code))\nprint(response.content_type)\nresponse.save_json(\"./test.json\")\nresponse.save_raw_content(\"./raw_content.raw\")\n\n\n```\n\nCheck out: https://www.youtube.com/\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "fetchx library and its two main functions \"call\" and \"fetch\" are designed to allow users to rapidly scrape/automate web applications.",
"version": "0.0.36",
"project_urls": null,
"split_keywords": [
"fetch",
" fetchx",
" httpx",
" http 2"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "24d65dd5892f2623a779765f6d289e30e2deae9c7c4d258a81d335116a7f7c22",
"md5": "2f16d3e917e66b40dba0cf724c42dac1",
"sha256": "b9473494b4aeb306e82996c6f8e782d4109add6b7239c4f2b7f8724ddc15a2ee"
},
"downloads": -1,
"filename": "fetchx-0.0.36-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2f16d3e917e66b40dba0cf724c42dac1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 42209,
"upload_time": "2025-09-12T21:20:19",
"upload_time_iso_8601": "2025-09-12T21:20:19.733598Z",
"url": "https://files.pythonhosted.org/packages/24/d6/5dd5892f2623a779765f6d289e30e2deae9c7c4d258a81d335116a7f7c22/fetchx-0.0.36-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "0aee3b6a9bea76f73f8989db943c6cfcfd803d3555e8b0583a2f38ca7eed8c7b",
"md5": "7fe351a1fe5707f70399917eea88bb02",
"sha256": "e8f6608f2895cff598a70773e661e5f92b29b5063b685212a6e7486714f67848"
},
"downloads": -1,
"filename": "fetchx-0.0.36.tar.gz",
"has_sig": false,
"md5_digest": "7fe351a1fe5707f70399917eea88bb02",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 37387,
"upload_time": "2025-09-12T21:20:20",
"upload_time_iso_8601": "2025-09-12T21:20:20.931814Z",
"url": "https://files.pythonhosted.org/packages/0a/ee/3b6a9bea76f73f8989db943c6cfcfd803d3555e8b0583a2f38ca7eed8c7b/fetchx-0.0.36.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-09-12 21:20:20",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "fetchx"
}