473,396 Members | 2,024 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

organizing collections of small modules

I have a bunch of small modules that I use within my application. Most
of these modules are single file modules. Currently, I have them set up
as stand-alone modules but because it's a royal pain to fetch five or 10
of these modules for each application and tracking whether or not they
are all up to date, I'm considering putting them all into one collection
(rcsoc a.k.a. random cross-section of code[1]) so it's easier to load,
install, and manage.

Are there better techniques for managing collections of modules in 2.4
or later?

---eric
[1] derives from the expression that hamburger is "random cross-section
of cow"

Mar 25 '07 #1
2 1206
"Eric S. Johansson" <es*@harvee.orgwrites:
I have a bunch of small modules that I use within my application. Most of
these modules are single file modules. Currently, I have them set up as
stand-alone modules but because it's a royal pain to fetch five or 10 of these
modules for each application and tracking whether or not they are all up to
date, I'm considering putting them all into one collection (rcsoc
a.k.a. random cross-section of code[1]) so it's easier to load, install, and
manage.

Are there better techniques for managing collections of modules in 2.4 or
later?

---eric
[1] derives from the expression that hamburger is "random cross-section of
cow"
I'm using setuptools for that. If they're somehow connected --
e.g. mathematics, database, finance, etc. -- then I create one single package
for them. If they aren't, then creating several packages isn't hard.

If they are useful enough you can publish them on PyPI and then it is just a
matter of "easy_install" them. If they aren't then you'll have to collect
them somewhere to use easy_install ;-)

It also supplies means to determine the minimum / maximum / exact version that
is required, so this also helps with how up-to-date your library has to be to
be used with some application.
--
Jorge Godoy <jg****@gmail.com>
Mar 25 '07 #2
Jorge Godoy wrote:
"Eric S. Johansson" <es*@harvee.orgwrites:
>I have a bunch of small modules that I use within my application. Most of
these modules are single file modules. Currently, I have them set up as
stand-alone modules but because it's a royal pain to fetch five or 10 of these
modules for each application and tracking whether or not they are all up to
date, I'm considering putting them all into one collection (rcsoc
a.k.a. random cross-section of code[1]) so it's easier to load, install, and
manage.

Are there better techniques for managing collections of modules in 2.4 or
later?

---eric
[1] derives from the expression that hamburger is "random cross-section of
cow"

I'm using setuptools for that. If they're somehow connected --
e.g. mathematics, database, finance, etc. -- then I create one single package
for them. If they aren't, then creating several packages isn't hard.
I already have working setup.py files and the docs indicates that it
should be a 1 liner to convert from distutils.
If they are useful enough you can publish them on PyPI and then it is just a
matter of "easy_install" them. If they aren't then you'll have to collect
them somewhere to use easy_install ;-)
I think a couple should be generaly useful (file system based queue,
union configuration files). when it all works, I'll publish.
>
It also supplies means to determine the minimum / maximum / exact version that
is required, so this also helps with how up-to-date your library has to be to
be used with some application.
a big win IMO

Mar 26 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jamie | last post by:
Hi, Thanks for the excellent answer to my last question! One more: Does anyone have a method they follow for organizing stylesheets themselves? They seem like they can get bloated and hard to...
10
by: Rada Chirkova | last post by:
Hi, at NC State University, my students and I are working on a project called "self-organizing databases," please see description below. I would like to use an open-source database system for...
0
by: netsurfer802 | last post by:
I have a question regarding working with seperate files and organizing these files. The company I'm working for is a small comuter company that calls people that have went to computer trade...
3
by: Paul | last post by:
Hello, I'm upgrading a small single user app to VB.NET and have a few questions about loading classes & collections classes with the data from a one to many dataset structure. I'm serializing...
1
by: dnvhari | last post by:
Hi all, we have an xml file. Based on this file we have to generate menu. This xml file changes every day. We are loading the xml file into the application memory and transforming the data of...
1
by: Ushach | last post by:
hi, I want to know about Self Organizing maps.T ounderstand the concept ,I need a small example which explains how clustering is done through self organizing maps?If any body implemented it plz...
12
by: xkenneth | last post by:
All, I apologize if this is a commonly asked question, but I didn't find anything that answered my question while searching. So what I have right now is a few packages that contain some...
5
by: ivarnelispam | last post by:
Hello all, I'm starting work on what is going to become a fairly substantial Python project, and I'm trying to find the best way to organize everything. The project will consist of: - A few...
2
by: bukzor | last post by:
I've been finding at work that I've written a set of functions several times, sometimes with more or less features or bugs, so I've decided to take my small, useful functions and put them in some...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.