Skip to main content

🚀A simple way to use langchain framework.

Project description

🛑 We are building the basic architecture of oplc, so stay tuned for the initial release.

oplc

Build status Python Version Dependencies Status

Code style: ruff Pre-commit Semantic Versions License Coverage Report

A simple way to use langchain framework.

Quick Start

pip install oplc

Then we can use the ability of LangChain alsf to chat like promptulate

import oplc

oplc.chat()

Development in local environment

Conda package manager is recommended. Create a conda environment.

conda create -n oplc python==3.10

Activate conda environment and install poetry

conda activate oplc
pip install poetry

Makefile usage

Makefile contains a lot of functions for faster development.

Install all dependencies and pre-commit hooks

Install requirements:

make install

Pre-commit hooks coulb be installed after git init via

make pre-commit-install

Codestyle and type checks

Automatic formatting uses ruff.

make polish-codestyle

# or use synonym
make formatting

Codestyle checks only, without rewriting files:

make check-codestyle

Note: check-codestyle uses ruff and darglint library

Code security

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

make check-safety

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

make check-safety

Tests with coverage badges

Run pytest

make test

All linters

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

make lint

the same as:

make check-codestyle && make test && make check-safety

Docker

make docker-build

which is equivalent to:

make docker-build VERSION=latest

Remove docker image with

make docker-remove

More information about docker.

Cleanup

Delete pycache files

make pycache-remove

Remove package build

make build-remove

Delete .DS_STORE files

make dsstore-remove

Remove .mypycache

make mypycache-remove

Or to remove all above run:

make cleanup

🛡 License

License

This project is licensed under the terms of the MIT license. See LICENSE for more details.

📃 Citation

@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.

This project was generated with P3G

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oplc-0.0.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oplc-0.0.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file oplc-0.0.1.tar.gz.

File metadata

  • Download URL: oplc-0.0.1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.0 Windows/10

File hashes

Hashes for oplc-0.0.1.tar.gz
Algorithm Hash digest
SHA256 016152732e5b752f5e78ce0000fbbc0af854043995823f0b8d41f230f3fd932f
MD5 17982bac17d969b464e92a98907eed9e
BLAKE2b-256 d6f1f9b28f7003da1c3f82d79cee51c6cdfdaa26293377dfed4051481b55e702

See more details on using hashes here.

File details

Details for the file oplc-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: oplc-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.0 Windows/10

File hashes

Hashes for oplc-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6528ec4064d80a15df8549c32996c714b397aad334684649f99576c9b8baacdd
MD5 5b7a44cc770e4c7c801b9daf114779df
BLAKE2b-256 ea3c813e789e74e1e21e803102c3c25ff053ff9e9452183631b9383cd2d6b801

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page