felipevolpone / ray Goto Github PK
View Code? Open in Web Editor NEWa framework that helps you to deliver well-designed python APIs
Home Page: https://rayframework.github.io/site/
License: MIT License
a framework that helps you to deliver well-designed python APIs
Home Page: https://rayframework.github.io/site/
License: MIT License
Have a RequestHook would allow us to easily run code after and before each request go to an endpoint or action. As an example, it would be possible have the transaction control into the RequestHook class.
Example of API:
class TransactionRequestHook(RequestHook):
# to check if it should run in the /api/_login request and in the /api/_logout request
after_authorization = True # or False
def after(self):
pass
def before(self):
pass
nowadays there's no api present in Ray to support, in a consistent way, this feature 😢
It would be nice to have the option to specify by which HTTP method an @action
should be called.
Example:
@action('/test_action', method='POST')
def any_action(self, model_id, parameters):
pass
Have you thought about integrating Ray with this awesome project https://dataset.readthedocs.io ?
I created a virtual environment and did a series of pip installs:
I followed the documentation related to using ray-sqlalchemy, and got this error when I run the server:
*** Operational MODE: threaded ***
Traceback (most recent call last):
File "app.py", line 10, in
class UserModel(AlchemyModel):
File "app.py", line 11, in UserModel
name = StringProperty()
NameError: name 'StringProperty' is not defined
unable to load app 0 (mountpoint='') (callable not found or import error)
It is weird. At the top of my app.py, I have these:
from ray.endpoint import endpoint
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, Integer, String
from ray_sqlalchemy.all import AlchemyModel
from ray.wsgi.wsgi import application
Is there any guide I can use to deploy a Ray-based application to Heroku? Is it possible?
does the framework work in windows? or specific python version? i have an error i'm having on uwsgi package of ray-framework, which i guess its using a function that works only on specific OS? thank you
Something like:
@api('/im_not_a_endpoint/callme')
class APIExample(API):
def get(self, request):
pass
def put(self, request):
pass
What needs to be done:
There will be support mongoDB? 😄
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.