News for hackers. Stuff that matters.
Re:Show HN: A Python Spider System with Web UI by zbb on Sunday November 16, 2014 @11:30PM (#8616840)
Take a look at source code. The package hirarchy is not pythonic (use "libs" as top package is not a good idea).
Re:Show HN: A Python Spider System with Web UI by huskyr on Monday November 17, 2014 @03:04AM (#8617284)
Ah damned. the package hierarchy is not pythonic. That renders all the functionality of this package completely unusable.

Come on people, don't be like this. It takes 5 seconds to rephrase a comment like this into something friendlier.

Re:Show HN: A Python Spider System with Web UI by binux on Monday November 17, 2014 @03:16AM (#8617319)
Yes, the scheduler, fetcher, processor is stand alone here, they are running in different process. But they are sharing some common libs. I haven't made a decision how to put them into a single package, and running together.

Any advice or project that I can refer to?

Re:Show HN: A Python Spider System with Web UI by paulhauggis on Monday November 17, 2014 @01:29AM (#8617105)
Why isn't it a good idea? I have plenty of projects setup this way and it works well.

It looks pretty well organized to me.

Re:Show HN: A Python Spider System with Web UI by vertex-four on Monday November 17, 2014 @04:50AM (#8617511)
The issue is that if you have two packages installed, and both use "libs" as their top-level package, they'll collide. Use "projectname.common" instead.
Re:Show HN: A Python Spider System with Web UI by fmueller on Monday November 17, 2014 @05:11AM (#8617574)
This is not true, you can specify package directories in setup.py.

See https://docs.python.org/2/distutils/setupscript.html#listing...

Re:Show HN: A Python Spider System with Web UI by vertex-four on Monday November 17, 2014 @04:41PM (#8620826)
A package name != the actual name of the directory in the source tree. My point stands.
Re:Show HN: A Python Spider System with Web UI by binux on Sunday November 16, 2014 @11:53PM (#8616897)
agree
Re:Show HN: A Python Spider System with Web UI by redacted on Monday November 17, 2014 @01:28AM (#8617101)
What is the recommended way? (Serious question, I have larger projects that I would someday like to refactor into proper packages)
Re:Show HN: A Python Spider System with Web UI by iamtew on Monday November 17, 2014 @04:24AM (#8617460)
There is also these guides that provide plenty of information on how packages work and best practices:

https://packaging.python.org/en/latest/distributing.html

https://github.com/pypa/sampleproject

Re:Show HN: A Python Spider System with Web UI by binux on Monday November 17, 2014 @08:20AM (#8618032)
I have "organize the code using a single top-level package".
Re:Show HN: A Python Spider System with Web UI by ngoldbaum on Monday November 17, 2014 @01:51AM (#8617157)
Because the name "libs" is now installed into the global module namespace. It's better to use a less generic name.