Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhacne: robyn api handle transform with promises and metux #1058

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.DS_Store
.idea
.Rproj.user
.Rhistory
node_modules/
Expand Down
57 changes: 57 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion robyn_api/python_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def pandas_builder(jsondata):
returndf = pd.DataFrame(jsondata)
return returndf

def robyn_api(argument,payload=0,api='http://127.0.0.1:9999/{}'):
def robyn_api(argument,payload=0,api='http://0.0.0.0:9999/{}'):
"""
Calls the Robyn API with the specified argument and payload.
Args:
Expand Down
2 changes: 1 addition & 1 deletion robyn_api/robynapi_call.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ apiPath <- paste0(path2file,'/robynapi_enpoints.R')


### Command to run Robyn API
r<-plumb(apiPath)$run(port=9999)
r<-plumb(apiPath)$run(port=9999,host="0.0.0.0")
Loading