weco


Nameweco JSON
Version 0.1.10 PyPI version JSON
download
home_pageNone
SummaryA client facing API for interacting with the WeCo AI function builder service.
upload_time2024-09-06 15:01:05
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="assets/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)

<!-- TODO: Update examples -->
# $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://weco-app.vercel.app/function)!


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.

## Installation

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

## Features
- Synchronous & Asynchronous client.
- Batch API
- Multimodality (Language & Vision)
- Interpretability (view the reasoning behind outputs)


## What We Offer

- The **build** function enables quick and easy prototyping of new functions via LLMs through just natural language. We encourage users to do this through our [web console](https://weco-app.vercel.app/function) for maximum control and ease of use, however, you can also do this through our API as shown in [here](examples/cookbook.ipynb).
- The **query** function allows you to test and use the newly created function in your own 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.
- `weco.query` and `weco.build` to be used when you only require sparse usage.

## Usage

When using the WeCo API, you will need to set the API key:
You can find/setup your API key [here](https://weco-app.vercel.app/account) by navigating to the API key tab. Once you have your API key, you may pass it to the `weco` client using the `api_key` argument input or set it as an environment variable such as:
```bash
export WECO_API_KEY=<YOUR_WECO_API_KEY>
```

## Example

We create a function on the [web console](https://weco-app.vercel.app/function) 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)."

Now, you're ready to 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]"
   ```

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
   ```

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/9f/4a/8beedd85228626369c21ec8d32a1b6ec8ca019c12537605a99cbe2ef60f0/weco-0.1.10.tar.gz",
    "platform": null,
    "description": "<div align=\"center\" style=\"display: flex; align-items: center; justify-content: center;\">\n  <img src=\"assets/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<!-- TODO: Update examples -->\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://weco-app.vercel.app/function)!\n\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## Installation\n\nInstall the `weco` package simply by calling this in your terminal of choice:\n```bash\npip install weco\n```\n\n## Features\n- Synchronous & Asynchronous client.\n- Batch API\n- Multimodality (Language & Vision)\n- Interpretability (view the reasoning behind outputs)\n\n\n## What We Offer\n\n- The **build** function enables quick and easy prototyping of new functions via LLMs through just natural language. We encourage users to do this through our [web console](https://weco-app.vercel.app/function) for maximum control and ease of use, however, you can also do this through our API as shown in [here](examples/cookbook.ipynb).\n- The **query** function allows you to test and use the newly created function in your own 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.\n- `weco.query` and `weco.build` to be used when you only require sparse usage.\n\n## Usage\n\nWhen using the WeCo API, you will need to set the API key:\nYou can find/setup your API key [here](https://weco-app.vercel.app/account) by navigating to the API key tab. Once you have your API key, you may pass it to the `weco` client using the `api_key` argument input or set it as an environment variable such as:\n```bash\nexport WECO_API_KEY=<YOUR_WECO_API_KEY>\n```\n\n## Example\n\nWe create a function on the [web console](https://weco-app.vercel.app/function) 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\nNow, you're ready to query this function anywhere in your code!\n\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```\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]\"\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\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.10",
    "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": "7b2f9cf4b403a436c7070455942aa1eaa336af8329bd76fb63ace1f814bf7c76",
                "md5": "575fde3c3d714aaffff85cde287e583a",
                "sha256": "0722159117adc5574221300a810b1d986111d354b2c0713dc4a2e904d69b37f7"
            },
            "downloads": -1,
            "filename": "weco-0.1.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "575fde3c3d714aaffff85cde287e583a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 12913,
            "upload_time": "2024-09-06T15:01:04",
            "upload_time_iso_8601": "2024-09-06T15:01:04.205558Z",
            "url": "https://files.pythonhosted.org/packages/7b/2f/9cf4b403a436c7070455942aa1eaa336af8329bd76fb63ace1f814bf7c76/weco-0.1.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9f4a8beedd85228626369c21ec8d32a1b6ec8ca019c12537605a99cbe2ef60f0",
                "md5": "10d771eca8f54aaef3f664c9e5acb122",
                "sha256": "8b38e193b607cef073bf2097d51661a24e3ad3f964ebc06aa63a4fa2a44ed841"
            },
            "downloads": -1,
            "filename": "weco-0.1.10.tar.gz",
            "has_sig": false,
            "md5_digest": "10d771eca8f54aaef3f664c9e5acb122",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 26017,
            "upload_time": "2024-09-06T15:01:05",
            "upload_time_iso_8601": "2024-09-06T15:01:05.537326Z",
            "url": "https://files.pythonhosted.org/packages/9f/4a/8beedd85228626369c21ec8d32a1b6ec8ca019c12537605a99cbe2ef60f0/weco-0.1.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-06 15:01:05",
    "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.70029s