Metadata-Version: 2.1
Name: scratchsession
Version: 1.0.0
Summary: A simple function for setting up scratch HTTP sessions.
Home-page: https://github.com/yuwex/scratchsession
Author: yuwex
License: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved :: MIT License
Classifier: Intended Audience :: Education
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.10
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE

# 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
```python
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 :(


