summaryrefslogtreecommitdiffstats
path: root/unfinished/cocalc/__init__.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* moving to finished too9fo2023-04-281-47/+0
|
* Reformat code using PyCharmAymane Hrouch2023-04-271-1/+0
|
* well updatedAndrew Tsegaye2023-04-271-11/+28
|
* Update __init__.pyDaniele Polizzi2023-04-261-12/+16
| | | | | | | I changed the import statement from request import Session to import requests because in the original the Session class is the only class imported from the request library. In this case, it is more efficient to import the whole library with import requests and use requests.Session() instead of Session() and added various code comments Instead of having a separate dictionary, I created a headers dictionary and used the update() method to update the session header. The create() function returns the results of a request made to a website as a JSON dictionary using the .json() method. However, you don't need to import the json library explicitly because the json() function is a method of the Response object returned by session.post(). In other words, the .json() method does the json decoding for us, so we don't need to use the json module's json()
* code refractoringt.me/xtekky2023-04-221-0/+27