Client library for the Gopherspace
Project description
Gophient
Python library to browse the Gopherspace
Features:
- Light
- Easy to use
- Comes without dependencies
Getting started
- Install Gophient:
pip install gophient
- 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)