Skip to content

scripturecentralqa/server

 
 

Repository files navigation

Server

PyPI Status Python Version License

Read the documentation at https://server.readthedocs.io/ Tests Codecov

pre-commit Black

Requirements

Installation

Install rtx: https://github.com/jdx/rtx

  • when you cd to the project directory, run rtx install to install the correct version of python, poetry, and pipx

Install dependencies using poetry: poetry install

Install nox: poetry run pipx install nox && poetry run pipx inject nox nox-poetry

Install pre-commit as a git hook: poetry run pre-commit install

create a .env file with the following variables:

OPENAI_API_KEY=your_openai_api_key (found on API keys page)
PINECONE_API_KEY=your_pinecone_api_key (found on API keys page)
PINECONE_ENV=your_pinecone_environment_name (found on API keys page)
UPSTASH_REDIS_REST_URL=your upstash redis url
UPSTASH_REDIS_REST_TOKEN=your upstash redis token

Development

Activate the poetry virtual environment: poetry shell

Periodically add the files you are working on to git and run the following to make sure the code is high quality:

  • pre-commit run -a
  • mypy server tests
  • pytest .

Usage

uvicorn server.main:app --reload

Contributing

Contributions are very welcome. To learn more, see the Contributor Guide.

License

Distributed under the terms of the MIT license, Server is free and open source software.

Issues

If you encounter any problems, please file an issue along with a detailed description.

Credits

This project was generated from @cjolowicz's Hypermodern Python Cookiecutter template.

About

Server for Scripture Central QA using python and fastapi

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 95.3%
  • Dockerfile 4.7%