Skip to main content

Client library for the Gopherspace

Project description

Gophient

PyPI Maintainability

Python library to browse the Gopherspace

Read documentation

Features:

  • Light
  • Easy to use
  • Comes without dependencies

Getting started

  1. Install Gophient:
pip install gophient
  1. Create a gophient.Gopher instance and make requests (see examples below)

Examples

Get weather from Floodgap

import gophient

client = gophient.Gopher()
weather = client.request('gopher.floodgap.com', 'groundhog/ws')
print(weather)

Search on Veronica

import gophient

client = gophient.Gopher()
results = client.request('gopher.floodgap.com', 'v2/vs', query='plan 9')
print(results)

Download files

import gophient

client = gophient.Gopher()
apk = client.request('gopher.floodgap.com', 'overbite/files/OverbiteAndroid025.apk')
with open('app.apk', 'wb') as apk_file:
  apk_file.write(apk)

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

gophient-2.0.0.tar.gz (5.6 kB view hashes)

Uploaded Source

Built Distribution

gophient-2.0.0-py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 3

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