scratchsession
The easy way to set up scratch session objects.
scratchsession allows you to set up a scratch HTTP session the right way. With just a single function, you never have to worry about unnecesary parsing times or bad request order. It does not use any RegEx or read HTML—just pure requests!
Installing / Using
scratchsession can be installed via PyPI:
python -m pip install scratchsession
It can also just be copy/pasted into your own code. Make sure to copy all of the prepare_session function and import requests if you do this!
Example
from scratchsession import prepare_session
session = prepare_session("your_username_here", "your_password_here")
# Print your account navigation info:
resp = session.get("https://scratch.mit.edu/fragment/account-nav.json")
print(resp.text)
Questions? Ask here:
- Nothing here yet!
- Still nothing :(
Metadata
Release files for scratchsession 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| scratchsession-1.0.0.tar.gz | 3.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| scratchsession-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.3 kB
Release files / scratchsession-1.0.0.tar.gz
| Download URL | scratchsession-1.0.0.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
90caa5fe14aac093d95f5ac70020ea15a66032bc3aae9f33c4a84c9298eaa7a0
|
|
BLAKE2b-256 checksum How to use checksums |
b9930d47c5b18a9c6fd686eb72d2ec183d77f416b7dc6a45e26622c1b17a2860
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
|
Release files / scratchsession-1.0.0-py3-none-any.whl
| Download URL | scratchsession-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6d21c6893e284a52ea23d995fc69d237b9f849435a9fdc2eadebe8d70725c68f
|
|
BLAKE2b-256 checksum How to use checksums |
f6264fbaa12cca9a6ca702e6e35090fcdaaeed6aa4c6aa4e6c08de71e8ddfcea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
|