code_genie


Namecode_genie JSON
Version 0.3.1 PyPI version JSON
download
home_pageNone
SummaryCopilot to supercharge your notebooks
upload_time2023-05-09 06:30:42
maintainerNone
docs_urlNone
authorNone
requires_python>=3.7
licenseNone
keywords copilot jupyter
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # code-genie
This library is your copilot for jupyter notebooks

Latest version: 0.3.1

## Documentation

- [Starter Notebook](https://code-genie.readthedocs.io/en/main/notebooks/Starter.html)
- [All Examples](https://code-genie.readthedocs.io/en/main/examples.html)
- [API Documentation](https://code-genie.readthedocs.io/en/main/api.html)

## Installation

```bash
pip install code-genie
```

## Access Token
You need your unique access token to use this library. You can get your access token
by signing up here [here](https://dodie819.preview.softr.app/?t=1682342288534)

## Usage

### Setting environment variables
On the top of your notebook, set an environment variable called `CODE_GENIE_TOKEN` as your access token. This can
be done in a couple of ways:

#### Using env magic
```
%env CODE_GENIE_TOKEN=xxxkeyxxx
```

#### Using dotenv
You can use the [python-dotenv](https://github.com/theskumar/python-dotenv) package.
```
from dotenv import load_dotenv
load_dotenv("path-to-.env-file")
```

#### Pandas data processing

Following is an example to get the number of missing values in each column of a dataframe.

```python
from code_genie import PandasGenie
genie = PandasGenie(instructions=[
    "create a new dataframe which contains the number of missing values in each column",
    "add a column to this dataframe representing the percentage of total points which are missing",
    "sort dataframe in descending order of number of missing items",
    "filter out columns which have no missing values"
    ])
df_missing = genie(df)
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "code_genie",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "copilot,jupyter",
    "author": null,
    "author_email": "Aarshay Jain <aarshay.jain@columbia.edu>",
    "download_url": "https://files.pythonhosted.org/packages/60/d2/a8ab3289821d5ebc2d8c815c38d60b4edc284da1d1c8e36f053f955fc3b9/code_genie-0.3.1.tar.gz",
    "platform": null,
    "description": "# code-genie\nThis library is your copilot for jupyter notebooks\n\nLatest version: 0.3.1\n\n## Documentation\n\n- [Starter Notebook](https://code-genie.readthedocs.io/en/main/notebooks/Starter.html)\n- [All Examples](https://code-genie.readthedocs.io/en/main/examples.html)\n- [API Documentation](https://code-genie.readthedocs.io/en/main/api.html)\n\n## Installation\n\n```bash\npip install code-genie\n```\n\n## Access Token\nYou need your unique access token to use this library. You can get your access token\nby signing up here [here](https://dodie819.preview.softr.app/?t=1682342288534)\n\n## Usage\n\n### Setting environment variables\nOn the top of your notebook, set an environment variable called `CODE_GENIE_TOKEN` as your access token. This can\nbe done in a couple of ways:\n\n#### Using env magic\n```\n%env CODE_GENIE_TOKEN=xxxkeyxxx\n```\n\n#### Using dotenv\nYou can use the [python-dotenv](https://github.com/theskumar/python-dotenv) package.\n```\nfrom dotenv import load_dotenv\nload_dotenv(\"path-to-.env-file\")\n```\n\n#### Pandas data processing\n\nFollowing is an example to get the number of missing values in each column of a dataframe.\n\n```python\nfrom code_genie import PandasGenie\ngenie = PandasGenie(instructions=[\n    \"create a new dataframe which contains the number of missing values in each column\",\n    \"add a column to this dataframe representing the percentage of total points which are missing\",\n    \"sort dataframe in descending order of number of missing items\",\n    \"filter out columns which have no missing values\"\n    ])\ndf_missing = genie(df)\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Copilot to supercharge your notebooks",
    "version": "0.3.1",
    "project_urls": {
        "Documentation": "https://code-genie.readthedocs.io/en/latest/",
        "Source": "https://github.com/thismlguy/code-genie"
    },
    "split_keywords": [
        "copilot",
        "jupyter"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "1dc26a91a1f9b9493d3ad66249db79cc4d01e1313078927c683a0fe6a0879d14",
                "md5": "a03b9b59455dbe822a1604d977d269ad",
                "sha256": "baaf70d6779cb7f9895d3a329e15ed494042e3f8e7d13997427be71f4dd1e645"
            },
            "downloads": -1,
            "filename": "code_genie-0.3.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a03b9b59455dbe822a1604d977d269ad",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 7743,
            "upload_time": "2023-05-09T06:30:36",
            "upload_time_iso_8601": "2023-05-09T06:30:36.945883Z",
            "url": "https://files.pythonhosted.org/packages/1d/c2/6a91a1f9b9493d3ad66249db79cc4d01e1313078927c683a0fe6a0879d14/code_genie-0.3.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "60d2a8ab3289821d5ebc2d8c815c38d60b4edc284da1d1c8e36f053f955fc3b9",
                "md5": "a59e8f08881167740103b0bb65e960be",
                "sha256": "57ea1fc40b35fc954c69441b56db94554931b5cb1b1b27ba88d3c9b953ad127f"
            },
            "downloads": -1,
            "filename": "code_genie-0.3.1.tar.gz",
            "has_sig": false,
            "md5_digest": "a59e8f08881167740103b0bb65e960be",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 424114,
            "upload_time": "2023-05-09T06:30:42",
            "upload_time_iso_8601": "2023-05-09T06:30:42.219650Z",
            "url": "https://files.pythonhosted.org/packages/60/d2/a8ab3289821d5ebc2d8c815c38d60b4edc284da1d1c8e36f053f955fc3b9/code_genie-0.3.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-09 06:30:42",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "thismlguy",
    "github_project": "code-genie",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "tox": true,
    "lcname": "code_genie"
}
        
Elapsed time: 0.08496s