pcao


Namepcao JSON
Version 0.0.1 PyPI version JSON
download
home_pagehttps://github.com/Undertone0809/pcao
SummaryπŸš€Python cache of object.
upload_time2024-06-29 14:25:52
maintainerNone
docs_urlNone
authoraslf
requires_python<4.0,>=3.8.0
licenseMIT
keywords pcao cache object
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            > πŸ›‘ We are building the basic architecture of pcao, so stay tuned for the initial release.

# pcao

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

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

```python
import pcao

pcao.chat()
```


## Development in local environment

Conda package manager is recommended. Create a conda environment.

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

Activate conda environment and install poetry

```bash
conda activate pcao
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/pcao",
    "name": "pcao",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.8.0",
    "maintainer_email": null,
    "keywords": "pcao, cache, object",
    "author": "aslf",
    "author_email": "zeeland4work@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/fe/94/c33a781b6462ca937d9519a277f5d54036d8897a6505c02be32fe04ebebf/pcao-0.0.1.tar.gz",
    "platform": null,
    "description": "> \ud83d\uded1 We are building the basic architecture of pcao, so stay tuned for the initial release.\n\n# pcao\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 pcao\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 pcao\n\npcao.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 pcao python==3.10\n```\n\nActivate conda environment and install poetry\n\n```bash\nconda activate pcao\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\ude80Python cache of object.",
    "version": "0.0.1",
    "project_urls": {
        "Homepage": "https://github.com/Undertone0809/pcao",
        "Repository": "https://github.com/Undertone0809/pcao"
    },
    "split_keywords": [
        "pcao",
        " cache",
        " object"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "308db177f16f37606ef34d2fbb1b990a786bdbd4cd61b6efeb3626cc16e42a63",
                "md5": "7fcc8363b6f4a681927e360120a3383a",
                "sha256": "11b62d9c44a01d8be92be645e9ddbc90d95f3da3bc5523cfd24d596b2a824b6b"
            },
            "downloads": -1,
            "filename": "pcao-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7fcc8363b6f4a681927e360120a3383a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8.0",
            "size": 4118,
            "upload_time": "2024-06-29T14:25:50",
            "upload_time_iso_8601": "2024-06-29T14:25:50.926103Z",
            "url": "https://files.pythonhosted.org/packages/30/8d/b177f16f37606ef34d2fbb1b990a786bdbd4cd61b6efeb3626cc16e42a63/pcao-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fe94c33a781b6462ca937d9519a277f5d54036d8897a6505c02be32fe04ebebf",
                "md5": "080bce8b777078ce5e0f2b6af484cd53",
                "sha256": "afdcd2629c1e3c519875ac684e34bb1ddcdeecc060215375109a19decddb93d3"
            },
            "downloads": -1,
            "filename": "pcao-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "080bce8b777078ce5e0f2b6af484cd53",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.8.0",
            "size": 4829,
            "upload_time": "2024-06-29T14:25:52",
            "upload_time_iso_8601": "2024-06-29T14:25:52.632946Z",
            "url": "https://files.pythonhosted.org/packages/fe/94/c33a781b6462ca937d9519a277f5d54036d8897a6505c02be32fe04ebebf/pcao-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-29 14:25:52",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Undertone0809",
    "github_project": "pcao",
    "github_not_found": true,
    "lcname": "pcao"
}
        
Elapsed time: 1.43728s