Monitor Python applications using Spring Boot Admin

Overview

PyPI build Codecov

Pyctuator

Monitor Python web apps using Spring Boot Admin.

Pyctuator supports Flask, FastAPI, aiohttp and Tornado. Django support is planned as well.

The following video shows a FastAPI web app being monitored and controled using Spring Boot Admin.

Pyctuator Example

The complete example can be found in Advanced example.

Requirements

Python 3.7+

Pyctuator has zero hard dependencies.

Installing

Install Pyctuator using pip: pip3 install pyctuator

Why?

Many Java shops use Spring Boot as their main web framework for developing microservices. These organizations often use Spring Actuator together with Spring Boot Admin to monitor their microservices' status, gain access to applications' state and configuration, manipulate log levels, etc.

While Spring Boot is suitable for many use-cases, it is very common for organizations to also have a couple of Python microservices, as Python is often more suitable for some types of applications. The most common examples are Data Science and Machine Learning applications.

Setting up a proper monitoring tool for these microservices is a complex task, and might not be justified for just a few Python microservices in a sea of Java microservices.

This is where Pyctuator comes in. It allows you to easily integrate your Python microservices into your existing Spring Boot Admin deployment.

Main Features

Pyctuator is a partial Python implementation of the Spring Actuator API .

It currently supports the following Actuator features:

  • Application details
  • Metrics
    • Memory usage
    • Disk usage
    • Custom metrics
  • Health monitors
    • Built in MySQL health monitor
    • Built in Redis health monitor
    • Custom health monitors
  • Environment
  • Loggers - Easily change log levels during runtime
  • Log file - Tail the application's log file
  • Thread dump - See which threads are running
  • HTTP traces - Tail recent HTTP requests, including status codes and latency

Quickstart

The examples below show a minimal integration of FastAPI, Flask and aiohttp applications with Pyctuator.

After installing Flask/FastAPI/aiohttp and Pyctuator, start by launching a local Spring Boot Admin instance:

docker run --rm --name spring-boot-admin -p 8080:8080 michayaak/spring-boot-admin:2.2.3-1

Then go to http://localhost:8080 to get to the web UI.

Flask

The following example is complete and should run as is.

from flask import Flask
from pyctuator.pyctuator import Pyctuator

app_name = "Flask App with Pyctuator"
app = Flask(app_name)


@app.route("/")
def hello():
    return "Hello World!"


Pyctuator(
    app,
    app_name,
    app_url="http://host.docker.internal:5000",
    pyctuator_endpoint_url="http://host.docker.internal:5000/pyctuator",
    registration_url="http://localhost:8080/instances"
)

app.run(debug=False, port=5000)

The application will automatically register with Spring Boot Admin upon start up.

Log in to the Spring Boot Admin UI at http://localhost:8080 to interact with the application.

FastAPI

The following example is complete and should run as is.

from fastapi import FastAPI
from uvicorn import Server

from uvicorn.config import Config
from pyctuator.pyctuator import Pyctuator


app_name = "FastAPI App with Pyctuator"
app = FastAPI(title=app_name)


@app.get("/")
def hello():
    return "Hello World!"


Pyctuator(
    app,
    "FastAPI Pyctuator",
    app_url="http://host.docker.internal:8000",
    pyctuator_endpoint_url="http://host.docker.internal:8000/pyctuator",
    registration_url="http://localhost:8080/instances"
)

Server(config=(Config(app=app, loop="asyncio"))).run()

The application will automatically register with Spring Boot Admin upon start up.

Log in to the Spring Boot Admin UI at http://localhost:8080 to interact with the application.

aiohttp

The following example is complete and should run as is.

from aiohttp import web
from pyctuator.pyctuator import Pyctuator

app = web.Application()
routes = web.RouteTableDef()

@routes.get("/")
def hello():
    return web.Response(text="Hello World!")

Pyctuator(
    app,
    "aiohttp Pyctuator",
    app_url="http://host.docker.internal:8888",
    pyctuator_endpoint_url="http://host.docker.internal:8888/pyctuator",
    registration_url="http://localhost:8080/instances"
)

