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

Support directory of files #27

Open
AlbertDeFusco opened this issue Aug 6, 2020 · 3 comments
Open

Support directory of files #27

AlbertDeFusco opened this issue Aug 6, 2020 · 3 comments

Comments

@AlbertDeFusco
Copy link
Member

Allow endpoints to be gathered from any discovered .py and .ipynb files in a chosen directory.

See https://github.com/holoviz/panel/blob/4be32f416345f599b866e61241454847c6adce9b/panel/io/rest.py#L82

@philippjfr
Copy link

I'd be happy to see a function in handlers that returns the tranquilized functions given a filename, not sure it needs to handle a directory or multiple files. I'd probably also make handlers explicitly declare the filetypes they support so you can just iterate over all BaseHandler subclasses to determine which applies for a particular filetype.

@AlbertDeFusco
Copy link
Member Author

by "returns the tranquilized functions" you'd want the output of make_app() as it is today? This returns an initialized restx Api object. https://flask-restx.readthedocs.io/en/latest/api.html

@philippjfr
Copy link

That would be okay too, I was thinking it would just return the full set of tranquilized functions discovered in the file(s) which could then be passed to make_app, but I trust your judgement here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants