michael-lazar / gemini-portal

A gemini-to-http proxy server

Home Page:https://portal.mozz.us

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build

Gemini Portal (v2)

This repository contains the code powering https://portal.mozz.us.

The original version was written with Flask, maintained in a personal repository and never publicly released. This repository is a full rewrite (version 2) with following goals:

  • Switching to an ASGI framework (quartz) to support more simultaneous proxy connections.
  • Making the codebase more maintainable in the long term by adding unit tests, type hints, and linters.

This is probably only useful for myself. You are welcome to use the code, but I am not writing this with the goal of making a general purpose gemini-to-http proxy, of which there are already many other open source alternatives.

Development

# Download the source
git clone https://github.com/michael-lazar/gemini-portal
cd gemini-portal/

# Initialize a virtual environment and install pip dependencies, etc.
tools/boostrap

# Initialize pre-commit hooks
pre-commit install

# Launch the dev server
tools/quart --debug run -p 8000

# Run the tests, linters, etc.
tools/mypy

tools/pytest
tools/pytest --run-integration

# Rebuild requirements
tools/pip-compile
tools/pip-install

License

The Human Software License

A hobbyist software license that promotes maintainer happiness through personal interactions. Non-human legal entities such as corporations and agencies aren't allowed to participate.

About

A gemini-to-http proxy server

https://portal.mozz.us

License:Other


Languages

Language:Python 77.5%Language:HTML 18.7%Language:CSS 2.6%Language:Shell 1.0%Language:Dockerfile 0.2%