A simple CLI-based web browser and HTML parser
Project description
litesurf
A simple Python CLI tool to create a basic web browser.
Table of Contents
Installation
-
Clone the repository:
git clone https://github.com/bhatishan2003/litesurf cd litesurf
Create and activate a virtual environment:
-
Create a Virtual Environment [Optional, but recommended]
Run the following command to create a virtual environment:
python3 -m venv .venv
-
Activate:
-
Windows (PowerShell):
.venv\Scripts\activate
-
Linux/Mac (Bash):
source .venv/bin/activate
-
-
Deactivate:
deactivate
-
Install the package:
pip install .
-
For development (editable mode):
pip install -e .
Usage
Command Line Usage
-
Following commands should be entered to get a pop-up browse.
litesurf litesurf --file test.html
Building Standalone Executables with PyInstaller
You can generate platform-specific standalone executables for your litesurf project using PyInstaller.
1. Install PyInstaller
pip install pyinstaller
-
Windows
pyinstaller --name litesurf --onefile run_litesurf.py
-
MacOS
pyinstaller --name litesurf --onefile --windowed run_litesurf.py
-
Convert the .app into a .dmg for distribution:
hdiutil create -volname litesurf -srcfolder dist/litesurf.app -ov -format UDZO litesurf.dmg
-
-
Linux
-
You can create a cross-platform source distribution from Windows (or Linux):
python setup.py sdist
-
Linux users can install it via:
pip install litesurf-0.0.1.tar.gz
-
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file litesurf-0.0.1.tar.gz.
File metadata
- Download URL: litesurf-0.0.1.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33a85048f7282d91a95693fb38813f87bac4179a2e50ef68b11c3a98e9be93d1
|
|
| MD5 |
ba2a3b64dc24f7b79dd454cdf6a82ab9
|
|
| BLAKE2b-256 |
830274a1aac866b55fe7ece9333974213ad170999a987af6fe395a7d2286d1f7
|
File details
Details for the file litesurf-0.0.1-py3-none-any.whl.
File metadata
- Download URL: litesurf-0.0.1-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2f1aaf85bffcc205529ce2c59b9f6c62ebd4913870cb9085f7bb26386c9eeca
|
|
| MD5 |
3c1e3ed03c139b9e32da33aa93494686
|
|
| BLAKE2b-256 |
c6e68fee5793a9ff99b9ab093a70b6d52eaf493e5971ef3055387123efc3a13d
|