Skip to main content

Client library for the Gopherspace

Project description

Gophient

repo style: chr PyPI Maintainability

Gophient is client library for the Gopherspace. It doesn't require any dependencies and is easy to use.

Features:

  • Browse the Gopherspace
  • Follow links
  • Download content

Read documentation

Examples

Get weather from Floodgap

import gophient

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

Search by 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-1.1.1.tar.gz (5.7 kB view hashes)

Uploaded Source

Built Distribution

gophient-1.1.1-py3-none-any.whl (5.7 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