Преглед изворни кода

Rename API-Hour folder to AsyncIO and prepare the arrival of new AsyncIO/API-Hour daemons

Ludovic Gasc (GMLudo) пре 10 година
родитељ
комит
d2d61872b3
31 измењених фајлова са 48 додато и 46 уклоњено
  1. 1 1
      .travis.yml
  2. 0 30
      frameworks/Python/API-Hour/README.md
  3. 0 9
      frameworks/Python/API-Hour/source_code
  4. 30 0
      frameworks/Python/AsyncIO/README.md
  5. 0 0
      frameworks/Python/AsyncIO/aiohttp.web/.gitignore
  6. 0 0
      frameworks/Python/AsyncIO/aiohttp.web/LICENSE
  7. 0 0
      frameworks/Python/AsyncIO/aiohttp.web/README.rst
  8. 0 0
      frameworks/Python/AsyncIO/aiohttp.web/etc/default/hello
  9. 0 0
      frameworks/Python/AsyncIO/aiohttp.web/etc/hello/api_hour/gunicorn_conf.py
  10. 0 0
      frameworks/Python/AsyncIO/aiohttp.web/etc/hello/api_hour/logging.ini
  11. 0 0
      frameworks/Python/AsyncIO/aiohttp.web/etc/hello/main/main.yaml
  12. 0 0
      frameworks/Python/AsyncIO/aiohttp.web/etc/init.d/hello
  13. 0 0
      frameworks/Python/AsyncIO/aiohttp.web/etc/logrotate.d/hello
  14. 0 0
      frameworks/Python/AsyncIO/aiohttp.web/etc/monit/conf.d/hello
  15. 0 0
      frameworks/Python/AsyncIO/aiohttp.web/etc/rsyslog.conf
  16. 0 0
      frameworks/Python/AsyncIO/aiohttp.web/hello/__init__.py
  17. 0 0
      frameworks/Python/AsyncIO/aiohttp.web/hello/endpoints/__init__.py
  18. 0 0
      frameworks/Python/AsyncIO/aiohttp.web/hello/endpoints/world.py
  19. 0 0
      frameworks/Python/AsyncIO/aiohttp.web/hello/servers/__init__.py
  20. 0 0
      frameworks/Python/AsyncIO/aiohttp.web/hello/servers/yocto_http.py
  21. 0 0
      frameworks/Python/AsyncIO/aiohttp.web/hello/services/__init__.py
  22. 0 0
      frameworks/Python/AsyncIO/aiohttp.web/hello/services/redis.py
  23. 0 0
      frameworks/Python/AsyncIO/aiohttp.web/hello/services/world.py
  24. 0 0
      frameworks/Python/AsyncIO/aiohttp.web/hello/templates/fortunes.html.j2
  25. 0 0
      frameworks/Python/AsyncIO/aiohttp.web/hello/utils/__init__.py
  26. 0 0
      frameworks/Python/AsyncIO/aiohttp.web/requirements.txt
  27. 2 1
      frameworks/Python/AsyncIO/aiohttp.web/setup.sh
  28. 9 0
      frameworks/Python/AsyncIO/aiohttp.web/source_code
  29. 4 4
      frameworks/Python/AsyncIO/benchmark_config.json
  30. 1 1
      frameworks/Python/AsyncIO/install.sh
  31. 1 0
      frameworks/Python/README.md

+ 1 - 1
.travis.yml

@@ -122,7 +122,7 @@ env:
     - "TESTDIR=PHP/php-zend-framework"
     - "TESTDIR=PHP/php-zend-framework1"
     - "TESTDIR=PHP/phreeze"
-    - "TESTDIR=Python/API-Hour"
+    - "TESTDIR=Python/AsyncIO"
     - "TESTDIR=Python/bottle"
     - "TESTDIR=Python/cherrypy"
     - "TESTDIR=Python/django"

+ 0 - 30
frameworks/Python/API-Hour/README.md

