dhti-elixir-base


Namedhti-elixir-base JSON
Version 0.1.0 PyPI version JSON
download
home_pageNone
SummaryDHTI Elixir Base
upload_time2025-08-10 14:04:46
maintainerNone
docs_urlNone
authorNone
requires_python<4.0,>=3.10
licenseNone
keywords gen ai dhti python
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # dhti-elixir-base

* [DHTI](https://github.com/dermatologist/dhti) Elixir Template
* WIP

## Using the template
* Use the template to create a new repository on GitHub with the default branch set to develop
* Clone the repository to your local machine
* rename `elixir-template` to your elixir-packagename
* rename `elixir_template` to your elixir_packagename
* rename the directory `dhti_elixir_base` to your dhti_elixir_packagename

## Installation
* poetry install
* poetry install dhti-elixir-packagename --extras docs

## Environment Setup

Override [`dhti_elixir_base/bootstrap.py`](dhti_elixir_base/bootstrap.py) with your own configuration.

## Usage

To use this package, you should first have the LangChain CLI installed:

```shell
pip install -U langchain-cli
```

If you want to add this to an existing project, you can just run:

```shell
langchain app add --repo https://github.com/dermatologist/dhti-elixir-base --branch develop
```

And add the following code to your `server.py` file:
```python
from dhti_elixir_base.bootstrap import bootstrap
bootstrap()
from dhti_elixir_base.chain import chain as dhti_elixir_base_chain

add_routes(app, dhti_elixir_base_chain, path="/dhti-elixir-base")
```

If you are inside this directory, then you can spin up a LangServe instance directly by:

```shell
langchain serve
```

This will start the FastAPI app with a server is running locally at
[http://localhost:8000](http://localhost:8000)

We can see all templates at [http://127.0.0.1:8000/docs](http://127.0.0.1:8000/docs)
We can access the playground at [http://127.0.0.1:8000/dhti-elixir-base/playground](http://127.0.0.1:8000/dhti-elixir-base/playground)

We can access the template from code with:

```python
from langserve.client import RemoteRunnable

runnable = RemoteRunnable("http://localhost:8000/dhti-elixir-base")
```
            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "dhti-elixir-base",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.10",
    "maintainer_email": null,
    "keywords": "Gen AI, dhti, python",
    "author": null,
    "author_email": "Bell Eapen <github_public@gulfdoctor.net>",
    "download_url": "https://files.pythonhosted.org/packages/17/06/1e580b7b57c55ad78ae0d0415fec692e957cdffb00e57f9b0955453507a5/dhti_elixir_base-0.1.0.tar.gz",
    "platform": null,
    "description": "# dhti-elixir-base\n\n* [DHTI](https://github.com/dermatologist/dhti) Elixir Template\n* WIP\n\n## Using the template\n* Use the template to create a new repository on GitHub with the default branch set to develop\n* Clone the repository to your local machine\n* rename `elixir-template` to your elixir-packagename\n* rename `elixir_template` to your elixir_packagename\n* rename the directory `dhti_elixir_base` to your dhti_elixir_packagename\n\n## Installation\n* poetry install\n* poetry install dhti-elixir-packagename --extras docs\n\n## Environment Setup\n\nOverride [`dhti_elixir_base/bootstrap.py`](dhti_elixir_base/bootstrap.py) with your own configuration.\n\n## Usage\n\nTo use this package, you should first have the LangChain CLI installed:\n\n```shell\npip install -U langchain-cli\n```\n\nIf you want to add this to an existing project, you can just run:\n\n```shell\nlangchain app add --repo https://github.com/dermatologist/dhti-elixir-base --branch develop\n```\n\nAnd add the following code to your `server.py` file:\n```python\nfrom dhti_elixir_base.bootstrap import bootstrap\nbootstrap()\nfrom dhti_elixir_base.chain import chain as dhti_elixir_base_chain\n\nadd_routes(app, dhti_elixir_base_chain, path=\"/dhti-elixir-base\")\n```\n\nIf you are inside this directory, then you can spin up a LangServe instance directly by:\n\n```shell\nlangchain serve\n```\n\nThis will start the FastAPI app with a server is running locally at\n[http://localhost:8000](http://localhost:8000)\n\nWe can see all templates at [http://127.0.0.1:8000/docs](http://127.0.0.1:8000/docs)\nWe can access the playground at [http://127.0.0.1:8000/dhti-elixir-base/playground](http://127.0.0.1:8000/dhti-elixir-base/playground)\n\nWe can access the template from code with:\n\n```python\nfrom langserve.client import RemoteRunnable\n\nrunnable = RemoteRunnable(\"http://localhost:8000/dhti-elixir-base\")\n```",
    "bugtrack_url": null,
    "license": null,
    "summary": "DHTI Elixir Base",
    "version": "0.1.0",
    "project_urls": {
        "Documentation": "https://github.com/dermatologist/dhti",
        "Homepage": "https://nuchange.ca",
        "Repository": "https://github.com/dermatologist/dhti-elixir-base"
    },
    "split_keywords": [
        "gen ai",
        " dhti",
        " python"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "f3a40e1bbc49034962972daf7eb1d660f73ee1f94a0c55547b4eb04c424d1b95",
                "md5": "d674db3a35307690286a0b2ccef70723",
                "sha256": "bb9c75176da01ac45a1bb0fe5a32e6428f160f7a61c35cb78806807544f1d4c1"
            },
            "downloads": -1,
            "filename": "dhti_elixir_base-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d674db3a35307690286a0b2ccef70723",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.10",
            "size": 18471,
            "upload_time": "2025-08-10T14:04:45",
            "upload_time_iso_8601": "2025-08-10T14:04:45.653482Z",
            "url": "https://files.pythonhosted.org/packages/f3/a4/0e1bbc49034962972daf7eb1d660f73ee1f94a0c55547b4eb04c424d1b95/dhti_elixir_base-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "17061e580b7b57c55ad78ae0d0415fec692e957cdffb00e57f9b0955453507a5",
                "md5": "caac6646660d7eb2e8b023250a0f5d03",
                "sha256": "66542e704372b760abaa52bb89c997de85da937f8a588da47febb360ce2e5ff6"
            },
            "downloads": -1,
            "filename": "dhti_elixir_base-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "caac6646660d7eb2e8b023250a0f5d03",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.10",
            "size": 207455,
            "upload_time": "2025-08-10T14:04:46",
            "upload_time_iso_8601": "2025-08-10T14:04:46.708561Z",
            "url": "https://files.pythonhosted.org/packages/17/06/1e580b7b57c55ad78ae0d0415fec692e957cdffb00e57f9b0955453507a5/dhti_elixir_base-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-10 14:04:46",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "dermatologist",
    "github_project": "dhti",
    "github_not_found": true,
    "lcname": "dhti-elixir-base"
}
        
Elapsed time: 0.55482s