llama-index-readers-discord


Namellama-index-readers-discord JSON
Version 0.2.1 PyPI version JSON
download
home_pageNone
Summaryllama-index readers discord integration
upload_time2024-09-03 17:34:45
maintainerjerryjliu
docs_urlNone
authorYour Name
requires_python<4.0,>=3.8.1
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Discord Loader

```bash
pip install llama-index-readers-discord
```

This loader loads conversations from Discord. The user specifies `channel_ids` and we fetch conversations from
those `channel_ids`.

## Usage

Here's an example usage of the DiscordReader.

```python
import os

from llama_index.readers.discord import DiscordReader

discord_token = os.getenv("DISCORD_TOKEN")
channel_ids = [1057178784895348746]  # Replace with your channel_id
reader = DiscordReader(discord_token=discord_token)
documents = reader.load_data(channel_ids=channel_ids)
```

This loader is designed to be used as a way to load data into [LlamaIndex](https://github.com/run-llama/llama_index/).

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "llama-index-readers-discord",
    "maintainer": "jerryjliu",
    "docs_url": null,
    "requires_python": "<4.0,>=3.8.1",
    "maintainer_email": null,
    "keywords": null,
    "author": "Your Name",
    "author_email": "you@example.com",
    "download_url": "https://files.pythonhosted.org/packages/06/87/a97362a1414bbc01faa0c73d6ccefbf78afe8868d0bf5049875bd8ebea65/llama_index_readers_discord-0.2.1.tar.gz",
    "platform": null,
    "description": "# Discord Loader\n\n```bash\npip install llama-index-readers-discord\n```\n\nThis loader loads conversations from Discord. The user specifies `channel_ids` and we fetch conversations from\nthose `channel_ids`.\n\n## Usage\n\nHere's an example usage of the DiscordReader.\n\n```python\nimport os\n\nfrom llama_index.readers.discord import DiscordReader\n\ndiscord_token = os.getenv(\"DISCORD_TOKEN\")\nchannel_ids = [1057178784895348746]  # Replace with your channel_id\nreader = DiscordReader(discord_token=discord_token)\ndocuments = reader.load_data(channel_ids=channel_ids)\n```\n\nThis loader is designed to be used as a way to load data into [LlamaIndex](https://github.com/run-llama/llama_index/).\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "llama-index readers discord integration",
    "version": "0.2.1",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "124842865e61802ee7b9310e25bedc3632509614967519cf8b49edb64ea8f7f7",
                "md5": "eb891f41c443caa66aea5acbcc88b5fe",
                "sha256": "fb6b4fafcc3c8c56f9e79b67adecf814a76450017ad69581926280685e796b31"
            },
            "downloads": -1,
            "filename": "llama_index_readers_discord-0.2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "eb891f41c443caa66aea5acbcc88b5fe",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8.1",
            "size": 3740,
            "upload_time": "2024-09-03T17:34:44",
            "upload_time_iso_8601": "2024-09-03T17:34:44.033891Z",
            "url": "https://files.pythonhosted.org/packages/12/48/42865e61802ee7b9310e25bedc3632509614967519cf8b49edb64ea8f7f7/llama_index_readers_discord-0.2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0687a97362a1414bbc01faa0c73d6ccefbf78afe8868d0bf5049875bd8ebea65",
                "md5": "85c81db5769121ea80762623b1be85ba",
                "sha256": "ba5b70a63d03fe9167bd73d275567eba33a28da17db6772085ca95ddb35e9426"
            },
            "downloads": -1,
            "filename": "llama_index_readers_discord-0.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "85c81db5769121ea80762623b1be85ba",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.8.1",
            "size": 3387,
            "upload_time": "2024-09-03T17:34:45",
            "upload_time_iso_8601": "2024-09-03T17:34:45.458084Z",
            "url": "https://files.pythonhosted.org/packages/06/87/a97362a1414bbc01faa0c73d6ccefbf78afe8868d0bf5049875bd8ebea65/llama_index_readers_discord-0.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-03 17:34:45",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "llama-index-readers-discord"
}
        
Elapsed time: 0.45076s