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 details)
Built Distribution
File details
Details for the file gophient-2.0.0.tar.gz
.
File metadata
- Download URL: gophient-2.0.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38811b335285a6c861d09c4743b4f8bda8b05192c8a87c5cf015e20dbf6f61b3 |
|
MD5 | a02f66ada2baad313e5f17cde0b2063a |
|
BLAKE2b-256 | 275c1c06a97b7aebb30466165d02503bc917c2862085fb3b20bc73c02bc7ba5b |
File details
Details for the file gophient-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: gophient-2.0.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c672d72ae8c79e25c773736acb24dc96f97307ee5471ce5afa1d6badc338736f |
|
MD5 | f9a5a7e2a9a74411de05a95fbe13db44 |
|
BLAKE2b-256 | 267a6f3891dccf73625a6aa64d5c33eb462e2470dfc62e72a911ba53a1b2c2c9 |