Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #88032
| Date | 2015-03-26 11:26 +0800 |
|---|---|
| Subject | What is elegant way to do configuration on server app |
| From | Jerry OELoo <oyljerry@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.187.1427357959.10327.python-list@python.org> (permalink) |
Hi. I have used python to provide a web service app, it will running 7*24, and it will return some data to client by API. Now I want to add some extra data in return data, ex, "status = 1", and I want this value 1 can be configured, that means I can control that service app return status with 0, 1 or other value, and I want to keep service running always. Currently, I can just think out that I put status into a configure file, and service schedule read this file and get status value, Is there any other elegant way to achieve this? What is standard way in python for this requirement? Thanks! Best Regards Jerry -- Rejoice,I Desire!
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
What is elegant way to do configuration on server app Jerry OELoo <oyljerry@gmail.com> - 2015-03-26 11:26 +0800 Re: What is elegant way to do configuration on server app CHIN Dihedral <dihedral88888@gmail.com> - 2015-03-27 11:29 -0700
csiph-web