feat: indie status page MVP -- FastAPI + SQLite
- 8 DB models (services, incidents, monitors, subscribers, etc.) - Full CRUD API for services, incidents, monitors - Public status page with live data - Incident detail page with timeline - API key authentication - Uptime monitoring scheduler - 13 tests passing - TECHNICAL_DESIGN.md with full spec
This commit is contained in:
commit
902133edd3
4655 changed files with 1342691 additions and 0 deletions
|
|
@ -0,0 +1,27 @@
|
|||
from typing import Union
|
||||
from array import array
|
||||
|
||||
class URL:
|
||||
schema: bytes
|
||||
host: bytes
|
||||
port: int
|
||||
path: bytes
|
||||
query: bytes
|
||||
fragment: bytes
|
||||
userinfo: bytes
|
||||
|
||||
def parse_url(url: Union[bytes, bytearray, memoryview, array]) -> URL:
|
||||
"""Parse URL strings into a structured Python object.
|
||||
|
||||
Returns an instance of ``httptools.URL`` class with the
|
||||
following attributes:
|
||||
|
||||
- schema: bytes
|
||||
- host: bytes
|
||||
- port: int
|
||||
- path: bytes
|
||||
- query: bytes
|
||||
- fragment: bytes
|
||||
- userinfo: bytes
|
||||
"""
|
||||
...
|
||||
Loading…
Add table
Add a link
Reference in a new issue