Browse Source

Drop APIStar (#4167)

Tom Christie 6 years ago
parent
commit
abd5ae6630

+ 0 - 29
frameworks/Python/apistar/README.md

@@ -1,29 +0,0 @@
-# API Star Benchmark Test
-
-This is the API Star portion of a [benchmarking tests suite](../../)
-comparing a variety of web development platforms.
-
-The information below is specific to API Star. For further guidance,
-review the [documentation](http://frameworkbenchmarks.readthedocs.org/en/latest/).
-Also note that there is additional information provided in
-the [Python README](../).
-
-## Description
-
-[API Star](https://github.com/tomchristie/apistar) is a fast and expressive
-API framework for Python 3.
-
-## Server
-
-* Gunicorn & Meinheld on Python 3
-
-## Test Paths & Sources
-
-All of the test implementations are located within a single file ([app.py](app.py)).
-
-* [JSON Serialization](app.py): "/json"
-* [Plaintext](app.py): "/plaintext"
-
-## Resources
-
-* [Repo](https://github.com/tomchristie/apistar)

+ 0 - 9
frameworks/Python/apistar/apistar.dockerfile

@@ -1,9 +0,0 @@
-FROM python:3.6.6-stretch
-
-ADD ./ /apistar
-
-WORKDIR /apistar
-
-RUN pip3 install -r /apistar/requirements.txt
-
-CMD gunicorn app:app -c gunicorn_conf.py

+ 0 - 18
frameworks/Python/apistar/app.py

@@ -1,18 +0,0 @@
-from apistar import App, Route, http
-
-
-def json_view() -> http.JSONResponse:
-    content = {'message': 'Hello, world!'}
-    return http.JSONResponse(content, status_code=200)
-
-
-def plaintext_view() -> http.Response:
-
-    content = 'Hello, world!'
-    headers = {'Content-Type': 'text/plain'}
-    return http.Response(content, headers=headers)
-
-app = App(routes=[
-    Route('/json', 'GET', json_view),
-    Route('/plaintext', 'GET', plaintext_view),
-])

+ 0 - 23
frameworks/Python/apistar/benchmark_config.json

@@ -1,23 +0,0 @@
-{
-  "framework": "apistar",
-  "tests": [{
-    "default": {
-      "json_url": "/json",
-      "plaintext_url": "/plaintext",
-      "port": 8080,
-      "approach": "Realistic",
-      "classification": "Micro",
-      "framework": "API Star",
-      "language": "Python",
-      "flavor": "Python3",
-      "platform": "None",
-      "webserver": "Meinheld",
-      "os": "Linux",
-      "orm": "Raw",
-      "database_os": "Linux",
-      "database": "None",
-      "display_name": "API Star",
-      "notes": ""
-    }
-  }]
-}

+ 0 - 26
frameworks/Python/apistar/gunicorn_conf.py

@@ -1,26 +0,0 @@
-import multiprocessing
-import os
-import sys
-
-_is_pypy = hasattr(sys, 'pypy_version_info')
-_is_travis = os.environ.get('TRAVIS') == 'true'
-
-# falcon only implements json and plain. Not wait DB.
-workers = multiprocessing.cpu_count()  # *3
-if _is_travis:
-    workers = 2
-
-bind = "0.0.0.0:8080"
-keepalive = 120
-errorlog = '-'
-pidfile = 'gunicorn.pid'
-
-if _is_pypy:
-    worker_class = "tornado"
-else:
-    worker_class = "meinheld.gmeinheld.MeinheldWorker"
-
-    def post_fork(server, worker):
-        # Disable access log
-        import meinheld.server
-        meinheld.server.set_access_logger(None)

+ 0 - 4
frameworks/Python/apistar/requirements.txt

@@ -1,4 +0,0 @@
-gunicorn==19.9.0
-meinheld==0.6.1
-apistar==0.5.39
-ujson==1.35