Code Monkey home page Code Monkey logo

raycraft's Introduction

Hi there ๐Ÿ‘‹

I am Marwan

  • ๐Ÿ”ญ Iโ€™m currently working on AI and Machine Learning at anyscale
  • ๐Ÿ‘ฏ Iโ€™m looking to collaborate on open-source projects
  • ๐Ÿ“ซ How to reach me: [email protected]

raycraft's People

Contributors

marwan116 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

raycraft's Issues

enable parameterizing init state

Currently, we perform the following:

    def init(self, func) -> None:
        self._initializers[func.__name__] = func

        def constructor(obj):
            for (
                initializer_name,
                initializer,
            ) in self._initializers.items():
                setattr(obj, initializer_name, initializer())

Current implementation assumes that all initiliazer functions don't accept any arguments

Fix it so that it accepts arguments and those argument values can be passed to RayCraftAPI.__call__

properly delegate post, get, put, ... methods to fastapi app

Current implementation is constrained to post, and only accepts path argument

    def post(self, path: str) -> Any:
        def decorator(func):
            self._http_methods[func.__name__] = {
                "path": path,
                "func": func,
            }

        return decorator

Instead, we should delegate fully to the fastapi method and store all arguments in the _http_methods dict

enable delegation of FASTAPI init arguments from RayCraftAPI

current __init__ signature is

class RayCraftAPI:
    """RayCraftAPI class."""
    def __init__(self, **serve_deployment_kwargs):

Instead it should include both ray serve and fastapi kwargs - and ideally should have them spelled out for a friendlier interface.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.