Coder Social home page Coder Social logo

Comments (3)

christophevg avatar christophevg commented on May 27, 2024

As I ran into more issues than first expected, simply creating a wrapper in my project didn't cut it anymore ;-) To be able to continue, I forked Honcho to my own space and started working on separating the command-line interface from the actual Honcho Python code, to see where I could go with this.

A very rough cut currently does the trick (and even passes the tests ;-)), but will need some more love. So far it looks like this:

The command-line related stuff still resides in:
https://github.com/christophevg/honcho/blob/api/honcho/command.py

But the Honcho class (aka API) now lives in:
https://github.com/christophevg/honcho/blob/api/honcho/init.py

And this basically allows one to write:

from honcho import Honcho
honcho = Honcho()
honcho.start()

Still, although most of the code now already has been written, it is still more of an open invitation to discuss this, and if it seems a valid feature, I'm more than willing to go through the code in detail to bring everything up to par of the rest of the codebase and in line with the projects preferred style, etc.

regards,
Christophe

from honcho.

christophevg avatar christophevg commented on May 27, 2024

Whoops, wrong button :-(

from honcho.

nickstenning avatar nickstenning commented on May 27, 2024

It seems to me that the proposal here is actually to introduce a higher-level API to Honcho that mostly emulates the CLI, as you can already use honcho.manager.Manager directly from within Python and I know that quite a few folks do that.

from honcho.

Related Issues (20)

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.