Skip to main content

Gemi

Utilities for the Gemini protocol

Client Example

import asyncio
import gemi

async def main():
	client = gemi.AsyncClient()
	response = await client.request("geminiprotocol.net")

	for element in (await response.document()):
		print(repr(element))

asyncio.run(main())

Server Example

import gemi

@gemi.route("Default", "/")
async def home(request: gemi.Request) -> gemi.Response:
	return gemi.Response(20, "UvU", "text/plain")

server = gemi.AsyncServer("Default")
server.run()

Document Example

import gemi

doc = gemi.Document([
	gemi.Header("Hewwo!", 1),
	gemi.Text(""),
	gemi.Text("im gay"),
	gemi.Text(""),
	gemi.Link("https://git.barkshark.xyz/barkshark/gemi", "Gemi")
])

doc.dump("/var/lib/gemi-server/static/text.gmi", gemi.OutputFormat.GEMTEXT)

Documentation

Gemini Protocol

Metadata

Release files for gemi-python 0.1.4

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

Source distribution (sdist)

Source distribution for gemi-python 0.1.4
File Size Uploaded Provenance Actions
gemi_python-0.1.4.tar.gz 27.0 kB Without provenance Details for gemi_python-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gemi-python 0.1.4
File Interpreter ABI Platform Actions
gemi_python-0.1.4-py3-none-any.whl Python 3 none any Details for gemi_python-0.1.4-py3-none-any.whl

Total release size: 57.3 kB

Release files / gemi_python-0.1.4.tar.gz

Download URL gemi_python-0.1.4.tar.gz
Size 27.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e98d69aadca4fc77529bf3ecddbf2abbfa67c89f18f9451e2f20879d345d6683
BLAKE2b-256 checksum
How to use checksums
580c68ae72b65b8d59ec9c43e97591648ee423d4f6be6a8aedee0629f1d9ebc6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / gemi_python-0.1.4-py3-none-any.whl

Download URL gemi_python-0.1.4-py3-none-any.whl
Size 30.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a2d200404e841641972838bf583f389abc336729e95f54a9f6700475c82103f1
BLAKE2b-256 checksum
How to use checksums
15855dd8964db76dabb4049ebdb5e7f00091e4bf12b6e9dfd2baa762f7bc6bde
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Security for gemi-python 0.1.4

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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