Download fixtures/seed_project/session.py from tailot/lingologos-thinkingpython: direct link, hf CLI and curl.
- Browser
- Download file 324 Bytes
-
https://huggingface.co/datasets/tailot/lingologos-thinkingpython/resolve/main/fixtures/seed_project/session.py
- Command line
-
hf download hf://datasets/tailot/lingologos-thinkingpython/fixtures/seed_project/session.py
-
curl -L -o session.py https://huggingface.co/datasets/tailot/lingologos-thinkingpython/resolve/main/fixtures/seed_project/session.py
324 Bytes
| import base64 | |
| import uuid | |
| def tokens(parts=[]): | |
| joined = [] | |
| for p in parts: | |
| joined.append(p.lower()) | |
| return joined | |
| def ttl(minutes: int): | |
| return minutes * 60 | |
| def bind(user): | |
| if user.get('verified'): | |
| return user.get('id') | |
| return None | |
| def tag(user): | |
| return 'user ' + user['id'] | |