Skip to main content

finger2gemtext - A simple library for converting finger output to Gemtext

Introduction

finger2gemtext is a small and simple library that provides code for converting finger responses into the hypertext markup language of the Gemini project.

Installation

finger2gemtext is available from pypi and can be installed with your package installer of choice.

With pip:

pip install finger2gemtext

With uv:

uv add finger2gemtext

Quick start

The library provides a single main conversion function called finger_to_gemtext. It is passed a string that is the finger response you wish to convert, and the result is a string that is the resulting Gemtext.

A very minimal converter might look like:

import fileinput
from .convert import finger_to_gemtext

def convert() -> None:
    """Parse the input from stdin or files and print the parsed Gemtext."""
    with fileinput.input() as finger_content:
        print(finger_to_gemtext("".join(finger_content)))

While it is primarily intended as a library to be used from other Python code, it does contain a simple test command line tool, which can be accessed either via the Python -m switch, or depending on your environment, via the finger2gemtext command. For example, if you were to run this command:

finger @typed-hole.org | finger2gemtext

you'd get output like this:

[typed-hole.org]

Welcome to the Typed Hole
Uptime:  14:10:28 up 248 days, 22:12,  0 user,  load average: 0.44, 0.34, 0.44
Users currently logged in: probably julien

Available fingers:

=> username username:           get user infos
=> feed feed:                   get my latest toots
=> lobsters lobsters:           get lobste.rs hottest stories
=> weather weather:             get typed-hole.org current weather
=> temp temp:                   get typed-hole.org current CPU temperature
=> cyoa cyoa:                   finger your own adventure
=> textfile textfile:           read a random textfile from textfiles.com
=> smog smog:                   read SMOG e-zine issues

See the main documentation for the full API.

Metadata

Release files for finger2gemtext 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for finger2gemtext 0.1.0
File Size Uploaded Provenance
finger2gemtext-0.1.0.tar.gz 4.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for finger2gemtext 0.1.0
File Interpreter ABI Platform
finger2gemtext-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.5 kB

Release files / finger2gemtext-0.1.0.tar.gz

Download URL finger2gemtext-0.1.0.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7bbfa97852018d9b8013143540a4a216844ee0f100ae0b4f133ac6555fc74d19
BLAKE2b-256 checksum
How to use checksums
68e418cd643abb1cec703789fc315b240274d34297c887868c38e113e0d0c26c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / finger2gemtext-0.1.0-py3-none-any.whl

Download URL finger2gemtext-0.1.0-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4017d4d0315bb3d462c5e11ac02485349f1f6c13b8bcba2473934c6827648ed4
BLAKE2b-256 checksum
How to use checksums
80bb77127548870180fee4b69afb81349573e0a71965f5514b90a98ee8bddf82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for finger2gemtext 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page