weco


Nameweco JSON
Version 0.1.11 PyPI version JSON
download
home_pageNone
SummaryA client facing API for interacting with the Weco AI function builder service.
upload_time2024-10-15 14:34:28
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseMIT
keywords ai llm machine learning data science function builder ai function
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <div align="center" style="display: flex; align-items: center; justify-content: center;">
  <img src=".overrides/.icons/custom/weco.svg" alt="Weco AI" style="height: 50px; margin-right: 10px;">
  <a href="https://git.io/typing-svg"><img src="https://readme-typing-svg.demolab.com?font=Georgia&size=32&duration=4000&pause=400&color=FD4578&vCenter=true&multiline=false&width=200&height=50&lines=Weco+Client" alt="Typing SVG" /></a>
</div>

![Python](https://img.shields.io/badge/Python-3.10.14-blue)
[![License](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)

# $f$(👷‍♂️)

<a href="https://colab.research.google.com/github/WecoAI/weco-python/blob/main/examples/cookbook.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab" width=110 height=20/></a>
<a target="_blank" href="https://lightning.ai/new?repo_url=https%3A%2F%2Fgithub.com%2FWecoAI%2Fweco-python%2Fblob%2Fmain%2Fexamples%2Fcookbook.ipynb"><img src="https://pl-bolts-doc-images.s3.us-east-2.amazonaws.com/app-2/studio-badge.svg" alt="Open in Studio" width=100 height=20/></a>

A client facing API for interacting with the [Weco AI](https://www.weco.ai/) function builder [service](https://www.aifunction.com)!

Use this API to build *complex* systems *fast*. We lower the barrier of entry to software engineer, data science and machine learning by providing an interface to prototype difficult solutions quickly in just a few lines of code.

## What We Offer

- The **build** function enables quick and easy prototyping of new functions that use foundational models through just natural language. We encourage users to do this through our [web console](https://www.aifunction.com) for maximum control and ease of use, however, you can also do this through our API as shown [here](examples/cookbook.ipynb).
- The **query** function allows you to test your newly created functions and deploy it in your code.

We provide both services in two ways:
- `weco.WecoAI` client to be used when you want to maintain the same client service across a portion of code. This is better for dense service usage or in an object oriented paradigm.
- `weco.query` and `weco.build` to be used when you only require sparse usage or a functional paradigm.

### Features
- Structured Output
- Grounding (Web Access)
- Multimodal (Language & Vision)
- Versatile Client (Synchronous, Asynchronous, Batch Processing)
- Interpretable (Observe Reasoning Behind Outputs)

## Getting Started

Install the `weco` package simply by calling this in your terminal of choice:
```bash
pip install weco
```

When using the Weco API, you will need to set the API key:
You can find/setup your API key [here](https://www.aifunction.com/account/api-keys). Once you have your API key, pass it directly to the client using the `api_key` argument or set it as an environment variable as shown:
```bash
export WECO_API_KEY=<YOUR_WECO_API_KEY>
```

### Example

We created a function on the [web console](https://www.aifunction.com) for the following task:
> "Analyze a business idea and provide a structured evaluation. Output a JSON with 'viability_score' (0-100), 'strengths' (list), 'weaknesses' (list), and 'next_steps' (list)."

Here's how you can query this function anywhere in your code!
```python
from weco import query
response = query(
    fn_name="BusinessIdeaAnalyzer-XYZ123",  # Replace with your actual function name
    text_input="A subscription service for personalized, AI-generated bedtime stories for children."
)
```
For more examples and an advanced user guide, check out our function builder [cookbook](examples/cookbook.ipynb).

## Happy building $f$(👷‍♂️)!

## Contributing

We value your contributions! If you believe you can help to improve our package enabling people to build AI with AI, please contribute!

Use the following steps as a guideline to help you make contributions:

1. Download and install package from source:
   ```bash
   git clone https://github.com/WecoAI/weco-python.git
   cd weco-python
   pip install -e ".[dev,docs]"
   ```

2. Create a new branch for your feature or bugfix:
   ```bash
   git checkout -b feature/your-feature-name
   ```

3. Make your changes and run tests to ensure everything is working:
   
   > **Tests can be expensive to run as they make LLM requests with the API key being used so it is the developers best interests to write small and simple tests that adds coverage for a large portion of the package.**
   
   ```bash
   pytest -n auto tests
   ```
   If you're just making changes to the docs, feel free to skip this step.

4. Commit and push your changes, then open a PR for us to view 😁

Please ensure your code follows our style guidelines (Numpy docstrings) and includes appropriate tests. We appreciate your contributions!

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "weco",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "AI, LLM, machine learning, data science, function builder, AI function",
    "author": null,
    "author_email": "Weco AI Team <dhruv@weco.ai>",
    "download_url": "https://files.pythonhosted.org/packages/e5/1a/bab4fba877a040229e83313a90cd1fd08930667b7e8f038272a9e9ac4e6d/weco-0.1.11.tar.gz",
    "platform": null,
    "description": "<div align=\"center\" style=\"display: flex; align-items: center; justify-content: center;\">\n  <img src=\".overrides/.icons/custom/weco.svg\" alt=\"Weco AI\" style=\"height: 50px; margin-right: 10px;\">\n  <a href=\"https://git.io/typing-svg\"><img src=\"https://readme-typing-svg.demolab.com?font=Georgia&size=32&duration=4000&pause=400&color=FD4578&vCenter=true&multiline=false&width=200&height=50&lines=Weco+Client\" alt=\"Typing SVG\" /></a>\n</div>\n\n![Python](https://img.shields.io/badge/Python-3.10.14-blue)\n[![License](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)\n\n# $f$(\ud83d\udc77\u200d\u2642\ufe0f)\n\n<a href=\"https://colab.research.google.com/github/WecoAI/weco-python/blob/main/examples/cookbook.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\" width=110 height=20/></a>\n<a target=\"_blank\" href=\"https://lightning.ai/new?repo_url=https%3A%2F%2Fgithub.com%2FWecoAI%2Fweco-python%2Fblob%2Fmain%2Fexamples%2Fcookbook.ipynb\"><img src=\"https://pl-bolts-doc-images.s3.us-east-2.amazonaws.com/app-2/studio-badge.svg\" alt=\"Open in Studio\" width=100 height=20/></a>\n\nA client facing API for interacting with the [Weco AI](https://www.weco.ai/) function builder [service](https://www.aifunction.com)!\n\nUse this API to build *complex* systems *fast*. We lower the barrier of entry to software engineer, data science and machine learning by providing an interface to prototype difficult solutions quickly in just a few lines of code.\n\n## What We Offer\n\n- The **build** function enables quick and easy prototyping of new functions that use foundational models through just natural language. We encourage users to do this through our [web console](https://www.aifunction.com) for maximum control and ease of use, however, you can also do this through our API as shown [here](examples/cookbook.ipynb).\n- The **query** function allows you to test your newly created functions and deploy it in your code.\n\nWe provide both services in two ways:\n- `weco.WecoAI` client to be used when you want to maintain the same client service across a portion of code. This is better for dense service usage or in an object oriented paradigm.\n- `weco.query` and `weco.build` to be used when you only require sparse usage or a functional paradigm.\n\n### Features\n- Structured Output\n- Grounding (Web Access)\n- Multimodal (Language & Vision)\n- Versatile Client (Synchronous, Asynchronous, Batch Processing)\n- Interpretable (Observe Reasoning Behind Outputs)\n\n## Getting Started\n\nInstall the `weco` package simply by calling this in your terminal of choice:\n```bash\npip install weco\n```\n\nWhen using the Weco API, you will need to set the API key:\nYou can find/setup your API key [here](https://www.aifunction.com/account/api-keys). Once you have your API key, pass it directly to the client using the `api_key` argument or set it as an environment variable as shown:\n```bash\nexport WECO_API_KEY=<YOUR_WECO_API_KEY>\n```\n\n### Example\n\nWe created a function on the [web console](https://www.aifunction.com) for the following task:\n> \"Analyze a business idea and provide a structured evaluation. Output a JSON with 'viability_score' (0-100), 'strengths' (list), 'weaknesses' (list), and 'next_steps' (list).\"\n\nHere's how you can query this function anywhere in your code!\n```python\nfrom weco import query\nresponse = query(\n    fn_name=\"BusinessIdeaAnalyzer-XYZ123\",  # Replace with your actual function name\n    text_input=\"A subscription service for personalized, AI-generated bedtime stories for children.\"\n)\n```\nFor more examples and an advanced user guide, check out our function builder [cookbook](examples/cookbook.ipynb).\n\n## Happy building $f$(\ud83d\udc77\u200d\u2642\ufe0f)!\n\n## Contributing\n\nWe value your contributions! If you believe you can help to improve our package enabling people to build AI with AI, please contribute!\n\nUse the following steps as a guideline to help you make contributions:\n\n1. Download and install package from source:\n   ```bash\n   git clone https://github.com/WecoAI/weco-python.git\n   cd weco-python\n   pip install -e \".[dev,docs]\"\n   ```\n\n2. Create a new branch for your feature or bugfix:\n   ```bash\n   git checkout -b feature/your-feature-name\n   ```\n\n3. Make your changes and run tests to ensure everything is working:\n   \n   > **Tests can be expensive to run as they make LLM requests with the API key being used so it is the developers best interests to write small and simple tests that adds coverage for a large portion of the package.**\n   \n   ```bash\n   pytest -n auto tests\n   ```\n   If you're just making changes to the docs, feel free to skip this step.\n\n4. Commit and push your changes, then open a PR for us to view \ud83d\ude01\n\nPlease ensure your code follows our style guidelines (Numpy docstrings) and includes appropriate tests. We appreciate your contributions!\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A client facing API for interacting with the Weco AI function builder service.",
    "version": "0.1.11",
    "project_urls": {
        "Homepage": "https://github.com/WecoAI/weco-python"
    },
    "split_keywords": [
        "ai",
        " llm",
        " machine learning",
        " data science",
        " function builder",
        " ai function"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3f1784f15f4d99f4b938837eb303d1e0f21435f82b4c056f043c944e4a9eb50e",
                "md5": "9e947ae8f01cdb194eb4a2986d5709e8",
                "sha256": "d62c9de3d2dbf1fffccc73a7b6135d101bd4497506e5bccc0ea719d87c3944cc"
            },
            "downloads": -1,
            "filename": "weco-0.1.11-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9e947ae8f01cdb194eb4a2986d5709e8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 13342,
            "upload_time": "2024-10-15T14:34:27",
            "upload_time_iso_8601": "2024-10-15T14:34:27.072270Z",
            "url": "https://files.pythonhosted.org/packages/3f/17/84f15f4d99f4b938837eb303d1e0f21435f82b4c056f043c944e4a9eb50e/weco-0.1.11-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e51abab4fba877a040229e83313a90cd1fd08930667b7e8f038272a9e9ac4e6d",
                "md5": "9062a7c641814c8fe2cfaa7b3f1ae305",
                "sha256": "6f54ef470e7a6862d56d726533a1e418b3189dd8fbe10db287b6d8dc8a3feca3"
            },
            "downloads": -1,
            "filename": "weco-0.1.11.tar.gz",
            "has_sig": false,
            "md5_digest": "9062a7c641814c8fe2cfaa7b3f1ae305",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 174987,
            "upload_time": "2024-10-15T14:34:28",
            "upload_time_iso_8601": "2024-10-15T14:34:28.759663Z",
            "url": "https://files.pythonhosted.org/packages/e5/1a/bab4fba877a040229e83313a90cd1fd08930667b7e8f038272a9e9ac4e6d/weco-0.1.11.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-15 14:34:28",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "WecoAI",
    "github_project": "weco-python",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "weco"
}
        
Elapsed time: 0.32568s