app.add_routes(routes)
web.run_app(app, port=8888)

The application will automatically register with Spring Boot Admin upon start up.

Log in to the Spring Boot Admin UI at http://localhost:8080 to interact with the application.

Registration Notes

When registering a service in Spring Boot Admin, note that:

  • Docker - If the Spring Boot Admin is running in a container while the managed service is running in the docker-host directly, the app_url and pyctuator_endpoint_url should use host.docker.internal as the url's host so Spring Boot Admin will be able to connect to the monitored service.
  • Http Traces - In order for the "Http Traces" tab to be able to hide requests sent by Spring Boot Admin to the Pyctuator endpoint, pyctuator_endpoint_url must be using the same host and port as app_url.
  • HTTPS - If Spring Boot Admin is using HTTPS with self-signed certificate, set the PYCTUATOR_REGISTRATION_NO_CERT environment variable so Pyctuator will disable certificate validation when registering (and deregistering).

Advanced Configuration

The following sections are intended for advanced users who want to configure advanced Pyctuator features.

Application Info

While Pyctuator only needs to know the application's name, we recommend that applications monitored by Spring Boot Admin will show additional build and git details. This becomes handy when scaling out a service to multiple instances by showing the version of each instance. To do so, you can provide additional build and git info using methods of the Pyctuator object:

pyctuator = Pyctuator(...)  # arguments removed for brevity

pyctuator.set_build_info(
    name="app",
    version="1.3.1",
    time=datetime.fromisoformat("2019-12-21T10:09:54.876091"),
)

pyctuator.set_git_info(
    commit="7d4fef3",
    time=datetime.fromisoformat("2019-12-24T14:18:32.123432"),
    branch="origin/master",
)

Once you configure build and git info, you should see them in the Details tab of Spring Boot Admin:

Detailed Build Info

DB Health

For services that use SQL database via SQLAlchemy, Pyctuator can easily monitor and expose the connection's health using the DbHealthProvider class as demonstrated below:

engine = create_engine("mysql+pymysql://root:[email protected]:3306")
pyctuator = Pyctuator(...)  # arguments removed for brevity
pyctuator.register_health_provider(DbHealthProvider(engine))

Once you configure the health provider, you should see DB health info in the Details tab of Spring Boot Admin:

DB Health

Redis health

If your service is using Redis, Pyctuator can monitor the connection to Redis by simply initializing a RedisHealthProvider:

r = redis.Redis()
pyctuator = Pyctuator(...)  # arguments removed for brevity
pyctuator.register_health_provider(RedisHealthProvider(r))

Custom Environment

Out of the box, Pyctuator exposes Python's environment variables to Spring Boot Admin.

In addition, an application may register an environment provider to provide additional configuration that should be exposed via Spring Boot Admin.

When the environment provider is called it should return a dictionary describing the environment. The returned dictionary is exposed to Spring Boot Admin.

Since Spring Boot Admin doesn't support hierarchical environment (only a flat key/value mapping), the provided environment is flattened as dot-delimited keys.

Pyctuator tries to hide secrets from being exposed to Spring Boot Admin by replacing the values of "suspicious" keys with ***.

Suspicious keys are keys that contain the words "secret", "password" and some forms of "key".

For example, if an application's configuration looks like this:

config = {
    "a": "s1",
    "b": {
        "secret": "ha ha",
        "c": 625,
    },
    "d": {
        "e": True,
        "f": "hello",
        "g": {
            "h": 123,
            "i": "abcde"
        }
    }
}

An environment provider can be registered like so:

pyctuator.register_environment_provider("config", lambda: config)

Filesystem and Memory Metrics

Pyctuator can provide filesystem and memory metrics.

To enable these metrics, install psutil

Note that the psutil dependency is optional and is only required if you want to enable filesystem and memory monitoring.

Loggers

Pyctuator leverages Python's builtin logging framework and allows controlling log levels at runtime.

Note that in order to control uvicorn's log level, you need to provide a logger object when instantiating it. For example:

myFastAPIServer = Server(
    config=Config(
        logger=logging.getLogger("uvi"), 
        app=app, 
        loop="asyncio"
    )
)

Spring Boot Admin Using Basic Authentication

Pyctuator supports registration with Spring Boot Admin that requires basic authentications. The credentials are provided when initializing the Pyctuator instance as follows:

# NOTE: Never include secrets in your code !!!
auth = BasicAuth(os.getenv("sba-username"), os.getenv("sba-password"))

Pyctuator(
    app,
    "Flask Pyctuator",
    app_url="http://localhost:5000",
    pyctuator_endpoint_url=f"http://localhost:5000/pyctuator",
    registration_url=f"http://spring-boot-admin:8080/instances",
    registration_auth=auth,
)

Full blown examples

The examples folder contains full blown Python projects that are built using Poetry.

To run these examples, you'll need to have Spring Boot Admin running in a local docker container. A Spring Boot Admin Docker image is available here.

Unless the example includes a docker-compose file, you'll need to start Spring Boot Admin using docker directly:

docker run --rm -p 8080:8080 michayaak/spring-boot-admin:2.2.3-1

(the docker image's tag represents the version of Spring Boot Admin, so if you need to use version 2.0.0, use michayaak/spring-boot-admin:2.0.0 instead, note it accepts connections on port 8082).

The examples include

  • FastAPI Example - demonstrates integrating Pyctuator with the FastAPI web framework.
  • Flask Example - demonstrates integrating Pyctuator with the Flask web framework.
  • Advanced Example - demonstrates configuring and using all the advanced features of Pyctuator.

Contributing

To set up a development environment, make sure you have Python 3.7 or newer installed, and run make bootstrap.

Use make check to run static analysis tools.

Use make test to run tests.

Comments
  • How do I secure pyctuator endpoints with basic auth (FastAPI)?

    How do I secure pyctuator endpoints with basic auth (FastAPI)?

    In the API of the Pyctuator object I did not find a way to secure the provided endpoints with BasicAuth. What would be the most straightforward way of doing this using FastAPI?

    Also, how can i communicate the credentials to Spring Boot Admin?

    If I understood https://codecentric.github.io/spring-boot-admin/current/#spring-boot-admin-client right, I can use something like:

        metadata={
            "user.name": "foo",
            "user.password": "bar"
        }
    

    In the metadata arg of Pyctuator. Is that correct?

    opened by thurse93 14
  • Feature Request: Adding optional information to the info endpoint.

    Feature Request: Adding optional information to the info endpoint.

    In our infrastructure we use custom elements of the info endpoint for among other things grafana links. Could you add a function for registering custom fields in the info endpoint?

    opened by mikand13 11
  • Bump uvicorn from 0.9.1 to 0.11.7 in /examples/Advanced

    Bump uvicorn from 0.9.1 to 0.11.7 in /examples/Advanced

    Bumps uvicorn from 0.9.1 to 0.11.7.

    Release notes

    Sourced from uvicorn's releases.

    Version 0.11.7

    0.11.7

    • SECURITY FIX: Prevent sending invalid HTTP header names and values.
    • SECURITY FIX: Ensure path value is escaped before logging to the console.

    Version 0.11.6

    • Fix overriding the root logger.

    Version 0.11.5

    • Revert "Watch all files, not just .py" due to unexpected side effects.
    • Revert "Pass through gunicorn timeout config." due to unexpected side effects.

    Version 0.11.4

    • Use watchgod, if installed, for watching code changes.
    • Reload application when any files in watched directories change, not just .py files.
    Changelog

    Sourced from uvicorn's changelog.

    0.11.7 - 2020-28-07

    • SECURITY FIX: Prevent sending invalid HTTP header names and values. (Pull #725)
    • SECURITY FIX: Ensure path value is escaped before logging to the console. (Pull #724)
    • Fix --proxy-headers client IP and host when using a Unix socket. (Pull #636)

    0.11.6

    • Fix overriding the root logger.

    0.11.5

    • Revert "Watch all files, not just .py" due to unexpected side effects.
    • Revert "Pass through gunicorn timeout config." due to unexpected side effects.

    0.11.4

    • Use watchgod, if installed, for watching code changes.
    • Watch all files, not just .py.
    • Pass through gunicorn timeout config.

    0.11.3

    • Update dependencies.

    0.11.2

    • Don't open socket until after application startup.
    • Support --backlog.

    0.11.1

    • Use a more liberal h11 dependency. Either 0.8.* or `0.9.*``.

    0.11.0

    • Fix reload/multiprocessing on Windows with Python 3.8.
    • Drop IOCP support. (Required for fix above.)
    • Add uvicorn --version flag.
    • Add --use-colors and --no-use-colors flags.
    • Display port correctly, when auto port selection isused with --port=0.

    0.10.8

    • Fix reload/multiprocessing error.

    0.10.7

    • Use resource_sharer.DupSocket to resolve socket sharing on Windows.

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 6
  • Possibility to fine-tune the scrubbing behaviour of OsEnvironmentVariableProvider?

    Possibility to fine-tune the scrubbing behaviour of OsEnvironmentVariableProvider?

    As the title says, could you provide a feature to customize the scrubbing behaviour OsEnvironmentVariableProvider / the scrub_secrets function? Even better: Is there a way to remove certain environment variables from the systemEnvironment dict alltogether?

    Background: We are using Pyctuator in our CloudFoundry PaaS environment. CloudFoundry uses VCAP_SERVICES variables to provide service credentials via a JSON Blob. Of course, this cannot be scrubbed by the default implementation, so almost all of our sensible credentials are getting exposed via the Actuator Endpoints. We would prefer to just exclude VCAP_SERVICES from the exposed environment variables.

    opened by thurse93 6
  • Enabling customization of application metadata

    Enabling customization of application metadata

    Hello, first I would like to congratulate all the maintainers for this relevant project.

    I am adopting the actuator in all the languages ​​we use (node, python, .netCore and Java).

    I missed an option to define the application's metadata for spring boot registration.

    I made this simple proposal to support customized metadata.

    I hope that this PR is worthy to be adopted.

    image

    image

    image

    I found a block to run the tests locally, I am trying hard to beat it.

    To guarantee functionality, I tested it manually, either passing the new parameter or omitting it.

    opened by marcosborges 6
  • create scrubber for request headers in trace

    create scrubber for request headers in trace

    PR for #44

    This PR enables the HttpTracer to run scrubbing function similar to the environment scrubber

    During the implementation I noticed that the different vendors differ. Some contain a list of values for each headers, some can only have one.

    This PR normalises the traces to always contains a list.

    Also flask has capitalised headers e.g.: Authorization vs authorization

    Currently I'm checking this in the E2E but you could thinking about normaling it as well

    opened by mxab 6
  • Flask implementation - Pyctuator messes with app logging conf

    Flask implementation - Pyctuator messes with app logging conf

    Hi,

    I'm trying to install Pyctuator on our existing app on Flask/uWSGI.

    Everything works fine except that pyctuator is modifying the logging configuration of the application, and some things don't work as expected after Pyctuator is set up.

    Our app is created the following way (redacted to the relevant part only) :

    def create_app():
    
        """ Flask application factory """
    
        # create and configure the app
        app = Flask(__name__, instance_path=instance_path, instance_relative_config=True)
        app.config.from_json('config.json')
    
        # Allow CORS from angers.cnp.fr
        CORS(app)
    
        # Add proxyfix middleware to handle redirects correctly
        # x_port = 0 to work around Kong sending incorrect X-Forwarded-Port header
        app.wsgi_app = ProxyFix(app.wsgi_app, x_host=1, x_port=0)
    
        # configure the DB
        # pool_recycle must be set below 3600 to avoid the session to be killed by the firewall
        engine = create_engine(app.config["DATABASE_URI"], convert_unicode=True, pool_pre_ping=True, pool_recycle=3500)
    
       # Enable pyctuator
        pyctuator = Pyctuator(
            app,
            "Plateforme IA",
            pyctuator_endpoint_url=app.config["ROOT_API_PATH"]+'/actuator',
            app_url=None,
            registration_url=None
        )
    
    
        pyctuator.set_build_info(
            name="Plateforme IA",
            version=app.config["VERSION"],
            time=dateutil.parser.parse(app.config["BUILD_DATE"]),
        )
    
        pyctuator.register_health_provider(DbHealthProvider(engine))
    
        sentinel = Sentinel(app.config["CACHE_REDIS_SENTINELS"], socket_timeout=1.0)
        master = sentinel.master_for(app.config["CACHE_REDIS_SENTINEL_MASTER"], socket_timeout=1.0)
        pyctuator.register_health_provider(RedisHealthProvider(master))
    
        return app
    
    application = create_app()
    
    • Before setting up Pyctuator, any runtime exception will be logged in uwsgi_error.log and I can use the root logger anywhere in an endpoint code and it gets logged in uwsgi_error.log, such as :
    import logging
    logging.critical("Test")
    
    • After setting up Pyctuator, nothing is logged in uwsgi_error.log at all.

    This is not acceptable for us.

    Any idea why we have this behaviour ?

    FYI if I comment the line 92 in pyctuator.py, the problem goes away :

          root_logger.addHandler(self.pyctuator_impl.logfile.log_messages)
    

    Thanks

    bug 
    opened by jpays 6
  • added integration with aiohttp

    added integration with aiohttp

    Added initial integration with aiohttp #17.

    @MatanRubin would you rather I use the notation below to fix the pylint warning or is there any other?

    • https://github.com/SolarEdgeTech/pyctuator/runs/828838499?check_suite_focus=true#step:12:11
    # current code
    async def get_info(request: web.Request) -> web.Response:
                return web.json_response(self._to_dict(pyctuator_impl.app_info))
    
    # fix W0613: Unused argument 'request' (unused-argument)
    async def get_info(_: web.Request) -> web.Response:
                return web.json_response(self._to_dict(pyctuator_impl.app_info))
    
    opened by amenezes 6
  • health-Endpoint: Does not return 503 when Status is DOWN

    health-Endpoint: Does not return 503 when Status is DOWN

    I have the following minimal example:

    from dataclasses import dataclass
    
    from fastapi import FastAPI
    from pyctuator.health.health_provider import HealthDetails, HealthProvider, HealthStatus, Status
    from pyctuator.pyctuator import Pyctuator
    
    @dataclass
    class AppSpecificHealthDetails(HealthDetails):
        my_dependency_connectivity: str
    
    
    class MyHealthProvider(HealthProvider):
        def is_supported(self) -> bool:
            return True
    
        def get_name(self) -> str:
            return "my-dependency-health"
    
        def get_health(self) -> HealthStatus:
            return HealthStatus(
                status=Status.DOWN,
                details=AppSpecificHealthDetails(my_dependency_connectivity="is down")
            )
    
    
    app = FastAPI()
    
    
    @app.get("/")
    async def hello_world():
        return {"message": "hello world"}
    
    pyctuator = Pyctuator(
        app,
        app_name="my_app",
        app_url="http://127.0.0.1:8000/",
        pyctuator_endpoint_url="http://127.0.0.1:8000/pyctuator",
        registration_url=None
    )
    
    pyctuator.register_health_provider(MyHealthProvider())
    

    As expected the Status of the Subcomponent is DOWN, and subsequently the status of the whole application is also DOWN. However the status_code is still 200. I would expect to receive 503 for Status codes DOWN, just like in a Spring Boot Application.

    $ curl -vs http://localhost:8000/pyctuator/health
    {"status":"DOWN","details":{"my-dependency-health":{"status":"DOWN","details":{"my_dependency_connectivity":"is down"}}}}*   Trying 127.0.0.1:8000...
    * Connected to localhost (127.0.0.1) port 8000 (#0)
    > GET /pyctuator/health HTTP/1.1
    > Host: localhost:8000
    > User-Agent: curl/7.81.0
    > Accept: */*
    >
    * Mark bundle as not supporting multiuse
    < HTTP/1.1 200 OK
    < date: Fri, 02 Sep 2022 08:51:27 GMT
    < server: uvicorn
    < content-length: 121
    < content-type: application/vnd.spring-boot.actuator.v2+json;charset=UTF-8
    <
    { [121 bytes data]
    * Connection #0 to host localhost left intact
    
    opened by thurse93 5
  • ERROR: No matching distribution found for pyctuator

    ERROR: No matching distribution found for pyctuator

    Not sure if I am the only one, but it seems like there is an issue getting the package:

    ERROR: Could not find a version that satisfies the requirement pyctuator (from versions: none) ERROR: No matching distribution found for pyctuator root ➜ /workspaces/test-python $

    opened by PvanHengel 5
  • Add option for custom SSL context for registration requests

    Add option for custom SSL context for registration requests

    There is currently no option to set the SSL context to use for registration requests. In my case this is required as my SBA server requires a valid certificate.

    Looking at the code here it doesn't look like it would be too difficult to pass in an SSL context to use for this in a similar way to registration_auth.

    opened by deadpassive 4
  • Support for Apache Cassandra in DB Health

    Support for Apache Cassandra in DB Health

    Hi - it would be helpful to a project I am on to support Apache Cassandra. If someone could give me an overview or some documentation on how this might be best implemented I would be happy to develop it.

    Thanks.

    opened by millerjp 2
  • Add optional support for k8s liveness and rediness probes

    Add optional support for k8s liveness and rediness probes

    See https://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-features.html#production-ready-kubernetes-probes for how its done in spring-boot's actuator.

    In high level, pyctuator should support telling k8s when an application/service is ready to serve requests (i.e. readiness probe) and if the application is alive (this is the liveness probe) - this is different from the health status returned by /pyctuator/health for two reasons:

    1. it should return fast, so shouldn't include health checks of external resources
    2. it should reflect the k8s lifecycle as described in actuator's documentation (and in k8s docs of course)

    While actuator allow to configure additional checks to these probes, it is suggested that initially we'll provide default implementation that users can choose to use.

    opened by michaelyaakoby 12
  • Verify Pyctuator's API is in sync with spring-boot-actuator API

    Verify Pyctuator's API is in sync with spring-boot-actuator API

    So far Pyctuator's API was manually built to match the spring-boot-actuator API and therefore some deviation is expected (and accepted...).

    Please identify these deviations and prioritize fixing them by comparing the API to https://docs.spring.io/spring-boot/docs/current/actuator-api/html/.

    Even better, generate the API code (data classes for sure) from actuator's openapidoc. The openapidoc can be generated when running a spring-boot-admin application that's configured with actuator and with springdoc.show-actuator set to true - see example in the api-docs.zip.

    opened by michaelyaakoby 0
Releases(v1.0.1)
Owner
SolarEdge Technologies
SolarEdge Technologies
A simple docker-compose app for orchestrating a fastapi application, a celery queue with rabbitmq(broker) and redis(backend)

fastapi - celery - rabbitmq - redis - Docker A simple docker-compose app for orchestrating a fastapi application, a celery queue with rabbitmq(broker

Kartheekasasanka Kaipa 83 Dec 19, 2022
This project is a realworld backend based on fastapi+mongodb

This project is a realworld backend based on fastapi+mongodb. It can be used as a sample backend or a sample fastapi project with mongodb.

邱承 381 Dec 29, 2022
Backend logic implementation for realworld with awesome FastAPI

Backend logic implementation for realworld with awesome FastAPI

Nik 2.2k Jan 08, 2023
Backend, modern REST API for obtaining match and odds data crawled from multiple sites. Using FastAPI, MongoDB as database, Motor as async MongoDB client, Scrapy as crawler and Docker.

Introduction Apiestas is a project composed of a backend powered by the awesome framework FastAPI and a crawler powered by Scrapy. This project has fo

Fran Lozano 54 Dec 13, 2022
ReST based network device broker

The Open API Platform for Network Devices netpalm makes it easy to push and pull state from your apps to your network by providing multiple southbound

368 Dec 31, 2022
Install multiple versions of r2 and its plugins via Pip on any system!

r2env This repository contains the tool available via pip to install and manage multiple versions of radare2 and its plugins. r2-tools doesn't conflic

radare org 18 Oct 11, 2022
An extension for GINO to support Starlette server.

gino-starlette Introduction An extension for GINO to support starlette server. Usage The common usage looks like this: from starlette.applications imp

GINO Community 75 Dec 08, 2022
The base to start an openapi project featuring: SQLModel, Typer, FastAPI, JWT Token Auth, Interactive Shell, Management Commands.

The base to start an openapi project featuring: SQLModel, Typer, FastAPI, JWT Token Auth, Interactive Shell, Management Commands.

Bruno Rocha 251 Jan 09, 2023
A Nepali Dictionary API made using FastAPI.

Nepali Dictionary API A Nepali dictionary api created using Fast API and inspired from https://github.com/nirooj56/Nepdict. You can say this is just t

Nishant Sapkota 4 Mar 18, 2022
This is a FastAPI application that provides a RESTful API for the Podcasts from different podcast's RSS feeds

The Podcaster API This is a FastAPI application that provides a RESTful API for the Podcasts from different podcast's RSS feeds. The API response is i

Sagar Giri 2 Nov 07, 2021
Auth for use with FastAPI

FastAPI Auth Pluggable auth for use with FastAPI Supports OAuth2 Password Flow Uses JWT access and refresh tokens 100% mypy and test coverage Supports

David Montague 95 Jan 02, 2023
Lung Segmentation with fastapi

Lung Segmentation with fastapi This app uses FastAPI as backend. Usage for app.py First install required libraries by running: pip install -r requirem

Pejman Samadi 0 Sep 20, 2022
FastAPI Boilerplate

FastAPI Boilerplate Features SQlAlchemy session Custom user class Top-level dependency Dependencies for specific permissions Celery SQLAlchemy for asy

Hide 417 Jan 07, 2023
Python supercharged for the fastai library

Welcome to fastcore Python goodies to make your coding faster, easier, and more maintainable Python is a powerful, dynamic language. Rather than bake

fast.ai 810 Jan 06, 2023
A Prometheus Python client library for asyncio-based applications

aioprometheus aioprometheus is a Prometheus Python client library for asyncio-based applications. It provides metrics collection and serving capabilit

132 Dec 28, 2022
Online Repo Browser

MSYS2 Web Interface A simple web interface for browsing the MSYS2 repos. Rebuild CSS/JS (optional): cd frontend npm install npm run build Run for Dev

MSYS2 64 Dec 30, 2022
Social Distancing Detector using deep learning and capable to run on edge AI devices such as NVIDIA Jetson, Google Coral, and more.

Smart Social Distancing Smart Social Distancing Introduction Getting Started Prerequisites Usage Processor Optional Parameters Configuring AWS credent

Neuralet 129 Dec 12, 2022
官方文档已经有翻译的人在做了,

FastAPI 框架,高性能,易学,快速编码,随时可供生产 文档:https://fastapi.tiangolo.com 源码:https://github.com/tiangolo/fastapi FastAPI 是一个现代、快速(高性能)的 Web 框架,基于标准 Python 类型提示,使用

ApacheCN 27 Nov 11, 2022
I'm curious if pydantic + fast api can be sensibly used with DDD + hex arch methodology

pydantic-ddd-exploration I'm curious if pydantic + fast api can be sensibly used with DDD + hex arch methodology Prerequisites nix direnv (nix-env -i

Olgierd Kasprowicz 2 Nov 17, 2021
Async and Sync wrapper client around httpx, fastapi, date stuff

lazyapi Async and Sync wrapper client around httpx, fastapi, and datetime stuff. Motivation This library is forked from an internal project that works

2 Apr 19, 2022