faker-openai-api-provider


Namefaker-openai-api-provider JSON
Version 0.2.0 PyPI version JSON
download
home_pagehttps://github.com/mharrisb1/faker-openai-api-provider
SummaryGenerate fake data that resembles fields in OpenAI API responses
upload_time2024-05-29 13:53:40
maintainerNone
docs_urlNone
authorMichael Harris
requires_python<4.0,>=3.9
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # faker-openai-api-provider

Generate fake data that resembles fields in OpenAI API responses

> [!IMPORTANT]
> This ***does not*** generate fake AI responses/completions

## API

- `openai().chat.completion.id() -> str`
- `openai().file.id() -> str`
- `openai().beta.assistant.id() -> str`
- `openai().beta.thread.id() -> str`
- `openai().beta.thread.message.id() -> str`
- `openai().beta.thread.run.id() -> str`
- `openai().beta.thread.run.step.id() -> str`
- `openai().beta.thread.run.step.step_details.tool_call.id() -> str`

## Usage

```py
from faker import Faker
from faker_openai_api_provider import OpenAiApiProvider

fake = Faker()
fake.add_provider(OpenAiApiProvider)

chat_completion_id = fake.openai().chat.completion.id()
```

## Installation

```
pip install faker-openai-api-provider
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/mharrisb1/faker-openai-api-provider",
    "name": "faker-openai-api-provider",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.9",
    "maintainer_email": null,
    "keywords": null,
    "author": "Michael Harris",
    "author_email": "mharris@definite.app",
    "download_url": "https://files.pythonhosted.org/packages/5e/e1/f8f83e90eaf18fe8781ea4d84be89d33aaddbc430c7517df4c3028f656a8/faker_openai_api_provider-0.2.0.tar.gz",
    "platform": null,
    "description": "# faker-openai-api-provider\n\nGenerate fake data that resembles fields in OpenAI API responses\n\n> [!IMPORTANT]\n> This ***does not*** generate fake AI responses/completions\n\n## API\n\n- `openai().chat.completion.id() -> str`\n- `openai().file.id() -> str`\n- `openai().beta.assistant.id() -> str`\n- `openai().beta.thread.id() -> str`\n- `openai().beta.thread.message.id() -> str`\n- `openai().beta.thread.run.id() -> str`\n- `openai().beta.thread.run.step.id() -> str`\n- `openai().beta.thread.run.step.step_details.tool_call.id() -> str`\n\n## Usage\n\n```py\nfrom faker import Faker\nfrom faker_openai_api_provider import OpenAiApiProvider\n\nfake = Faker()\nfake.add_provider(OpenAiApiProvider)\n\nchat_completion_id = fake.openai().chat.completion.id()\n```\n\n## Installation\n\n```\npip install faker-openai-api-provider\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Generate fake data that resembles fields in OpenAI API responses",
    "version": "0.2.0",
    "project_urls": {
        "Homepage": "https://github.com/mharrisb1/faker-openai-api-provider",
        "Repository": "https://github.com/mharrisb1/faker-openai-api-provider"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f2a1c8d4be07bb094bcbcdd15da7134652494eed833bc4bec52b86e77f35811b",
                "md5": "485507ea7e7cd7fbd62b8cb9480fe69d",
                "sha256": "67d46f159810cd02e5c4fad6f3714b9f83188c3ee74a126e3aaf013f88f7a2e0"
            },
            "downloads": -1,
            "filename": "faker_openai_api_provider-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "485507ea7e7cd7fbd62b8cb9480fe69d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 5406,
            "upload_time": "2024-05-29T13:53:37",
            "upload_time_iso_8601": "2024-05-29T13:53:37.224239Z",
            "url": "https://files.pythonhosted.org/packages/f2/a1/c8d4be07bb094bcbcdd15da7134652494eed833bc4bec52b86e77f35811b/faker_openai_api_provider-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5ee1f8f83e90eaf18fe8781ea4d84be89d33aaddbc430c7517df4c3028f656a8",
                "md5": "f74f2d2d605dce1c5955af680ca55f4c",
                "sha256": "168ecfd4ad06113ad64de9ee095e5e88593b575145efd4e8b84cba602e73c7d3"
            },
            "downloads": -1,
            "filename": "faker_openai_api_provider-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "f74f2d2d605dce1c5955af680ca55f4c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 3216,
            "upload_time": "2024-05-29T13:53:40",
            "upload_time_iso_8601": "2024-05-29T13:53:40.010254Z",
            "url": "https://files.pythonhosted.org/packages/5e/e1/f8f83e90eaf18fe8781ea4d84be89d33aaddbc430c7517df4c3028f656a8/faker_openai_api_provider-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-29 13:53:40",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "mharrisb1",
    "github_project": "faker-openai-api-provider",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "faker-openai-api-provider"
}
        
Elapsed time: 0.28656s