Giter Club home page Giter Club logo

Comments (3)

tomerfiliba avatar tomerfiliba commented on September 23, 2024

i suppose you use http://pypi.python.org/pypi/daemon rather than http://pypi.python.org/pypi/python-daemon
anyway, there are two problems with adding it to plumbum directly:

  • it won't work on windows, and plumbum tries to be as cross-platform as possible
  • daemons are complex beings. sometimes you need a PID files or intercepts certain signals, etc. plumbum can't do it for you automagically -- it could just enter a default daemon context for you, but how does that help? saving two lines of code?

for instance

from plumbum import cli

class MyApp(cli.Application):
    daemonize = cli.Flag("-d")

    def main(self):
        if self.daemonize:
            from daemon import basic_daemonize
            basic_daemonize()
        ...

if __name__ == "__main__":
    MyApp.run()

from plumbum.

tomerfiliba avatar tomerfiliba commented on September 23, 2024

@nbecker - can i close this issue?

from plumbum.

nbecker avatar nbecker commented on September 23, 2024

Yes
On Oct 19, 2012 4:17 PM, "Tomer Filiba" [email protected] wrote:

@nbecker https://github.com/nbecker - can i close this issue?


Reply to this email directly or view it on GitHubhttps://github.com//issues/36#issuecomment-9617081.

from plumbum.

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.