gqlite


Namegqlite JSON
Version 0.2.0 PyPI version JSON
download
home_page
SummaryLightweight client for GraphQL in Python
upload_time2023-08-23 12:56:37
maintainer
docs_urlNone
authorSeto Balian
requires_python>=3.10,<4.0
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # gqlite

Simple client for querying GraphQL from Python using
[`requests`](https://requests.readthedocs.io/en/latest/).

## Installation

```bash
pip install gqlite
```

## Usage

First set the two environment variables `GQLITE_URL` and `GQLITE_TOKEN`.
You can also use a `.env` file for these. Then:

```python
import gqlite

text = """
  hero {
    name
  }
}
"""
gqlite.query(text)  # returns a dict

```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "gqlite",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10,<4.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "Seto Balian",
    "author_email": "seto.balian@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/ff/81/909205318441776418d1762dd7a322069ffb019138a34f89ce8eafd8d1ee/gqlite-0.2.0.tar.gz",
    "platform": null,
    "description": "# gqlite\n\nSimple client for querying GraphQL from Python using\n[`requests`](https://requests.readthedocs.io/en/latest/).\n\n## Installation\n\n```bash\npip install gqlite\n```\n\n## Usage\n\nFirst set the two environment variables `GQLITE_URL` and `GQLITE_TOKEN`.\nYou can also use a `.env` file for these. Then:\n\n```python\nimport gqlite\n\ntext = \"\"\"\n  hero {\n    name\n  }\n}\n\"\"\"\ngqlite.query(text)  # returns a dict\n\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Lightweight client for GraphQL in Python",
    "version": "0.2.0",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7527eab90d709638ef4196312936272dbc659ee51498a6cae07eea5722fe0112",
                "md5": "5342fdfd7aecbf82f74e7c937c6afce8",
                "sha256": "949d140d60709c57d1e4a941c65abe9674fa638b4e35fb073e23e393f864d690"
            },
            "downloads": -1,
            "filename": "gqlite-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5342fdfd7aecbf82f74e7c937c6afce8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10,<4.0",
            "size": 2458,
            "upload_time": "2023-08-23T12:56:35",
            "upload_time_iso_8601": "2023-08-23T12:56:35.794158Z",
            "url": "https://files.pythonhosted.org/packages/75/27/eab90d709638ef4196312936272dbc659ee51498a6cae07eea5722fe0112/gqlite-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ff81909205318441776418d1762dd7a322069ffb019138a34f89ce8eafd8d1ee",
                "md5": "ca5450be21772d18d787816857f8f7e0",
                "sha256": "b3adb692252447a59578c03a1b706058662089bd3bc076c6701d16f591580ac7"
            },
            "downloads": -1,
            "filename": "gqlite-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "ca5450be21772d18d787816857f8f7e0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10,<4.0",
            "size": 2210,
            "upload_time": "2023-08-23T12:56:37",
            "upload_time_iso_8601": "2023-08-23T12:56:37.353876Z",
            "url": "https://files.pythonhosted.org/packages/ff/81/909205318441776418d1762dd7a322069ffb019138a34f89ce8eafd8d1ee/gqlite-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-23 12:56:37",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "gqlite"
}
        
Elapsed time: 0.34338s