Comments (3)
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.
@nbecker - can i close this issue?
from plumbum.
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)
- How to provide help messages for positional arguments of simple types, like `str`?
- recursive globbing not work like pathlib
- support for ignoring inherited environment
- [question] How to force plumbum to process selected CLI switch first?
- ImportError: cannot import name 'git' from 'plumbum.cmd' HOT 2
- ShellSession.popen incorrectly processes Commands HOT 1
- pyproject.toml "author" key should be "authors", and value should be a table, not a single key/value pair HOT 1
- plumbum's path objects look like files but behave differently
- 1.8.2: sphinx warnings `reference target not found`
- 1.8.2: pytest warnings
- 1.8.2: plumbum doesnt support symbol Tilde HOT 2
- bug: Importing `colors` from `plumbum` adds a trailing line to the output HOT 4
- TEE return code for pipeline is wrong when non-last command fails
- Override operator `+` for Path and its subclasses
- `plumbum.cli` doesn't play nicely with decorators and `__future__.annotations` HOT 1
- Piping and `run_tee` swallows output to sys.stderr of the rear end of piped commands
- AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'? HOT 10
- timeout not honored when running sleep command
- Python doesnt stay open HOT 1
- local[].popen can hang on Windows
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plumbum.