Skip to main content

A Python gopher server.

Project description

gb logo, a gopher in a ball

gb

rtd badge license badge black badge

About

gb or gopherball is a gopher server written in Python with the main goals of ease of use and integration. The name gopherball is inspired by a recurring theme in the Calvin & Hobbes comicbooks and a tongue in cheek reference of an alternative to the World Wide Web as we know it today.

Examples

Quick examples to get you running.

gb --mode=implicit . will start a gopher server on 127.0.0.1 port 7070 serving a recursive index of files starting from the current directory.

gb --mode=implicit --magic . will start gb in magic-mode on 127.0.0.1 port 7070. Magic mode will make gb guess at filetypes.

gb --mode=implicit --host="127.1.1.1" --port 1025 . will start gb in implicit mode on the chosen ip and port. Note that using ports under 1024 requires superuser permissions!

Technology

gb is written with the help of Python 3.9 and higher and the Tornado framework for its networking.

Modes

gb has one main mode of operation that is commonly used. More modes are planned for the future.

implicit

Implicit mode serves a directory recursively. Indexes are automatically generated and text files are served to the client. Data files are also supported.

Magic

gb will serve all non-directories as type 9 files, these are non-readable files and most clients will prompt for download. Turning on magic with --magic will let gb try to determine the correct filetypes.

Contributing

The source code for gb lives on my Gitea where you can also submit issues and pull requests. It mostly needs help by people with the ability to test in various clients and libraries that might still support the gopher protocol.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gb-0.1.1.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

gb-0.1.1-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file gb-0.1.1.tar.gz.

File metadata

  • Download URL: gb-0.1.1.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.11.3 Linux/6.2.11-300.fc38.x86_64

File hashes

Hashes for gb-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e2255bcd2f8349d4bc5b4216cfc2fe8600a7e7d09ca72f8aac76e1ab7f4ea640
MD5 355469540bc46d3076cea25c7cc99d55
BLAKE2b-256 4925c5d4264e8e90133bd446aeb8e2e9c9645f56603b06ce39c07456ecdc8de5

See more details on using hashes here.

File details

Details for the file gb-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: gb-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.11.3 Linux/6.2.11-300.fc38.x86_64

File hashes

Hashes for gb-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4d00f77ea0005da07c966b36503fb1a57f81f50b4d588adc903b70ddb63c9ea8
MD5 4063eb954e9c59bc8900d7486ddd5b6f
BLAKE2b-256 80f3562d31035750d429737ae5b1cffce2c703614a2a8a2ed94b9fd6228e1196

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page