bugy / script-server

Web UI for your scripts with execution management
Other
1.59k stars 247 forks source link

Python package #689

Open ejlb opened 1 year ago

ejlb commented 1 year ago

Hey,

We have a use-case where pip installing script-server would make our lives much easier. Have you ever considered it?

We are thinking about doing it ourselves internally with a private PyPi server but I just wanted to check with you first if it has ever been attempted?

Cheers Eddie

bugy commented 1 year ago

Hi @ejlb, I think it's a good idea, but I never had time to put effort for it. Or even design, how script server structure would look like (because it stores config files, logs and temp files internally). I have no experience with python package creation, so it's a bit complicated topic for me (and not much requested by users).

ejlb commented 1 year ago

Thank you for your quick reply. Yes, I think the config, logs and temp dir would have to be split out. Our other option is to build a custom docker image but I will let you know what we end up doing and if there is any way we might be able to upstream the changes.

jivanyatra commented 6 months ago

I'm happy to help out if there's interest here...

If someone wants to run this via pipx and skip manually creating the virtualenv et al (or avoid docker), a PyPI package could make things significantly easier.

It's worthwhile to split up the config files for docker users, too, potentially. And it's not too difficult to get the packaging stuff in place - I can create a stub and you'd just have to create a PyPI account and upload it. We could even compile arm64 wheels for PyPI. This all can be automated, of course, as well.

Of course, if you're interested in this idea, that is. If so, I'll try to keep the work minimal on your end.