oplc


Nameoplc JSON
Version 0.0.1 PyPI version JSON
download
home_pagehttps://github.com/Undertone0809/aslf
Summary🚀A simple way to use langchain framework.
upload_time2024-05-19 01:52:48
maintainerNone
docs_urlNone
authoraslf
requires_python<4.0,>=3.8.1
licenseMIT
keywords langchain aslf llm openai chatgpt promptulate
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            > 🛑 We are building the basic architecture of oplc, so stay tuned for the initial release.

# oplc

<div align="center">

[![Build status](https://github.com/Undertone0809/aslf/workflows/build/badge.svg?branch=main&event=push)](https://github.com/Undertone0809/aslf/actions?query=workflow%3Abuild)
[![Python Version](https://img.shields.io/pypi/pyversions/aslf.svg)](https://pypi.org/project/aslf/)
[![Dependencies Status](https://img.shields.io/badge/dependencies-up%20to%20date-brightgreen.svg)](https://github.com/Undertone0809/aslf/pulls?utf8=%E2%9C%93&q=is%3Apr%20author%3Aapp%2Fdependabot)

[![Code style: ruff](https://img.shields.io/badge/code%20style-ruff-000000.svg)](https://github.com/astral-sh/ruff)
[![Pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/Undertone0809/aslf/blob/main/.pre-commit-config.yaml)
[![Semantic Versions](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--versions-e10079.svg)](https://github.com/Undertone0809/aslf/releases)
[![License](https://img.shields.io/github/license/Undertone0809/aslf)](https://github.com/Undertone0809/aslf/blob/main/LICENSE)
![Coverage Report](assets/images/coverage.svg)

A simple way to use langchain framework.

</div>


## Quick Start

```shell
pip install oplc
```

Then we can use the ability of [LangChain](https://www.langchain.com/) alsf to chat like [promptulate](https://github.com/Undertone0809/promptulate)

```python
import oplc

oplc.chat()
```


## Development in local environment

Conda package manager is recommended. Create a conda environment.

```bash
conda create -n oplc python==3.10
```

Activate conda environment and install poetry

```bash
conda activate oplc
pip install poetry
```



### Makefile usage

[`Makefile`](https://github.com/Undertone0809/aslf/blob/main/Makefile) contains a lot of functions for faster development.


<details>
<summary>Install all dependencies and pre-commit hooks</summary>
<p>

Install requirements:

```bash
make install
```

Pre-commit hooks coulb be installed after `git init` via

```bash
make pre-commit-install
```

</p>
</details>

<details>
<summary>Codestyle and type checks</summary>
<p>

Automatic formatting uses `ruff`.

```bash
make polish-codestyle

# or use synonym
make formatting
```

Codestyle checks only, without rewriting files:

```bash
make check-codestyle
```

> Note: `check-codestyle` uses `ruff` and `darglint` library

</p>
</details>

<details>
<summary>Code security</summary>
<p>

> If this command is not selected during installation, it cannnot be used.

```bash
make check-safety
```

This command launches `Poetry` integrity checks as well as identifies security issues with `Safety` and `Bandit`.

```bash
make check-safety
```

</p>
</details>

<details>
<summary>Tests with coverage badges</summary>
<p>

Run `pytest`

```bash
make test
```

</p>
</details>

<details>
<summary>All linters</summary>
<p>

Of course there is a command to run all linters in one:

```bash
make lint
```

the same as:

```bash
make check-codestyle && make test && make check-safety
```

</p>
</details>

<details>
<summary>Docker</summary>
<p>

```bash
make docker-build
```

which is equivalent to:

```bash
make docker-build VERSION=latest
```

Remove docker image with

```bash
make docker-remove
```

More information [about docker](https://github.com/Undertone0809/python-package-template/tree/main/%7B%7B%20cookiecutter.project_name%20%7D%7D/docker).

</p>
</details>

<details>
<summary>Cleanup</summary>
<p>
Delete pycache files

```bash
make pycache-remove
```

Remove package build

```bash
make build-remove
```

Delete .DS_STORE files

```bash
make dsstore-remove
```

Remove .mypycache

```bash
make mypycache-remove
```

Or to remove all above run:

```bash
make cleanup
```

</p>
</details>

## 🛡 License

[![License](https://img.shields.io/github/license/Undertone0809/aslf)](https://github.com/Undertone0809/aslf/blob/main/LICENSE)

This project is licensed under the terms of the `MIT` license. See [LICENSE](https://github.com/Undertone0809/aslf/blob/main/LICENSE) for more details.

## 📃 Citation

```bibtex
@misc{aslf,
  author = {aslf},
  title = {A simple way to use langchain framework.},
  year = {2024},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/Undertone0809/aslf}}
}
```

## Credits [![🚀 Your next Python package needs a bleeding-edge project structure.](https://img.shields.io/badge/P3G-%F0%9F%9A%80-brightgreen)](https://github.com/Undertone0809/python-package-template)

This project was generated with [P3G](https://github.com/Undertone0809/P3G)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Undertone0809/aslf",
    "name": "oplc",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.8.1",
    "maintainer_email": null,
    "keywords": "langchain, aslf, llm, openai, chatgpt, promptulate",
    "author": "aslf",
    "author_email": "zeeland4work@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/d6/f1/f9b28f7003da1c3f82d79cee51c6cdfdaa26293377dfed4051481b55e702/oplc-0.0.1.tar.gz",
    "platform": null,
    "description": "> \ud83d\uded1 We are building the basic architecture of oplc, so stay tuned for the initial release.\n\n# oplc\n\n<div align=\"center\">\n\n[![Build status](https://github.com/Undertone0809/aslf/workflows/build/badge.svg?branch=main&event=push)](https://github.com/Undertone0809/aslf/actions?query=workflow%3Abuild)\n[![Python Version](https://img.shields.io/pypi/pyversions/aslf.svg)](https://pypi.org/project/aslf/)\n[![Dependencies Status](https://img.shields.io/badge/dependencies-up%20to%20date-brightgreen.svg)](https://github.com/Undertone0809/aslf/pulls?utf8=%E2%9C%93&q=is%3Apr%20author%3Aapp%2Fdependabot)\n\n[![Code style: ruff](https://img.shields.io/badge/code%20style-ruff-000000.svg)](https://github.com/astral-sh/ruff)\n[![Pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/Undertone0809/aslf/blob/main/.pre-commit-config.yaml)\n[![Semantic Versions](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--versions-e10079.svg)](https://github.com/Undertone0809/aslf/releases)\n[![License](https://img.shields.io/github/license/Undertone0809/aslf)](https://github.com/Undertone0809/aslf/blob/main/LICENSE)\n![Coverage Report](assets/images/coverage.svg)\n\nA simple way to use langchain framework.\n\n</div>\n\n\n## Quick Start\n\n```shell\npip install oplc\n```\n\nThen we can use the ability of [LangChain](https://www.langchain.com/) alsf to chat like [promptulate](https://github.com/Undertone0809/promptulate)\n\n```python\nimport oplc\n\noplc.chat()\n```\n\n\n## Development in local environment\n\nConda package manager is recommended. Create a conda environment.\n\n```bash\nconda create -n oplc python==3.10\n```\n\nActivate conda environment and install poetry\n\n```bash\nconda activate oplc\npip install poetry\n```\n\n\n\n### Makefile usage\n\n[`Makefile`](https://github.com/Undertone0809/aslf/blob/main/Makefile) contains a lot of functions for faster development.\n\n\n<details>\n<summary>Install all dependencies and pre-commit hooks</summary>\n<p>\n\nInstall requirements:\n\n```bash\nmake install\n```\n\nPre-commit hooks coulb be installed after `git init` via\n\n```bash\nmake pre-commit-install\n```\n\n</p>\n</details>\n\n<details>\n<summary>Codestyle and type checks</summary>\n<p>\n\nAutomatic formatting uses `ruff`.\n\n```bash\nmake polish-codestyle\n\n# or use synonym\nmake formatting\n```\n\nCodestyle checks only, without rewriting files:\n\n```bash\nmake check-codestyle\n```\n\n> Note: `check-codestyle` uses `ruff` and `darglint` library\n\n</p>\n</details>\n\n<details>\n<summary>Code security</summary>\n<p>\n\n> If this command is not selected during installation, it cannnot be used.\n\n```bash\nmake check-safety\n```\n\nThis command launches `Poetry` integrity checks as well as identifies security issues with `Safety` and `Bandit`.\n\n```bash\nmake check-safety\n```\n\n</p>\n</details>\n\n<details>\n<summary>Tests with coverage badges</summary>\n<p>\n\nRun `pytest`\n\n```bash\nmake test\n```\n\n</p>\n</details>\n\n<details>\n<summary>All linters</summary>\n<p>\n\nOf course there is a command to run all linters in one:\n\n```bash\nmake lint\n```\n\nthe same as:\n\n```bash\nmake check-codestyle && make test && make check-safety\n```\n\n</p>\n</details>\n\n<details>\n<summary>Docker</summary>\n<p>\n\n```bash\nmake docker-build\n```\n\nwhich is equivalent to:\n\n```bash\nmake docker-build VERSION=latest\n```\n\nRemove docker image with\n\n```bash\nmake docker-remove\n```\n\nMore information [about docker](https://github.com/Undertone0809/python-package-template/tree/main/%7B%7B%20cookiecutter.project_name%20%7D%7D/docker).\n\n</p>\n</details>\n\n<details>\n<summary>Cleanup</summary>\n<p>\nDelete pycache files\n\n```bash\nmake pycache-remove\n```\n\nRemove package build\n\n```bash\nmake build-remove\n```\n\nDelete .DS_STORE files\n\n```bash\nmake dsstore-remove\n```\n\nRemove .mypycache\n\n```bash\nmake mypycache-remove\n```\n\nOr to remove all above run:\n\n```bash\nmake cleanup\n```\n\n</p>\n</details>\n\n## \ud83d\udee1 License\n\n[![License](https://img.shields.io/github/license/Undertone0809/aslf)](https://github.com/Undertone0809/aslf/blob/main/LICENSE)\n\nThis project is licensed under the terms of the `MIT` license. See [LICENSE](https://github.com/Undertone0809/aslf/blob/main/LICENSE) for more details.\n\n## \ud83d\udcc3 Citation\n\n```bibtex\n@misc{aslf,\n  author = {aslf},\n  title = {A simple way to use langchain framework.},\n  year = {2024},\n  publisher = {GitHub},\n  journal = {GitHub repository},\n  howpublished = {\\url{https://github.com/Undertone0809/aslf}}\n}\n```\n\n## Credits [![\ud83d\ude80 Your next Python package needs a bleeding-edge project structure.](https://img.shields.io/badge/P3G-%F0%9F%9A%80-brightgreen)](https://github.com/Undertone0809/python-package-template)\n\nThis project was generated with [P3G](https://github.com/Undertone0809/P3G)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "\ud83d\ude80A simple way to use langchain framework.",
    "version": "0.0.1",
    "project_urls": {
        "Homepage": "https://github.com/Undertone0809/aslf",
        "Repository": "https://github.com/Undertone0809/aslf"
    },
    "split_keywords": [
        "langchain",
        " aslf",
        " llm",
        " openai",
        " chatgpt",
        " promptulate"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ea3c813e789e74e1e21e803102c3c25ff053ff9e9452183631b9383cd2d6b801",
                "md5": "5b7a44cc770e4c7c801b9daf114779df",
                "sha256": "6528ec4064d80a15df8549c32996c714b397aad334684649f99576c9b8baacdd"
            },
            "downloads": -1,
            "filename": "oplc-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5b7a44cc770e4c7c801b9daf114779df",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8.1",
            "size": 4134,
            "upload_time": "2024-05-19T01:52:46",
            "upload_time_iso_8601": "2024-05-19T01:52:46.380426Z",
            "url": "https://files.pythonhosted.org/packages/ea/3c/813e789e74e1e21e803102c3c25ff053ff9e9452183631b9383cd2d6b801/oplc-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d6f1f9b28f7003da1c3f82d79cee51c6cdfdaa26293377dfed4051481b55e702",
                "md5": "17982bac17d969b464e92a98907eed9e",
                "sha256": "016152732e5b752f5e78ce0000fbbc0af854043995823f0b8d41f230f3fd932f"
            },
            "downloads": -1,
            "filename": "oplc-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "17982bac17d969b464e92a98907eed9e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.8.1",
            "size": 4866,
            "upload_time": "2024-05-19T01:52:48",
            "upload_time_iso_8601": "2024-05-19T01:52:48.319115Z",
            "url": "https://files.pythonhosted.org/packages/d6/f1/f9b28f7003da1c3f82d79cee51c6cdfdaa26293377dfed4051481b55e702/oplc-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-19 01:52:48",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Undertone0809",
    "github_project": "aslf",
    "github_not_found": true,
    "lcname": "oplc"
}
        
Elapsed time: 0.23520s