https://github.com/sloev/hemli
https://github.com/sloev/hemli
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sloev/hemli
- Owner: sloev
- License: mit
- Created: 2020-04-06T20:32:08.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-13T21:21:05.000Z (over 6 years ago)
- Last Synced: 2025-03-09T22:45:42.354Z (over 1 year ago)
- Language: Python
- Size: 18.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
To run the web app:
```
cd web
pip install poetry
poetry install
poetry run python app.py
```
to create a token:
```
curl 'http://127.0.0.1:9999/issue-key'
```
to post a base64 encoded text file:
```
curl -XPOST -F 'data=@test.txt' 'http://127.0.0.1:9999/YOUR_ID?apikey=YOUR_API_KEY'
```
to listen to live events (fake or now)
```
visit in browser
http://127.0.0.1:9999/YOUR_ID/stream
```
other code:
web/src/middleware:ContentSizeLimitMiddleware is from https://github.com/steinnes/content-size-limit-asgi