Re: Connection refused when tryign to run bottle/flask web framweworks

2018-08-21 Thread Michael Torrie
On 08/20/2018 06:07 AM, Νίκος wrote: > Iam trying to access the bottle web framework running on my VPS as > > http://superhost.gr:8080/hello > > i get connection refused > The weird thing is that in my vps command line my hello app is in state of > listening > > [root@superhost public_html]# p

Re: Connection refused when tryign to run bottle/flask web framweworks

2018-08-21 Thread Νίκος
Τη Δευτέρα, 20 Αυγούστου 2018 - 7:18:16 μ.μ. UTC+3, ο χρήστης Chris Warrick έγραψε: > On Mon, 20 Aug 2018 at 18:15, Νίκος wrote: > > > > Τη Δευτέρα, 20 Αυγούστου 2018 - 9:49:00 π.μ. UTC+3, ο χρήστης Miki Tebeka > > έγραψε: > > > If you're trying to access the machine from another machine, you ne

Re: Connection refused when tryign to run bottle/flask web framweworks

2018-08-21 Thread Νίκος
Τη Τρίτη, 21 Αυγούστου 2018 - 4:39:50 μ.μ. UTC+3, ο χρήστης Michael Torrie έγραψε: > On 08/20/2018 06:07 AM, Νίκος wrote: > > Iam trying to access the bottle web framework running on my VPS as > > > > http://superhost.gr:8080/hello > > > > i get connection refused > > > The weird thing is that

Re: Pylint false positives

2018-08-21 Thread Steven D'Aprano
On Tue, 21 Aug 2018 00:36:56 +, Dan Sommers wrote: [...] (Not that I do this using "inner classes", but I do often want to use a class as a container for functions, without caring about "self" or wrapping everything in staticmethod.) >>> >>> Isn't that what modules are for? (I

ignoring some default fields from SimpleJsonFormatter

2018-08-21 Thread shradhattx
I am using for my logger handler.setFormatter(SimpleJsonFormatter(json.dumps)) It had some default fields - timestamp, function, line_number, module, level and flexibility to provide extra fields in json log with use of logger.info("my test message", extra={"anotherfield1": "test"}) I am u

Project Structure for Backend ETL Project

2018-08-21 Thread Jeff M
Is this a good example to follow for a project that does mostly python to interact with external data sources including files, transformation, and import into Postgres? https://github.com/bast/somepackage I have a SWE background but not with python, and I want to make sure my team is following

Is pypi the best place to find external python packages?

2018-08-21 Thread Jeff M
are there other places also? On pypi I did not see anywhere the status of defects or downloads, if it's actively supported. -- https://mail.python.org/mailman/listinfo/python-list

Re: Is pypi the best place to find external python packages?

2018-08-21 Thread Jeff M
On Tuesday, August 21, 2018 at 9:48:50 AM UTC-6, Jeff M wrote: > are there other places also? On pypi I did not see anywhere the status of > defects or downloads, if it's actively supported. nevermind, i see the info i was looking for on the left side. -- https://mail.python.org/mailman/listinf

Saving application configuration to the ini file respecting order of sections/options and providing mechanism for (nested) complex objects

