Re: Project Structure for Backend ETL Project

2018-08-21 Thread Terry Reedy
my team is following good practices. I think the most important 'good practice' is rigorous testing, with at least the basics repeated with every commit. I am aware of pep8 but does that have project structure examples also? If you intend to use github, I would look at a few othe

Project Structure for Backend ETL Project

2018-08-21 Thread Jeff M
following good practices. I am aware of pep8 but does that have project structure examples also? -- https://mail.python.org/mailman/listinfo/python-list

Project Structure

2017-06-19 Thread Rob Gaddi
I'm working on a project ( https://github.com/NJDFan/register-maps http://register-maps.readthedocs.io/en/latest/ ) and running into some issues with overall project structure and documentation. The project is a code generator that reads in a set of proprietary format XML files and uses

Re: disutils, project structure & developing - n00b question

2009-10-29 Thread Lie Ryan
Simon Forman wrote: In order for "from pymlb import fetcher" no work you must make the './pymlb' directory into a "package" by adding a file called __init__.py (it can be empty.) Then make sure the "top" directory (i.e. '.' in your example) is in the python PATH. There are a couple of ways to

Re: disutils, project structure & developing - n00b question

2009-10-29 Thread Simon Forman
On Thu, Oct 29, 2009 at 3:45 PM, Simon Forman wrote: > In order for "from pymlb import fetcher" no work you must make the s/no/to/ D'oh! -- http://mail.python.org/mailman/listinfo/python-list

Re: disutils, project structure & developing - n00b question

2009-10-29 Thread Simon Forman
On Thu, Oct 29, 2009 at 2:42 PM, Wells wrote: > So I have my project partitioned like so: > > ./setup.py > ./pymlb/ > ./pymlb/fetcher.py > ./demos > ./demos/demo.py > > In demo.py I have: > > from pymlb import fetcher > > However, it fails b/c pymlb is up a folder. It's also NOT installed as > a m

disutils, project structure & developing - n00b question

2009-10-29 Thread Wells
So I have my project partitioned like so: ./setup.py ./pymlb/ ./pymlb/fetcher.py ./demos ./demos/demo.py In demo.py I have: from pymlb import fetcher However, it fails b/c pymlb is up a folder. It's also NOT installed as a module in my module directory because it's a development effort and I do

Re: Project structure - Best practices

2008-12-05 Thread Casey McGinty
> > This is first time that I am building python application that is > larger than a single module and I would like to do it right. I want to just say I am in agreement with the OP. Basically, there are a lot of factors to balance out and consider when starting a python application for the first

Re: Project structure - Best practices

2008-12-01 Thread Aahz
In article <[EMAIL PROTECTED]>, Rafe <[EMAIL PROTECTED]> wrote: > >...and I completely agree. I always use the standard import form >unless absolutely necessary. However, I use 'as' to shorten the path >to the last module. For example: import app.foo.bar as bar instance = bar.Class() Wh

Re: Project structure - Best practices

2008-12-01 Thread Rafe
On Nov 30, 11:43 pm, "Filip Gruszczyński" <[EMAIL PROTECTED]> wrote: > This is first time that I am building python application that is > larger than a single module and I would like to do it right. I google > it a bit, finding some stuff about not using src directory (which I > have seen so many t

Re: Project structure - Best practices

2008-11-30 Thread Martin P. Hellwig
Aaron Watters wrote: On Nov 30, 11:55 am, "Filip Gruszczyński" <[EMAIL PROTECTED]> wrote: http://jcalderone.livejournal.com/39794.html That's exactly what I have read before posting here ;-) -- Filip Gruszczyński I too would like to see a meatier discussion of best practices for python packa

Re: Project structure - Best practices

2008-11-30 Thread Aaron Watters
On Nov 30, 11:55 am, "Filip Gruszczyński" <[EMAIL PROTECTED]> wrote: > >http://jcalderone.livejournal.com/39794.html > > That's exactly what I have read before posting here ;-) > > -- > Filip Gruszczyński I too would like to see a meatier discussion of best practices for python packagizing. I par

Re: Project structure - Best practices

2008-11-30 Thread Filip Gruszczyński
> http://jcalderone.livejournal.com/39794.html That's exactly what I have read before posting here ;-) -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

Re: Project structure - Best practices

2008-11-30 Thread Jean-Paul Calderone
On Sun, 30 Nov 2008 17:43:46 +0100, Filip Gruszczyński <[EMAIL PROTECTED]> wrote: This is first time that I am building python application that is larger than a single module and I would like to do it right. I google it a bit, finding some stuff about not using src directory (which I have seen s

Project structure - Best practices

2008-11-30 Thread Filip Gruszczyński
This is first time that I am building python application that is larger than a single module and I would like to do it right. I google it a bit, finding some stuff about not using src directory (which I have seen so many times, that I believed it be standard) and using packages. Still, there are fe

Re: Simple Python Project Structure

2008-10-10 Thread Ben Finney
George Sakkis <[EMAIL PROTECTED]> writes: > ''' > The __init__.py files are required to make Python treat the > directories as containing packages; this is done to prevent > directories with a common name, such as "string", from > unintentionally hiding valid modules that occur later on the module

Re: Simple Python Project Structure

2008-10-10 Thread George Sakkis
On Oct 10, 9:26 pm, jay graves <[EMAIL PROTECTED]> wrote: > On Oct 10, 7:17 pm, amit <[EMAIL PROTECTED]> wrote: > > > How do create my own modules and import them? Right now it works but > > they all have to be in the same directory. For example, > > > project/ > > util/ > > config/ > > ...

Re: Simple Python Project Structure

2008-10-10 Thread jay graves
On Oct 10, 7:17 pm, amit <[EMAIL PROTECTED]> wrote: > How do create my own modules and import them? Right now it works but > they all have to be in the same directory. For example, > > project/ > util/ > config/ > tests/ > start.py > You need an __init__.py file (it doesn't matter

Simple Python Project Structure

2008-10-10 Thread amit
Hi, I recently wrote a fairly complex project in python. It works great and it was completed fairly quickly thanks to python! Anyways, I am in the process of cleaning the code/directory and I had a simple question How do create my own modules and import them? Right now it works but they all