-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #256 from candango/develop
Merging develop to master.
- Loading branch information
Showing
56 changed files
with
654 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
What's new in Firenado 0.1.7.5 | ||
============================== | ||
|
||
Dec 22, 2018 | ||
------------ | ||
|
||
We are pleased to announce the release of Firenado 0.1.7.5. | ||
|
||
A new launcher were added to spawn an application in another process and the | ||
socket parameter was added to the firenado launcher to overrides the | ||
configuration file. | ||
|
||
|
||
Here are the highlights: | ||
|
||
Refactory | ||
~~~~~~~~~ | ||
|
||
* Move random_string to the security module. `#247 <https://github.com/candango/firenado/issues/247>`_ | ||
* Provide a function to return the class reference by it's name. `#251 <https://github.com/candango/firenado/issues/251>`_ | ||
* Rename skell to testapp. `#252 <https://github.com/candango/firenado/issues/252>`_ | ||
|
||
New Features | ||
~~~~~~~~~~~~ | ||
|
||
* Add socket parameter to the app run command. `#248 <https://github.com/candango/firenado/issues/248>`_ | ||
* Add a process launcher. `#249 <https://github.com/candango/firenado/issues/249>`_ | ||
|
||
Bug Fixes | ||
~~~~~~~~~ | ||
|
||
* Fix command match with parenthesis. `#250 <https://github.com/candango/firenado/issues/250>`_ |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
from . import handlers | ||
from firenado import tornadoweb | ||
from firenado.launcher import ProcessLauncher | ||
from tornado import gen | ||
import os | ||
|
||
|
||
class LauncherComponent(tornadoweb.TornadoComponent): | ||
|
||
def __init__(self, name, application): | ||
super(LauncherComponent, self).__init__(name, application) | ||
self.launcher_path = os.path.abspath(os.path.dirname(__file__)) | ||
self.charge_path = os.path.join(self.launcher_path, "charge") | ||
self.launcher = None | ||
|
||
def get_handlers(self): | ||
return [ | ||
(r'/', handlers.IndexHandler), | ||
] | ||
|
||
@gen.coroutine | ||
def initialize(self): | ||
import sys | ||
self.launcher = ProcessLauncher(dir=self.charge_path, | ||
logfile=sys.stderr) | ||
self.launcher.load() | ||
yield self.launcher.launch() | ||
|
||
def shutdown(self): | ||
self.launcher.shutdown() |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from charge import handlers | ||
from firenado import tornadoweb | ||
|
||
|
||
class ChargeComponent(tornadoweb.TornadoComponent): | ||
|
||
def get_handlers(self): | ||
return [ | ||
(r'/', handlers.IndexHandler), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
app: | ||
component: 'charge' | ||
data: | ||
sources: | ||
# Set here references from sources defined on data.sources | ||
- 'session' | ||
pythonpath: '..' | ||
#type: 'tornado' | ||
port: 8889 | ||
|
||
data: | ||
sources: | ||
- name: session | ||
connector: redis | ||
# host: localhost | ||
# port: 6379 | ||
# db: 0 | ||
components: | ||
- id: charge | ||
class: charge.app.ChargeComponent | ||
enabled: true | ||
#- id: admin | ||
# enabled: true | ||
#- id: info | ||
# enabled: true | ||
|
||
log: | ||
level: DEBUG | ||
|
||
# Session types could be: | ||
# file or redis. | ||
session: | ||
type: redis | ||
enabled: true | ||
# Redis session handler configuration | ||
data: | ||
source: session | ||
# File session handler related configuration | ||
# path: /tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from firenado import tornadoweb | ||
|
||
|
||
class IndexHandler(tornadoweb.TornadoHandler): | ||
|
||
def get(self): | ||
self.write("Charge output") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
app: | ||
component: 'launcher' | ||
data: | ||
sources: | ||
# Set here references from sources defined on data.sources | ||
- 'session' | ||
pythonpath: '..' | ||
#type: 'tornado' | ||
port: 8888 | ||
|
||
data: | ||
sources: | ||
- name: session | ||
connector: redis | ||
# host: localhost | ||
# port: 6379 | ||
# db: 0 | ||
components: | ||
- id: launcher | ||
class: launcher.app.LauncherComponent | ||
enabled: true | ||
#- id: admin | ||
# enabled: true | ||
#- id: info | ||
# enabled: true | ||
|
||
log: | ||
level: DEBUG | ||
|
||
# Session types could be: | ||
# file or redis. | ||
session: | ||
type: redis | ||
enabled: true | ||
# Redis session handler configuration | ||
data: | ||
source: session | ||
# File session handler related configuration | ||
# path: /tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from firenado import tornadoweb | ||
|
||
|
||
class IndexHandler(tornadoweb.TornadoHandler): | ||
|
||
def get(self): | ||
self.write("Launcher output") |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.