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
23
venv/lib/python3.11/site-packages/shellingham/__init__.py
Normal file
23
venv/lib/python3.11/site-packages/shellingham/__init__.py
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import importlib
|
||||
import os
|
||||
|
||||
from ._core import ShellDetectionFailure
|
||||
|
||||
__version__ = "1.5.4"
|
||||
|
||||
|
||||
def detect_shell(pid=None, max_depth=10):
|
||||
name = os.name
|
||||
try:
|
||||
impl = importlib.import_module(".{}".format(name), __name__)
|
||||
except ImportError:
|
||||
message = "Shell detection not implemented for {0!r}".format(name)
|
||||
raise RuntimeError(message)
|
||||
try:
|
||||
get_shell = impl.get_shell
|
||||
except AttributeError:
|
||||
raise RuntimeError("get_shell not implemented for {0!r}".format(name))
|
||||
shell = get_shell(pid, max_depth=max_depth)
|
||||
if shell:
|
||||
return shell
|
||||
raise ShellDetectionFailure()
|
||||
Loading…
Add table
Add a link
Reference in a new issue