gophient


Namegophient JSON
Version 2.0.0 PyPI version JSON
download
home_pagehttps://github.com/arichr/gophient
SummaryClient library for the Gopherspace
upload_time2024-03-01 21:22:23
maintainer
docs_urlNone
authorArisu Wonderland
requires_python>=3.8,<4.0
licenseMIT
keywords gopher gophient client python3 gopher-client gopherspace module library
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <p align="center">
    <h1 align="center">Gophient</h1>
    <p align="center">
    <a href="https://pypi.org/project/gophient/"><img alt="PyPI" src="https://img.shields.io/pypi/v/gophient?style=flat&logo=python&logoColor=white"></a>
    <a href="https://codeclimate.com/github/arichr/gophient/maintainability"><img alt="Maintainability" src="https://api.codeclimate.com/v1/badges/d83cf869ea9fa8d05a6f/maintainability"></a>
</p>
    <p align="center">Python library to browse the Gopherspace</p>
    <p align="center">
        <a href="https://arichr.github.io/gophient/"><img alt="Read documentation" src="https://img.shields.io/badge/read-documentation-green?style=for-the-badge&logo=python&logoColor=white"></a>
    </p>
</p>

**Features:**

* Light
* Easy to use
* Comes without dependencies

## Getting started

1. Install Gophient:
```console
pip install gophient
```
2. Create a `gophient.Gopher` instance and make requests ([see examples below](#examples))

## Examples

### Get weather from Floodgap

```python
import gophient

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

### Search on Veronica

```python
import gophient

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

### Download files

```python
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)
```


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/arichr/gophient",
    "name": "gophient",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "gopher,gophient,client,python3,gopher-client,gopherspace,module,library",
    "author": "Arisu Wonderland",
    "author_email": "arisuchr@riseup.net",
    "download_url": "https://files.pythonhosted.org/packages/27/5c/1c06a97b7aebb30466165d02503bc917c2862085fb3b20bc73c02bc7ba5b/gophient-2.0.0.tar.gz",
    "platform": null,
    "description": "<p align=\"center\">\n    <h1 align=\"center\">Gophient</h1>\n    <p align=\"center\">\n    <a href=\"https://pypi.org/project/gophient/\"><img alt=\"PyPI\" src=\"https://img.shields.io/pypi/v/gophient?style=flat&logo=python&logoColor=white\"></a>\n    <a href=\"https://codeclimate.com/github/arichr/gophient/maintainability\"><img alt=\"Maintainability\" src=\"https://api.codeclimate.com/v1/badges/d83cf869ea9fa8d05a6f/maintainability\"></a>\n</p>\n    <p align=\"center\">Python library to browse the Gopherspace</p>\n    <p align=\"center\">\n        <a href=\"https://arichr.github.io/gophient/\"><img alt=\"Read documentation\" src=\"https://img.shields.io/badge/read-documentation-green?style=for-the-badge&logo=python&logoColor=white\"></a>\n    </p>\n</p>\n\n**Features:**\n\n* Light\n* Easy to use\n* Comes without dependencies\n\n## Getting started\n\n1. Install Gophient:\n```console\npip install gophient\n```\n2. Create a `gophient.Gopher` instance and make requests ([see examples below](#examples))\n\n## Examples\n\n### Get weather from Floodgap\n\n```python\nimport gophient\n\nclient = gophient.Gopher()\nweather = client.request('gopher.floodgap.com', 'groundhog/ws')\nprint(weather)\n```\n\n### Search on Veronica\n\n```python\nimport gophient\n\nclient = gophient.Gopher()\nresults = client.request('gopher.floodgap.com', 'v2/vs', query='plan 9')\nprint(results)\n```\n\n### Download files\n\n```python\nimport gophient\n\nclient = gophient.Gopher()\napk = client.request('gopher.floodgap.com', 'overbite/files/OverbiteAndroid025.apk')\nwith open('app.apk', 'wb') as apk_file:\n  apk_file.write(apk)\n```\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Client library for the Gopherspace",
    "version": "2.0.0",
    "project_urls": {
        "Documentation": "https://arichr.github.io/gophient/",
        "Homepage": "https://github.com/arichr/gophient",
        "Repository": "https://github.com/arichr/gophient"
    },
    "split_keywords": [
        "gopher",
        "gophient",
        "client",
        "python3",
        "gopher-client",
        "gopherspace",
        "module",
        "library"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "267a6f3891dccf73625a6aa64d5c33eb462e2470dfc62e72a911ba53a1b2c2c9",
                "md5": "f9a5a7e2a9a74411de05a95fbe13db44",
                "sha256": "c672d72ae8c79e25c773736acb24dc96f97307ee5471ce5afa1d6badc338736f"
            },
            "downloads": -1,
            "filename": "gophient-2.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f9a5a7e2a9a74411de05a95fbe13db44",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 6003,
            "upload_time": "2024-03-01T21:22:21",
            "upload_time_iso_8601": "2024-03-01T21:22:21.265095Z",
            "url": "https://files.pythonhosted.org/packages/26/7a/6f3891dccf73625a6aa64d5c33eb462e2470dfc62e72a911ba53a1b2c2c9/gophient-2.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "275c1c06a97b7aebb30466165d02503bc917c2862085fb3b20bc73c02bc7ba5b",
                "md5": "a02f66ada2baad313e5f17cde0b2063a",
                "sha256": "38811b335285a6c861d09c4743b4f8bda8b05192c8a87c5cf015e20dbf6f61b3"
            },
            "downloads": -1,
            "filename": "gophient-2.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "a02f66ada2baad313e5f17cde0b2063a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 5573,
            "upload_time": "2024-03-01T21:22:23",
            "upload_time_iso_8601": "2024-03-01T21:22:23.144833Z",
            "url": "https://files.pythonhosted.org/packages/27/5c/1c06a97b7aebb30466165d02503bc917c2862085fb3b20bc73c02bc7ba5b/gophient-2.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-01 21:22:23",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "arichr",
    "github_project": "gophient",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "gophient"
}
        
Elapsed time: 0.20340s