https://github.com/ctrlaltdev/makepi
🥧 A Pi API
https://github.com/ctrlaltdev/makepi
Last synced: 9 months ago
JSON representation
🥧 A Pi API
- Host: GitHub
- URL: https://github.com/ctrlaltdev/makepi
- Owner: ctrlaltdev
- License: mpl-2.0
- Created: 2019-08-02T21:33:39.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-04T19:23:55.000Z (over 6 years ago)
- Last Synced: 2025-02-14T19:39:23.514Z (11 months ago)
- Language: Python
- Homepage: https://pi.ctrlalt.dev
- Size: 113 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/ctrlaltdev/makePi/blob/master/LICENSE)


A Pi API: https://pi.ctrlalt.dev/
## Endpoints:
### GET
| Path | Returns | curl |
| --- | --- | --- |
| `/` | Pi with 100 decimals | `curl https://pi.ctrlalt.dev/` |
| `/` | Pi with n decimals | `curl https://pi.ctrlalt.dev/10` |
| `/decimals/` | Pi 100 first decimals | `curl https://pi.ctrlalt.dev/decimals/` |
| `/decimals/` | Pi n first decimals | `curl https://pi.ctrlalt.dev/decimals/10` |
| `/stream` | Stream of Pi decimals with a 500ms delay | `curl https://pi.ctrlalt.dev/stream` |
| `/stream/` | Stream of Pi decimals with a t ms delay | `curl https://pi.ctrlalt.dev/stream/1000` |
All endpoints but `stream` return json