Experimentations on Bazel: Python & FastAPI (1)

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • black

    The uncompromising Python code formatter

  • format the code with black

  • mypy

    Optional static typing for Python

  • check/audit the code with mypy and other linters (managed by [pylama]

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • rules_python

    Bazel Python Rules

  • load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") #------------------------------------------------------------------------------ # Python #------------------------------------------------------------------------------ # enable python rules http_archive( name = "rules_python", url = "https://github.com/bazelbuild/rules_python/releases/download/0.2.0/rules_python-0.2.0.tar.gz", sha256 = "778197e26c5fbeb07ac2a2c5ae405b30f6cb7ad1f5510ea6fdac03bded96cc6f", )

  • rules_pyenv

    Bazel rules for pyenv (simple python version management)

  • # use pyenv to enforce python version http_archive( name = "dpu_rules_pyenv", sha256 = "d057168a757efa74e6345edd4776a1c0f38134c2d48eea4f3ef4783e1ea2cb0f", strip_prefix = "rules_pyenv-0.1.4", urls = ["https://github.com/digital-plumbers-union/rules_pyenv/archive/v0.1.4.tar.gz"], ) load("@dpu_rules_pyenv//pyenv:defs.bzl", "pyenv_install") pyenv_install( hermetic = False, py2 = "2.7.18", py3 = "3.9.2", )

  • fastapi

    FastAPI framework, high performance, easy to learn, fast to code, ready for production

  • use FastAPI as web framework to handle http request

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts