Skip to main content

Flamingo

Installing

pip install flamingo

Example

simple http server

import json
from flamingo import Flamingo, Response

app = Flamingo()

def homepage():
    return "Hello world"

app.register("/", homepage)
app.register("/text", "this is just a line of text")

data = json.dumps({"code":200, "msg":"hello world"})
app.register("/json", Response(200, data, content_type="application/json"))

app.run()

Release files for flamingo-server 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flamingo-server 0.0.2
File Size Uploaded
flamingo-server-0.0.2.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flamingo-server 0.0.2
File Interpreter ABI Platform
flamingo_server-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 10.9 kB

Release files / flamingo-server-0.0.2.tar.gz

Download URL flamingo-server-0.0.2.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c5c9001ba5c66120989b1cf40eb93e0e90eae40726a2dd973fc50e445bb3d7d7
BLAKE2b-256 checksum
How to use checksums
501be713a92521106c68cb65fbd8de31a1b4ad356024106b1110ae7f914a36c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.0

Release files / flamingo_server-0.0.2-py3-none-any.whl

Download URL flamingo_server-0.0.2-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ba937a21d51e963add02a849fe489e50276f579b68492cbebb9c807eab11eb42
BLAKE2b-256 checksum
How to use checksums
b5018500ca41cb764618d3f12bd04ce623ff875b61283c09722aa527feb3276b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.0

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page