@@ -1,30 +0,0 @@
-# API-Hour Benchmark Test
-
-This is the API-Hour portion of a [benchmarking tests suite](../../) 
-comparing a variety of web development platforms.
-
-The information below is specific to API-Hour. For further guidance, 
-review the [documentation](http://frameworkbenchmarks.readthedocs.org/en/latest/). 
-Also note that there is additional information provided in 
-the [Python README](../).
-
-## Test Paths & Sources
-
-* [JSON Serialization](hello/endpoints/world.py): "/json"
-* [Single Database Query](hello/services/world.py): "/db"
-* [Multiple Database Queries](hello/services/world.py): "/queries?queries=#"*
-* [Fortunes](hello/services/world.py): "/fortunes"
-* [Database Updates](hello/services/world.py): "/updates?queries=#"*
-* [Plaintext](hello/endpoints/world.py): "/plaintext"
-
-*Replace # with an actual number.
-
-## Get Help
-
-### Community
-
-* [API-Hour Google Group](https://groups.google.com/forum/#!forum/api-hour)
-
-### Resources
-
-* [API-Hour Source Code](https://github.com/Eyepea/API-Hour)

+ 0 - 9
frameworks/Python/API-Hour/source_code

@@ -1,9 +0,0 @@
-./API-Hour/etc/hello/main/main.yaml
-./API-Hour/etc/hello/api_hour/logging.ini
-./API-Hour/etc/hello/api_hour/gunicorn_conf.py
-./API-Hour/hello/__init__.py
-./API-Hour/hello/hello/endpoints/__init__.py
-./API-Hour/hello/hello/endpoints/world.py
-./API-Hour/hello/hello/services/__init__.py
-./API-Hour/hello/hello/services/world.py
-./API-Hour/hello/hello/utils/__init__.py

+ 30 - 0
frameworks/Python/AsyncIO/README.md

@@ -0,0 +1,30 @@
+# AsyncIO/API-Hour Benchmark Test
+
+This is the AsyncIO/API-Hour portion of a [benchmarking tests suite](../../) 
+comparing a variety of web development platforms.
+
+The information below is specific to AsyncIO/API-Hour. For further guidance, 
+review the [documentation](http://frameworkbenchmarks.readthedocs.org/en/latest/). 
+Also note that there is additional information provided in 
+the [Python README](../).
+
+## Test Paths & Sources
+
+* [JSON Serialization](aiohttp.web/hello/endpoints/world.py): "/json"
+* [Single Database Query](aiohttp.web/hello/services/world.py): "/db"
+* [Multiple Database Queries](aiohttp.web/hello/services/world.py): "/queries?queries=#"*
+* [Fortunes](aiohttp.web/hello/services/world.py): "/fortunes"
+* [Database Updates](aiohttp.web/hello/services/world.py): "/updates?queries=#"*
+* [Plaintext](aiohttp.web/hello/endpoints/world.py): "/plaintext"
+
+*Replace # with an actual number.
+
+## Get Help
+
+### Community
+
+* [API-Hour Google Group](https://groups.google.com/forum/#!forum/api-hour)
+
+### Resources
+
+* [API-Hour Source Code](https://github.com/Eyepea/API-Hour)

+ 0 - 0
frameworks/Python/API-Hour/hello/.gitignore → frameworks/Python/AsyncIO/aiohttp.web/.gitignore


+ 0 - 0
frameworks/Python/API-Hour/hello/LICENSE → frameworks/Python/AsyncIO/aiohttp.web/LICENSE


+ 0 - 0
frameworks/Python/API-Hour/hello/README.rst → frameworks/Python/AsyncIO/aiohttp.web/README.rst


+ 0 - 0
frameworks/Python/API-Hour/hello/etc/default/hello → frameworks/Python/AsyncIO/aiohttp.web/etc/default/hello


+ 0 - 0
frameworks/Python/API-Hour/hello/etc/hello/api_hour/gunicorn_conf.py → frameworks/Python/AsyncIO/aiohttp.web/etc/hello/api_hour/gunicorn_conf.py


+ 0 - 0
frameworks/Python/API-Hour/hello/etc/hello/api_hour/logging.ini → frameworks/Python/AsyncIO/aiohttp.web/etc/hello/api_hour/logging.ini


+ 0 - 0
frameworks/Python/API-Hour/hello/etc/hello/main/main.yaml → frameworks/Python/AsyncIO/aiohttp.web/etc/hello/main/main.yaml


+ 0 - 0
frameworks/Python/API-Hour/hello/etc/init.d/hello → frameworks/Python/AsyncIO/aiohttp.web/etc/init.d/hello


+ 0 - 0
frameworks/Python/API-Hour/hello/etc/logrotate.d/hello → frameworks/Python/AsyncIO/aiohttp.web/etc/logrotate.d/hello


+ 0 - 0
frameworks/Python/API-Hour/hello/etc/monit/conf.d/hello → frameworks/Python/AsyncIO/aiohttp.web/etc/monit/conf.d/hello


+ 0 - 0
frameworks/Python/API-Hour/hello/etc/rsyslog.conf → frameworks/Python/AsyncIO/aiohttp.web/etc/rsyslog.conf


+ 0 - 0
frameworks/Python/API-Hour/hello/hello/__init__.py → frameworks/Python/AsyncIO/aiohttp.web/hello/__init__.py


+ 0 - 0
frameworks/Python/API-Hour/hello/hello/endpoints/__init__.py → frameworks/Python/AsyncIO/aiohttp.web/hello/endpoints/__init__.py


+ 0 - 0
frameworks/Python/API-Hour/hello/hello/endpoints/world.py → frameworks/Python/AsyncIO/aiohttp.web/hello/endpoints/world.py


+ 0 - 0
frameworks/Python/API-Hour/hello/hello/servers/__init__.py → frameworks/Python/AsyncIO/aiohttp.web/hello/servers/__init__.py


+ 0 - 0
frameworks/Python/API-Hour/hello/hello/servers/yocto_http.py → frameworks/Python/AsyncIO/aiohttp.web/hello/servers/yocto_http.py


+ 0 - 0
frameworks/Python/API-Hour/hello/hello/services/__init__.py → frameworks/Python/AsyncIO/aiohttp.web/hello/services/__init__.py


+ 0 - 0
frameworks/Python/API-Hour/hello/hello/services/redis.py → frameworks/Python/AsyncIO/aiohttp.web/hello/services/redis.py


+ 0 - 0
frameworks/Python/API-Hour/hello/hello/services/world.py → frameworks/Python/AsyncIO/aiohttp.web/hello/services/world.py


+ 0 - 0
frameworks/Python/API-Hour/hello/hello/templates/fortunes.html.j2 → frameworks/Python/AsyncIO/aiohttp.web/hello/templates/fortunes.html.j2


+ 0 - 0
frameworks/Python/API-Hour/hello/hello/utils/__init__.py → frameworks/Python/AsyncIO/aiohttp.web/hello/utils/__init__.py


+ 0 - 0
frameworks/Python/API-Hour/requirements.txt → frameworks/Python/AsyncIO/aiohttp.web/requirements.txt


+ 2 - 1
frameworks/Python/API-Hour/setup.sh → frameworks/Python/AsyncIO/aiohttp.web/setup.sh

@@ -5,4 +5,5 @@ export PY3=$PY3_ROOT/bin/python
 export PY3_PIP=$PY3_ROOT/bin/pip3
 export PY3_API_HOUR=$PY3_ROOT/bin/api_hour
 
-$PY3_API_HOUR -ac --chdir=hello/ --config_dir=hello/etc/hello/ hello:Container &
+cd $TROOT/aiohttp.web
+$PY3_API_HOUR -ac hello:Container &

+ 9 - 0
frameworks/Python/AsyncIO/aiohttp.web/source_code

@@ -0,0 +1,9 @@
+./etc/hello/main/main.yaml
+./etc/hello/api_hour/logging.ini
+./etc/hello/api_hour/gunicorn_conf.py
+./hello/__init__.py
+./hello/hello/endpoints/__init__.py
+./hello/hello/endpoints/world.py
+./hello/hello/services/__init__.py
+./hello/hello/services/world.py
+./hello/hello/utils/__init__.py

+ 4 - 4
frameworks/Python/API-Hour/benchmark_config.json → frameworks/Python/AsyncIO/benchmark_config.json

@@ -2,7 +2,7 @@
   "framework": "AsyncIO",
   "tests": [{
     "default": {
-      "setup_file": "setup",
+      "setup_file": "aiohttp.web/setup",
       "json_url": "/json",
       "db_url": "/db",
       "query_url": "/queries?queries=",
@@ -24,7 +24,7 @@
       "notes": "Python 3 + API-Hour + AsyncIO + aiohttp.web + PostgreSQL"
     },
     "redis": {
-      "setup_file": "setup",
+      "setup_file": "aiohttp.web/setup",
       "db_url": "/db_redis",
       "query_url": "/queries_redis?queries=",
       "fortune_url": "/fortunes_redis",
@@ -44,7 +44,7 @@
       "notes": "Python 3 + API-Hour + AsyncIO + aiohttp.web + Redis"
     },
     "json": {
-      "setup_file": "setup",
+      "setup_file": "aiohttp.web/setup",
       "json_url": "/json",
       "port": 8009,
       "approach": "Stripped",
@@ -61,7 +61,7 @@
       "notes": "Python 3 + API-Hour + AsyncIO"
     },
     "plaintext": {
-      "setup_file": "setup",
+      "setup_file": "aiohttp.web/setup",
       "plaintext_url": "/plaintext",
       "port": 8011,
       "approach": "Stripped",

+ 1 - 1
frameworks/Python/API-Hour/install.sh → frameworks/Python/AsyncIO/install.sh

@@ -10,4 +10,4 @@ export PIP_DOWNLOAD_CACHE=$IROOT/.pip_cache
 
 fw_depends python3
 
-$IROOT/py3/bin/pip3 install --install-option="--prefix=${IROOT}/py3" -r $TROOT/requirements.txt
+$IROOT/py3/bin/pip3 install --install-option="--prefix=${IROOT}/py3" -r $TROOT/aiohttp.web/requirements.txt

+ 1 - 0
frameworks/Python/README.md

@@ -16,6 +16,7 @@ For further guidance, review the
 ### Python Experts
 
 * INADA Naoki (@methane) -- Expert of Python and Python's MySQL driver.
+* Ludovic Gasc (@GMLudo) -- Expert of AsyncIO.
 
 ### [Python Community](https://www.python.org/community/)