carefree-client


Namecarefree-client JSON
Version 0.1.10 PyPI version JSON
download
home_page
SummaryClient framework based on FastAPI
upload_time2023-05-17 13:21:01
maintainer
docs_urlNone
authorcarefree0910
requires_python
license
keywords python carefree-learn pytorch
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            `carefree-client` is a client framework based on `FastAPI`. It also supports interacting with Triton Inference Server.


# pip


## Install

```bash
pip install -e .
```


## Run

```bash
uvicorn apis.interface:app --host 0.0.0.0 --port 8123
```


# Docker


## Build

```bash
docker build -t cfclient .
```

If your internet environment lands in China, it might be faster to build with `Dockerfile.cn`:

```bash
docker build -t cfclient -f Dockerfile.cn .
```


## Run

```bash
docker run --rm -p 8123:8123 -v /full/path/to/your/client/logs:/carefree-client/apis/logs cfclient:latest
```

or

```bash
docker run --rm --link image_name_of_your_triton_server -p 8123:8123 -v /full/path/to/your/client/logs:/carefree-client/apis/logs cfclient:latest
```

In this case, you need to modify the `apis/interface.py` file as well: you need to modify the `constants` variable (defined at L27) and set the value of `triton_host` (defined at L28) from `None` to `image_name_of_your_triton_server`.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "carefree-client",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "python carefree-learn PyTorch",
    "author": "carefree0910",
    "author_email": "syameimaru.saki@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/e5/5f/a891c6b22bde36db9f22953944d1d13ba7fa9960d117980e848dd58c3975/carefree-client-0.1.10.tar.gz",
    "platform": null,
    "description": "`carefree-client` is a client framework based on `FastAPI`. It also supports interacting with Triton Inference Server.\r\n\r\n\r\n# pip\r\n\r\n\r\n## Install\r\n\r\n```bash\r\npip install -e .\r\n```\r\n\r\n\r\n## Run\r\n\r\n```bash\r\nuvicorn apis.interface:app --host 0.0.0.0 --port 8123\r\n```\r\n\r\n\r\n# Docker\r\n\r\n\r\n## Build\r\n\r\n```bash\r\ndocker build -t cfclient .\r\n```\r\n\r\nIf your internet environment lands in China, it might be faster to build with `Dockerfile.cn`:\r\n\r\n```bash\r\ndocker build -t cfclient -f Dockerfile.cn .\r\n```\r\n\r\n\r\n## Run\r\n\r\n```bash\r\ndocker run --rm -p 8123:8123 -v /full/path/to/your/client/logs:/carefree-client/apis/logs cfclient:latest\r\n```\r\n\r\nor\r\n\r\n```bash\r\ndocker run --rm --link image_name_of_your_triton_server -p 8123:8123 -v /full/path/to/your/client/logs:/carefree-client/apis/logs cfclient:latest\r\n```\r\n\r\nIn this case, you need to modify the `apis/interface.py` file as well: you need to modify the `constants` variable (defined at L27) and set the value of `triton_host` (defined at L28) from `None` to `image_name_of_your_triton_server`.\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Client framework based on FastAPI",
    "version": "0.1.10",
    "project_urls": null,
    "split_keywords": [
        "python",
        "carefree-learn",
        "pytorch"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e55fa891c6b22bde36db9f22953944d1d13ba7fa9960d117980e848dd58c3975",
                "md5": "8e1816bf22b46a9a868ac207a03681bf",
                "sha256": "ee95c07277e2cd5e49fa4e85de2757f0e4b7749966327254b0db7a5bdf2366f3"
            },
            "downloads": -1,
            "filename": "carefree-client-0.1.10.tar.gz",
            "has_sig": false,
            "md5_digest": "8e1816bf22b46a9a868ac207a03681bf",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 9789,
            "upload_time": "2023-05-17T13:21:01",
            "upload_time_iso_8601": "2023-05-17T13:21:01.714739Z",
            "url": "https://files.pythonhosted.org/packages/e5/5f/a891c6b22bde36db9f22953944d1d13ba7fa9960d117980e848dd58c3975/carefree-client-0.1.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-17 13:21:01",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "carefree-client"
}
        
Elapsed time: 1.20010s