Skip to content

ross-zimmerle/python-webserver

Repository files navigation

Simple Python Server based on Langflow codebase.

Instructions on using Poetry

To use Poetry for managing dependencies and virtual environments, follow these steps:

  1. Install Poetry by running the following command in your terminal:
curl -sSL https://install.python-poetry.org | python3 -
  1. Navigate to your project directory and initialize Poetry by running:
poetry init
  1. Follow the prompts to provide information about your project.

  2. Add dependencies to your project by running:

poetry add package_name
  1. Poetry will automatically create a virtual environment for your project and install the specified package.

  2. To activate the virtual environment, run:

poetry shell
  1. You can now run your Python server using Poetry.
poetry run dev

modules

API

  • FastAPI - for api routes
  • socket.io - Bidirectional and low-latency communication

Logging

Task Queue

Data validation - typing

  • pydantic
  • pydantic-settings - provides optional Pydantic features for loading a settings or config class from environment variables or secrets files.
  • typer - Typer, build great CLIs. Easy to code. Based on Python type hints.

Multicore - Process-based parallelism

HTTP

Testing

Linting

AI

Docs

cd docs
npx docusaurus start

Open http://localhost:3000 and follow the tutorial.

Notes

Look into poetry groups for managing dependencies over multiple environments

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published