fw-http-client


Namefw-http-client JSON
Version 1.7.1 PyPI version JSON
download
home_pagehttps://gitlab.com/flywheel-io/tools/lib/fw-http-client
SummaryProd-ready HTTP client with timeout and retries
upload_time2024-01-25 12:13:00
maintainer
docs_urlNone
authorFlywheel
requires_python>=3.8,<4.0
licenseMIT
keywords flywheel http client
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # fw-http-client

Prod-ready HTTP client with timeouts and retries by default.

## Installation

Add as a `poetry` dependency to your project:

```bash
poetry add fw-http-client
```

## Usage

```python
from fw_http_client import HttpClient

client = HttpClient(client_name="my-app", client_version="1.0")
data = client.get("https://httpbin.org/json")
assert data.slideshow.title == "Sample Slide Show"
```

## Development

Install the project using `poetry` and enable `pre-commit`:

```bash
poetry install
pre-commit install
```

## License

[![MIT](https://img.shields.io/badge/license-MIT-green)](LICENSE)

            

Raw data

            {
    "_id": null,
    "home_page": "https://gitlab.com/flywheel-io/tools/lib/fw-http-client",
    "name": "fw-http-client",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "Flywheel,HTTP,client",
    "author": "Flywheel",
    "author_email": "support@flywheel.io",
    "download_url": "",
    "platform": null,
    "description": "# fw-http-client\n\nProd-ready HTTP client with timeouts and retries by default.\n\n## Installation\n\nAdd as a `poetry` dependency to your project:\n\n```bash\npoetry add fw-http-client\n```\n\n## Usage\n\n```python\nfrom fw_http_client import HttpClient\n\nclient = HttpClient(client_name=\"my-app\", client_version=\"1.0\")\ndata = client.get(\"https://httpbin.org/json\")\nassert data.slideshow.title == \"Sample Slide Show\"\n```\n\n## Development\n\nInstall the project using `poetry` and enable `pre-commit`:\n\n```bash\npoetry install\npre-commit install\n```\n\n## License\n\n[![MIT](https://img.shields.io/badge/license-MIT-green)](LICENSE)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Prod-ready HTTP client with timeout and retries",
    "version": "1.7.1",
    "project_urls": {
        "Documentation": "https://gitlab.com/flywheel-io/tools/lib/fw-http-client",
        "Homepage": "https://gitlab.com/flywheel-io/tools/lib/fw-http-client",
        "Repository": "https://gitlab.com/flywheel-io/tools/lib/fw-http-client"
    },
    "split_keywords": [
        "flywheel",
        "http",
        "client"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e880cc1111ada19d58ab23a673676048db59a5f56189f7274e40151ea95ff70e",
                "md5": "e85ce37729d82b4653a64482ac6a0abc",
                "sha256": "17a3b21222e414f1fa4b0b49909b197b79a9ce8dc2f523266a1175231a4890d6"
            },
            "downloads": -1,
            "filename": "fw_http_client-1.7.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e85ce37729d82b4653a64482ac6a0abc",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 9397,
            "upload_time": "2024-01-25T12:13:00",
            "upload_time_iso_8601": "2024-01-25T12:13:00.697430Z",
            "url": "https://files.pythonhosted.org/packages/e8/80/cc1111ada19d58ab23a673676048db59a5f56189f7274e40151ea95ff70e/fw_http_client-1.7.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-25 12:13:00",
    "github": false,
    "gitlab": true,
    "bitbucket": false,
    "codeberg": false,
    "gitlab_user": "flywheel-io",
    "gitlab_project": "tools",
    "lcname": "fw-http-client"
}
        
Elapsed time: 0.18373s