Configuration¶
The enable_admin() method accepts the following parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
host |
str |
"127.0.0.1" |
The host address to bind to |
port |
int |
8081 |
The port number to listen on |
serve_ui |
bool |
True |
Whether to serve the web UI at root path |
remote |
bool |
False |
Whether to allow remote connections |
auth_token |
str \| None |
None |
Authentication token for API access |
Configuration Examples¶
AdminInfo Object¶
The enable_admin() method returns an AdminInfo object with the following attributes:
| Attribute | Type | Description |
|---|---|---|
host |
str |
The host address the server is bound to |
port |
int |
The port number the server is listening on |
url |
str |
The full URL to access the admin panel |
token |
str \| None |
The authentication token (if auth is enabled) |