2018-08-21 Thread zljubisic
Hi, I am looking for a way to save ini file with application section/option combination. Something like the following: [Default] ROOT_DIR= /home/... RUN = True COUNTER = 5 LAST_VALUE = 5.6 TEST_FILES_LIST=['a.txt', 'b.txt', 'c.txt'] TEST_FILES_DICT={'CASE1' : ['a.txt', 'b.txt'], 'CASE2': ['c.

Re: ignoring some default fields from SimpleJsonFormatter

2018-08-21 Thread Peter Otten
shradha...@gmail.com wrote: > I am using for my logger > > handler.setFormatter(SimpleJsonFormatter(json.dumps)) Where does SimpleJsonFormatter come from? If it uses the json.dumps argument to serialize a dict you may pass a modified version instead: # untested KEYS_TO_IGNORE = {"fields", "yo

RE: ignoring some default fields from SimpleJsonFormatter

2018-08-21 Thread David Raymond
https://docs.python.org/3.7/library/logging.html#logging.Logger.debug https://docs.python.org/3.7/library/logging.html#logging.Formatter.format Basically your Formatter string doesn't include %(anotherfield1)s in it anywhere, so that gets ignored. To have a variable number of those in there you

Re: Pylint false positives

2018-08-21 Thread Marko Rauhamaa
Gregory Ewing : > Marko Rauhamaa wrote: >> Lexically, there is special access: >> >>class C: >>def __init__(self, some, arg): >>c = self >>class D: >>def method(self): >>access(c) >>access(some) >>

Re: Saving application configuration to the ini file respecting order of sections/options and providing mechanism for (nested) complex objects

2018-08-21 Thread Peter Otten
zljubi...@gmail.com wrote: > 1. saving json will result in unordered ini file. It could be solved by > using OrderedDict that will than with json.dumps be saved to file in the > same order as options are added to the ordered dict. dict-s are guaranteed to keep insertion order in Python 3.7, see

Re: Pylint false positives

2018-08-21 Thread Chris Angelico
On Wed, Aug 22, 2018 at 2:38 AM, Marko Rauhamaa wrote: > Gregory Ewing : > >> Marko Rauhamaa wrote: >>> Lexically, there is special access: >>> >>>class C: >>>def __init__(self, some, arg): >>>c = self >>>class D: >>>def method(self): >>>

Bottle framework references

2018-08-21 Thread tommy yama
What’s up? I am building up the microsite based on Bottle framework now. Any references/books? I am unfamiliar with this framework yet. Thanks! -- https://mail.python.org/mailman/listinfo/python-list

Re: Project Structure for Backend ETL Project

2018-08-21 Thread Terry Reedy
On 8/21/2018 11:46 AM, Jeff M wrote: Is this a good example to follow for a project that does mostly python to interact with external data sources including files, transformation, and import into Postgres? https://github.com/bast/somepackage AFAIK, the recommendations in the README are a pla

Re: Is pypi the best place to find external python packages?

2018-08-21 Thread Terry Reedy
On 8/21/2018 11:48 AM, Jeff M wrote: are there other places also? On pypi I did not see anywhere the status of defects or downloads, if it's actively supported. There is another good place for packages that need Windows binaries. For this and previous post, most information from you can allo

Re: Bottle framework references

2018-08-21 Thread Jason Friedman
> > I am building up the microsite based on Bottle framework now. > Any references/books? I am unfamiliar with this framework yet. > > I have used it with success. The online documentation was sufficient for my needs, at least. -- https://mail.python.org/mailman/listinfo/python-list

Re: Connection refused when tryign to run bottle/flask web framweworks

2018-08-21 Thread Joel Goldstick
On Tue, Aug 21, 2018 at 12:06 PM Dennis Lee Bieber wrote: > > On Mon, 20 Aug 2018 05:07:59 -0700 (PDT), ? > declaimed the following: > > >?? ???, 20 ? 2018 - 7:59:06 ?.?. UTC+3, ? ??? dieter ??: > >> ? writes: > > >> > > >> > run(host='localhost', port=8080) > >> > >>

Partitioning a list

2018-08-21 Thread Poul Riis
I would like to list all possible ways to put N students in groups of k students (suppose that k divides N) with the restriction that no two students should ever meet each other in more than one group. I think this is a classical problem and I think there must be a python solution out there but

Re: Connection refused when tryign to run bottle/flask web framweworks

2018-08-21 Thread Chris Angelico
On Wed, Aug 22, 2018 at 7:09 AM, Joel Goldstick wrote: > although i don't offer advice too often here, as i am kind of > retired., this is extremely reminiscent of a whole lot of server issue > posts from I believe this same OP some years ago. It will soon become > a rabbit hole. take care to ge

Re: Partitioning a list

2018-08-21 Thread Steven D'Aprano
On Tue, 21 Aug 2018 14:36:30 -0700, Poul Riis wrote: > I would like to list all possible ways to put N students in groups of k > students (suppose that k divides N) with the restriction that no two > students should ever meet each other in more than one group. I think > this is a classical problem

Re: Pylint false positives

2018-08-21 Thread Steven D'Aprano
On Wed, 22 Aug 2018 03:58:29 +1000, Chris Angelico wrote: > On Wed, Aug 22, 2018 at 2:38 AM, Marko Rauhamaa > wrote: >> Gregory Ewing : >> >>> Marko Rauhamaa wrote: Lexically, there is special access: class C: def __init__(self, some, arg): c = self >

Re: Pylint false positives

2018-08-21 Thread Chris Angelico
On Wed, Aug 22, 2018 at 10:39 AM, Steven D'Aprano wrote: > On Wed, 22 Aug 2018 03:58:29 +1000, Chris Angelico wrote: > >> On Wed, Aug 22, 2018 at 2:38 AM, Marko Rauhamaa >> wrote: >>> Gregory Ewing : >>> Marko Rauhamaa wrote: > Lexically, there is special access: > >class C:

[ANN] A magazine for Data Science Enthusiasts

2018-08-21 Thread Karthikeyan A K via Python-list
Hello All, I have started a magazine for Data Science enthusiasts which brings you every week the latest happenings in the world of Data Science. You can get the first issue here https://datasciencenews.herokuapp.com/2018/08/19/issue-1.html - Karthikeyan A K -- https://mail.python.org/mailman/l