radiopurity / persephone

A material assay database
www.radiopurity.org
Apache License 2.0
12 stars 5 forks source link

create python module #50

Open gadamc opened 11 years ago

gadamc commented 11 years ago

Consider learning how to build a python module and turn this code into a module. this way, people could 'import' and reuse the code produced here.

I recommend reading this: http://docs.python-guide.org/en/latest/ (also for general code structuring, etc.)

alexandrawise commented 11 years ago

Is this for the whole persephone project? Because my code is already in module form, people are welcome to pick and choose subroutines to fit their needs.

gadamc commented 11 years ago

Sorry - I meant to say python 'package'....

My thought was that a python package could exist as a standalone project. Something that would install nicely via pip or a setup.py script that would manage all dependencies. Even the python tools could eventually expand to querying the database from a python shell.. such as

import persephone persephone.find('XENON100*')...

This is something that is further down the road and perhaps you, James and Jodi can decide if this is something you want to do and its priority. I would say that right now the priority would be pretty low.