https://github.com/superzombi/web-console
Python Web Console
https://github.com/superzombi/web-console
logger logging python-console
Last synced: 8 months ago
JSON representation
Python Web Console
- Host: GitHub
- URL: https://github.com/superzombi/web-console
- Owner: SuperZombi
- Created: 2024-12-04T18:30:44.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-09T21:44:52.000Z (about 1 year ago)
- Last Synced: 2025-04-14T06:46:05.351Z (8 months ago)
- Topics: logger, logging, python-console
- Language: Python
- Homepage: https://pypi.org/project/web-console-log/
- Size: 101 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# Web Console

### Example usage
```
pip install web_console_log
```
```python
from web_console import WebConsole
console = WebConsole()
console.log("Hello world")
console.loop()
```
### Constructor
```python
WebConsole(host="127.0.0.1", port=8080, show_url=True, debug=False)
```
### Methods
```python
console.log(msg)
console.warn(msg)
console.error(msg)
```
```python
console.url
```
```python
console.open() # open console_url in browser
```
```python
console.sleep(sec) # use this instead of time.sleep()
```
```python
console.loop() # use this if you dont have your code mainloop
```
## đŸ’²Donate