spellbook-serve-client


Namespellbook-serve-client JSON
Version 0.0.0a1 PyPI version JSON
download
home_pagehttps://scaleapi.github.io/spellbook-serve/
SummarySpellbok Serve Python Client
upload_time2023-07-14 08:42:49
maintainerPhil Chen
docs_urlNone
authorPhil Chen
requires_python>=3.7,<4.0
licenseApache-2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Spellbook Serve

The Spellbook Serve Python library provides a convenient way of interfacing with a
`spellbook-serve` endpoint running on
[Scale Spellbook Serve](https://scaleapi.github.io/spellbook-serve/) or on your own infrastructure.

## Get Started

### Install

```shell
pip install spellbook-serve-client
```

### Usage

If you are using Scale Spellbook Serve, you can get your API key from
[https://spellbook.scale.com/settings](https://spellbook.scale.com/settings). 
Set the `SCALE_API_KEY` environment variable to your API key.

If you are using your own infrastructure, you can set the
`SPELLBOOK_SERVE_BASE_PATH` environment variable to the base URL of your
self-hosted `spellbook-serve` endpoint.

```python
from spellbook_serve_client import Completion

response = Completion.create(
    model_name="llama-7b",
    prompt="Hello, my name is",
    max_new_tokens=10,
    temperature=0.2,
)
print(response.outputs[0].text)
```

## Documentation

Documentation is available at
[https://scaleapi.github.io/spellbook-serve/](https://scaleapi.github.io/spellbook-serve/).


            

Raw data

            {
    "_id": null,
    "home_page": "https://scaleapi.github.io/spellbook-serve/",
    "name": "spellbook-serve-client",
    "maintainer": "Phil Chen",
    "docs_url": null,
    "requires_python": ">=3.7,<4.0",
    "maintainer_email": "phil.chen@scale.com",
    "keywords": "",
    "author": "Phil Chen",
    "author_email": "phil.chen@scale.com",
    "download_url": "https://files.pythonhosted.org/packages/3a/86/19cb358d9dec3bf5f2e969df6aa3c4d9bafa2c083e934afc677effe87d59/spellbook_serve_client-0.0.0a1.tar.gz",
    "platform": null,
    "description": "# Spellbook Serve\n\nThe Spellbook Serve Python library provides a convenient way of interfacing with a\n`spellbook-serve` endpoint running on\n[Scale Spellbook Serve](https://scaleapi.github.io/spellbook-serve/) or on your own infrastructure.\n\n## Get Started\n\n### Install\n\n```shell\npip install spellbook-serve-client\n```\n\n### Usage\n\nIf you are using Scale Spellbook Serve, you can get your API key from\n[https://spellbook.scale.com/settings](https://spellbook.scale.com/settings). \nSet the `SCALE_API_KEY` environment variable to your API key.\n\nIf you are using your own infrastructure, you can set the\n`SPELLBOOK_SERVE_BASE_PATH` environment variable to the base URL of your\nself-hosted `spellbook-serve` endpoint.\n\n```python\nfrom spellbook_serve_client import Completion\n\nresponse = Completion.create(\n    model_name=\"llama-7b\",\n    prompt=\"Hello, my name is\",\n    max_new_tokens=10,\n    temperature=0.2,\n)\nprint(response.outputs[0].text)\n```\n\n## Documentation\n\nDocumentation is available at\n[https://scaleapi.github.io/spellbook-serve/](https://scaleapi.github.io/spellbook-serve/).\n\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "Spellbok Serve Python Client",
    "version": "0.0.0a1",
    "project_urls": {
        "Homepage": "https://scaleapi.github.io/spellbook-serve/",
        "Repository": "https://github.com/scaleapi/spellbook-serve"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bdbebf1067f4d61b093f210ef0a322d25f843ebe3f365b5724afcc6c24172bd6",
                "md5": "7eab81dff036c87ad8281978edb7dea7",
                "sha256": "0b71b0c3922d5d50dd8b76506e4fb4faf9b256c831342694ee17ef46881f0455"
            },
            "downloads": -1,
            "filename": "spellbook_serve_client-0.0.0a1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7eab81dff036c87ad8281978edb7dea7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7,<4.0",
            "size": 14790,
            "upload_time": "2023-07-14T08:42:47",
            "upload_time_iso_8601": "2023-07-14T08:42:47.712859Z",
            "url": "https://files.pythonhosted.org/packages/bd/be/bf1067f4d61b093f210ef0a322d25f843ebe3f365b5724afcc6c24172bd6/spellbook_serve_client-0.0.0a1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3a8619cb358d9dec3bf5f2e969df6aa3c4d9bafa2c083e934afc677effe87d59",
                "md5": "ac4058ceb61b3bb86dad4e8f3892f85a",
                "sha256": "80e942634c47cab071d11e2437add99c94de29c74080d99015f341b1ff3f25a5"
            },
            "downloads": -1,
            "filename": "spellbook_serve_client-0.0.0a1.tar.gz",
            "has_sig": false,
            "md5_digest": "ac4058ceb61b3bb86dad4e8f3892f85a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7,<4.0",
            "size": 9144,
            "upload_time": "2023-07-14T08:42:49",
            "upload_time_iso_8601": "2023-07-14T08:42:49.435084Z",
            "url": "https://files.pythonhosted.org/packages/3a/86/19cb358d9dec3bf5f2e969df6aa3c4d9bafa2c083e934afc677effe87d59/spellbook_serve_client-0.0.0a1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-14 08:42:49",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "scaleapi",
    "github_project": "spellbook-serve",
    "github_not_found": true,
    "lcname": "spellbook-serve-client"
}
        
Elapsed time: 0.28207s