Language: Python 3.7+
License: BSD 2-Clause
Pituophis is a Python 3 library for building Gopher clients and servers.
How to Install
At a prompt, run
Server Quick Start
If you want to host a Pituophis-based Gopher server, put this code in a file:
Here's a basic alt handler, if you're familiar with Python scripting and would like to add more interactivity to your server:
You can return a list of Item objects, bytes, or text. To use your alt handler, add the argument
Writing a Gophermap, a simplified form of a Gopher menu is pretty easy: just stick a file called
An interactive demo of Pituophis' client features is provided in the form of TreeGopher, a graphical Gopher client in <250 lines of code. It uses Pituophis, PySimpleGUI, and Pyperclip. It can browse Gopher in a hierarchical structure (similarly to WSGopher32, Cyberdog, and Little Gopher Client), read text files, download and save binary files (writing in chunks using
Made with Pituophis
These are my other personal projects that use Pituophis:
More places using Pituophis:
If you use Pituophis in your project, contact me and I'd be happy to put it on this page.