Do you remember www?
Project description
McRoss is a minimal and usable gemini:// browser written in python and tkinter, meaning it Just Works (tm) on any self-respecting desktop OS: Linux, Windows, Mac OS, and maybe the BSDs? Never tried one of those.
It currently looks like this:
Surfing plaintext and gemini content is already working well. The catch is it currently doesn't support downloading binary content and TOFU TLS verification. See feature checklist below for more details.
See my blog post for the rationale behind this project.
Installation
You need python 3.7 or higher. McRoss also uses idlelib
which is supposed to
be included in the standard library but some linux distros split it into a
separate package which you'll need to install manually. I know at least Ubuntu
and Void Linux do this.
pip install mcross
mcross
Better distribution methods to be explored later. Maybe it's finally time to try nuitka?
Development
To get started:
pyenv install 3.7.7
pyenv virtualenv 3.7.7 mcross
pyenv activate
poetry install
mcross
# to publish, first bump version in pyproject.toml then
poetry publish --build
Feature checklist
- back-forward buttons
- handle redirects
- non-blocking I/O using curio
- more visual indicators: waiting cursor, status bar
- parse gemini's advanced line types
- properly handle mime types (gemini/plaintext/binary)
- configurable document styling
- human-friendly distribution
- TOFU TLS (right now it always accepts self-signed certs)
Long term high-level goals:
Easy for end users to install
If the words cargo build
exists in the installation guide for your G U I
application then I'm sorry it's not software made for people to use.
What-you-see-is-what-you-write
A rendered text/gemini viewport should preserve its original text content. This way once you've read a gemini page on the browser, you already know how to write one. No "View Source" necessary.
Responsive & pleasant to use
The Castor browser doesn't have visual indicators at all, for example, when clicking on a link it just appears to do nothing until the new page is completely loaded. That is A Bad Thing (tm).
Lightweight
In terms of both disk space & memory/cpu usage. The python/tkinter combo already puts us at a pretty good starting point.
Server bugs/surprises
Forces gemini:// in request
Spec says protocol part is optional, but if I omit that one the server will
respond with 53 No proxying to other hosts!
.
Newline
Spec says a newline should be \r\n but the server running gemini.circumlunar.space just uses \n every time.
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
File details
Details for the file mcross-0.5.11.tar.gz
.
File metadata
- Download URL: mcross-0.5.11.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.8.3 Linux/5.6.14-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2e666bff7f00e62208f025997c58b8f9b0e2af11aabcb2f6f268667ad977530 |
|
MD5 | d67f2683908f3a5b1c6086f19e7db825 |
|
BLAKE2b-256 | 19bf28bd5862dcbebdb24eb9494fcb909080de311c3480c1b81b7a85b21b5699 |
File details
Details for the file mcross-0.5.11-py3-none-any.whl
.
File metadata
- Download URL: mcross-0.5.11-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.8.3 Linux/5.6.14-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47cc797fa8080b88415b55e8308e8ed3f6e4d89d47ec299d4f7b78b06cc73012 |
|
MD5 | 9071d24dcb0fd7e7d8abb1ce4324dc7e |
|
BLAKE2b-256 | e0d65a5500770188813cff788129a78e679e22d1f074b6debb259b3d578cf43a |