Re: [CODE4LIB] Python in Your Library
I've thought about applying it as we try to get more involved with Data Management, since Python is popular with scientists and researchers, but personally I haven't used it much. I prefer PHP for most things. I know that down at the University of North Texas they use Python extensively with their digital collection . . . they're basically a Python shop on the back end, with a dedicated team of developers. Best regards, *Jason Bengtson, MLIS, MA* Head of Library Computing and Information Systems Assistant Professor, Graduate College Department of Health Sciences Library and Information Management University of Oklahoma Health Sciences Center 405-271-2285, opt. 5 405-271-3297 (fax) *jason-bengt...@ouhsc.edu jason-bengt...@ouhsc.edu* *http://library.ouhsc.edu http://library.ouhsc.edu/* *www.jasonbengtson.com http://www.jasonbengtson.com/* NOTICE: This e-mail is intended solely for the use of the individual to whom it is addressed and may contain information that is privileged, confidential or otherwise exempt from disclosure. If the reader of this e-mail is not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify us by replying to the original message at the listed email address. Thank You. j.bengtson...@gmail.com On Wed, May 7, 2014 at 8:13 AM, Julia caffr...@simmons.edu wrote: Hi All, This is my first time posting to Code4Lib. Now seems like a good time. I am wondering how you have applied Python in your library. What projects have been successful? What have you heard of other libraries doing? What advantages or disadvantages does it have compared to other scripting languages used in the library field? If you have any thoughts on any of those questions, I'd love to hear from you. Thanks, Julia caffr...@simmons.edu Simmons College Library
Re: [CODE4LIB] Python in Your Library
Language is a very personal issue, and this has been discussed before; maybe search the Code4Lib archives for a nice Python thread in 2013. But we’ve been using python3-pandas for data analysis and it’s a nice library. https://vimeo.com/59324550 -- Al Matthews Software Developer, Digital Services Unit Atlanta University Center, Robert W. Woodruff Library email: amatth...@auctr.edu; office: 1 404 978 2057 On 5/7/14, 9:13 AM, Julia caffr...@simmons.edu wrote: Hi All, This is my first time posting to Code4Lib. Now seems like a good time. I am wondering how you have applied Python in your library. What projects have been successful? What have you heard of other libraries doing? What advantages or disadvantages does it have compared to other scripting languages used in the library field? If you have any thoughts on any of those questions, I'd love to hear from you. Thanks, Julia caffr...@simmons.edu Simmons College Library ** The contents of this email and any attachments are confidential. They are intended for the named recipient(s) only. If you have received this email in error please notify the system manager or the sender immediately and do not disclose the contents to anyone or make copies. ** IronMail scanned this email for viruses, vandals and malicious content. ** **
Re: [CODE4LIB] Python in Your Library
Hi, Al, How do you access the Code4Lib archives j0e Joseph Umhauer Assistant Library Director for Technical Services Niagara University Library 716-286-8015 jumha...@niagara.edu -Original Message- From: Code for Libraries [mailto:CODE4LIB@listserv.nd.edu] On Behalf Of Al Matthews Sent: Wednesday, May 07, 2014 9:17 AM To: CODE4LIB@listserv.nd.edu Subject: Re: [CODE4LIB] Python in Your Library Language is a very personal issue, and this has been discussed before; maybe search the Code4Lib archives for a nice Python thread in 2013. But we’ve been using python3-pandas for data analysis and it’s a nice library. https://vimeo.com/59324550 -- Al Matthews Software Developer, Digital Services Unit Atlanta University Center, Robert W. Woodruff Library email: amatth...@auctr.edu; office: 1 404 978 2057 On 5/7/14, 9:13 AM, Julia caffr...@simmons.edu wrote: Hi All, This is my first time posting to Code4Lib. Now seems like a good time. I am wondering how you have applied Python in your library. What projects have been successful? What have you heard of other libraries doing? What advantages or disadvantages does it have compared to other scripting languages used in the library field? If you have any thoughts on any of those questions, I'd love to hear from you. Thanks, Julia caffr...@simmons.edu Simmons College Library ** The contents of this email and any attachments are confidential. They are intended for the named recipient(s) only. If you have received this email in error please notify the system manager or the sender immediately and do not disclose the contents to anyone or make copies. ** IronMail scanned this email for viruses, vandals and malicious content. ** **
Re: [CODE4LIB] Python in Your Library
I believe it’s via https://listserv.nd.edu/cgi-bin/wa?REPORTz=41=CODE4LIBL=CODE4LIB or else please correct me, list. -- Al Matthews Software Developer, Digital Services Unit Atlanta University Center, Robert W. Woodruff Library email: amatth...@auctr.edu; office: 1 404 978 2057 On 5/7/14, 9:36 AM, Joseph Umhauer jumha...@niagara.edu wrote: Hi, Al, How do you access the Code4Lib archives j0e Joseph Umhauer Assistant Library Director for Technical Services Niagara University Library 716-286-8015 jumha...@niagara.edu -Original Message- From: Code for Libraries [mailto:CODE4LIB@listserv.nd.edu] On Behalf Of Al Matthews Sent: Wednesday, May 07, 2014 9:17 AM To: CODE4LIB@listserv.nd.edu Subject: Re: [CODE4LIB] Python in Your Library Language is a very personal issue, and this has been discussed before; maybe search the Code4Lib archives for a nice Python thread in 2013. But we’ve been using python3-pandas for data analysis and it’s a nice library. https://vimeo.com/59324550 -- Al Matthews Software Developer, Digital Services Unit Atlanta University Center, Robert W. Woodruff Library email: amatth...@auctr.edu; office: 1 404 978 2057 On 5/7/14, 9:13 AM, Julia caffr...@simmons.edu wrote: Hi All, This is my first time posting to Code4Lib. Now seems like a good time. I am wondering how you have applied Python in your library. What projects have been successful? What have you heard of other libraries doing? What advantages or disadvantages does it have compared to other scripting languages used in the library field? If you have any thoughts on any of those questions, I'd love to hear from you. Thanks, Julia caffr...@simmons.edu Simmons College Library ** The contents of this email and any attachments are confidential. They are intended for the named recipient(s) only. If you have received this email in error please notify the system manager or the sender immediately and do not disclose the contents to anyone or make copies. ** IronMail scanned this email for viruses, vandals and malicious content. ** ** ** The contents of this email and any attachments are confidential. They are intended for the named recipient(s) only. If you have received this email in error please notify the system manager or the sender immediately and do not disclose the contents to anyone or make copies. ** IronMail scanned this email for viruses, vandals and malicious content. ** **
Re: [CODE4LIB] Python in Your Library
This is the only python we've got going on in our library: http://www.wittprojects.net/library_blog/?p=573 http://ezra.wittenberg.edu/record=b1252845~S0 Ken -Original Message- From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of Julia Sent: Wednesday, May 07, 2014 9:13 AM To: CODE4LIB@LISTSERV.ND.EDU Subject: [CODE4LIB] Python in Your Library Hi All, This is my first time posting to Code4Lib. Now seems like a good time. I am wondering how you have applied Python in your library. What projects have been successful? What have you heard of other libraries doing? What advantages or disadvantages does it have compared to other scripting languages used in the library field? If you have any thoughts on any of those questions, I'd love to hear from you. Thanks, Julia caffr...@simmons.edu Simmons College Library
Re: [CODE4LIB] Python in Your Library
This is not a complex point, but I've been using Python about since it came out (since 2002) and have found it both flexible and very easy to learn and use. I'd recommend it as a scripting language for beginning programmers and those experimenting around. Our library isn't using Python for any formal projects that I'm aware of, but I've used it in extracurricular projects to pre-process Japanese files for text analysis and plan to use it for further NLP experimentation now that Stanford Core NLP has had a Python wrapper written - although I haven't tried it out yet. (Aside, great - I used it in Java when it first was released and what a lot of extraneous code I had to write.) However, the library has been doing an informal focused lab in which we had a group get together and work through the Codecademy introduction to Python. In terms of simplicity and ease of learning I highly recommend it, but others may have better recommendations too. Molly Des Jardin Japanese Studies Librarian University of Pennsylvania -- Molly C. Des Jardin, PhD http://www.mollydesjardin.com @mdesjardin
Re: [CODE4LIB] Python in Your Library
Let's not start another discussion about programming languages, but for the record: On Wed, May 07, 2014 at 09:49:16AM -0400, Molly Des Jardin wrote: This is not a complex point, but I've been using Python about since it came out (since 2002) and have found it both flexible and very easy to learn and Python came out in 1991: https://en.wikipedia.org/wiki/Python_%28programming_language%29 use. I'd recommend it as a scripting language for beginning programmers and those experimenting around. Python was designed as a teaching language. Today, it is a universal programming language suitable for all tasks. Low-level (systems) and performance critical functions can be written in C if required. At Bielefeld University Library we use Python for rapidly prototyping Web services based on the Flask framework. These services have proven stable and efficient, so there has been no need to re-write them for production use. Examples include an online OAI-PMH validator http://oval.base-search.net/, a classifier for assinging DDC labels to English or German abstracts http://clfapi.base-search.net/, and an OAI-PMH interface for BASE, the Bielefeld Academic Search Engine. If you work closely with researchers, it might be relevant to you that Python has become the dominant language in scientific programming because of great progress in the NumPy/SciPy/pandas frameworks. The majority of our software is still developed in Perl – for historical reasons, and because there are exciting new frameworks in Perl such as the ETL framework Catmandu http://librecat.org/. Cheers Christian -- Christian Pietsch http://purl.org/net/pietsch
Re: [CODE4LIB] Python in Your Library
I'm writing a Library Technology Report for ALA TechSource on short, useful programs people have written (in whatever language) in libraries, soask me again in six months and I'll have a giant list for you ;) (In the meantime, if you've written short -- under a hundred-ish line -- programs that do fun or useful things for your library, and ideally if developer is *not* in your job title, let's talk.) IMO advantages of Python include: * (Relative) ease of learning and reading * Python makes it particularly easy to write string-manipulation-type stuff * Tons of high-quality packages available (pymarc, written by code4libbers, is particularly library-relevant) * A large, often friendly user community that cares about outreach and diversity * For me personally, it's the only programming language I know that's ever felt *fun* to write The main disadvantage in a library context is that the big open-source projects used in libraries tend not to be in Python. Also, if you want to use Python for a web app, you're going to also want to learn Django or Flask or something (which, mind you, are great; it just feels like a hurdle if you're used to embedding PHP in HTML pages). So if your goal is to script some part of your workflow (especially if you need to munch on MARC, csv, text, data...), Python is awesome. If you want to be hacking on Hydra or Koha or Drupal or Wordpress or something, you'll need a different language. Andromeda Yelton LITA Board of Directors, Director-at-Large, 2013-2016 http://andromedayelton.com @ThatAndromeda On Wed, May 7, 2014 at 9:13 AM, Julia caffr...@simmons.edu wrote: Hi All, This is my first time posting to Code4Lib. Now seems like a good time. I am wondering how you have applied Python in your library. What projects have been successful? What have you heard of other libraries doing? What advantages or disadvantages does it have compared to other scripting languages used in the library field? If you have any thoughts on any of those questions, I'd love to hear from you. Thanks, Julia caffr...@simmons.edu Simmons College Library
Re: [CODE4LIB] Python in Your Library
So if your goal is to script some part of your workflow (especially if you need to munch on MARC, csv, text, data...), Python is awesome. Andromeda's nailed it in terms of my experience with Python. None of the (mostly PHP) major web software I work with uses Python but for automating little tasks it's my language of choice simply because of it's ease and readability. So batch editing MARC records with pymarc or scripting browser tasks with Selenium, for instance. Best, Eric On Wed, May 7, 2014 at 11:02 AM, Andromeda Yelton andromeda.yel...@gmail.com wrote: I'm writing a Library Technology Report for ALA TechSource on short, useful programs people have written (in whatever language) in libraries, soask me again in six months and I'll have a giant list for you ;) (In the meantime, if you've written short -- under a hundred-ish line -- programs that do fun or useful things for your library, and ideally if developer is *not* in your job title, let's talk.) IMO advantages of Python include: * (Relative) ease of learning and reading * Python makes it particularly easy to write string-manipulation-type stuff * Tons of high-quality packages available (pymarc, written by code4libbers, is particularly library-relevant) * A large, often friendly user community that cares about outreach and diversity * For me personally, it's the only programming language I know that's ever felt *fun* to write The main disadvantage in a library context is that the big open-source projects used in libraries tend not to be in Python. Also, if you want to use Python for a web app, you're going to also want to learn Django or Flask or something (which, mind you, are great; it just feels like a hurdle if you're used to embedding PHP in HTML pages). So if your goal is to script some part of your workflow (especially if you need to munch on MARC, csv, text, data...), Python is awesome. If you want to be hacking on Hydra or Koha or Drupal or Wordpress or something, you'll need a different language. Andromeda Yelton LITA Board of Directors, Director-at-Large, 2013-2016 http://andromedayelton.com @ThatAndromeda On Wed, May 7, 2014 at 9:13 AM, Julia caffr...@simmons.edu wrote: Hi All, This is my first time posting to Code4Lib. Now seems like a good time. I am wondering how you have applied Python in your library. What projects have been successful? What have you heard of other libraries doing? What advantages or disadvantages does it have compared to other scripting languages used in the library field? If you have any thoughts on any of those questions, I'd love to hear from you. Thanks, Julia caffr...@simmons.edu Simmons College Library
Re: [CODE4LIB] Python in Your Library
What's the difference between the Stanford Core NLP and Python's native NLTK? Enjoying all this immensely, Colin -Original Message- From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of Molly Des Jardin Sent: Wednesday, May 07, 2014 9:49 AM To: CODE4LIB@LISTSERV.ND.EDU Subject: Re: [CODE4LIB] Python in Your Library This is not a complex point, but I've been using Python about since it came out (since 2002) and have found it both flexible and very easy to learn and use. I'd recommend it as a scripting language for beginning programmers and those experimenting around. Our library isn't using Python for any formal projects that I'm aware of, but I've used it in extracurricular projects to pre-process Japanese files for text analysis and plan to use it for further NLP experimentation now that Stanford Core NLP has had a Python wrapper written - although I haven't tried it out yet. (Aside, great - I used it in Java when it first was released and what a lot of extraneous code I had to write.) However, the library has been doing an informal focused lab in which we had a group get together and work through the Codecademy introduction to Python. In terms of simplicity and ease of learning I highly recommend it, but others may have better recommendations too. Molly Des Jardin Japanese Studies Librarian University of Pennsylvania -- Molly C. Des Jardin, PhD http://www.mollydesjardin.com @mdesjardin
Re: [CODE4LIB] Python in Your Library
Hi Julia, At Colorado College most of our coding efforts have been in Python including a Django Discovery Layer (https://github.com/jermnelson/Discover-Aristotle), a number of Flask-based utilites for our Fedora Commons repository (https://github.com/jermnelson/adr-cc-utilities), and my current work on a new Flask-based catalog (http://catalog.coloradocollege.edu/, repository at https://github.com/jermnelson/tiger-catalog/) for our library that uses JSON-LD representations of MARC, BIBFRAME and Schema.org. Jeremy Nelson Metadata and Systems Librarian Colorado College -Original Message- From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of Eric Phetteplace Sent: Wednesday, May 07, 2014 9:27 AM To: CODE4LIB@LISTSERV.ND.EDU Subject: Re: [CODE4LIB] Python in Your Library So if your goal is to script some part of your workflow (especially if you need to munch on MARC, csv, text, data...), Python is awesome. Andromeda's nailed it in terms of my experience with Python. None of the (mostly PHP) major web software I work with uses Python but for automating little tasks it's my language of choice simply because of it's ease and readability. So batch editing MARC records with pymarc or scripting browser tasks with Selenium, for instance. Best, Eric On Wed, May 7, 2014 at 11:02 AM, Andromeda Yelton andromeda.yel...@gmail.com wrote: I'm writing a Library Technology Report for ALA TechSource on short, useful programs people have written (in whatever language) in libraries, soask me again in six months and I'll have a giant list for you ;) (In the meantime, if you've written short -- under a hundred-ish line -- programs that do fun or useful things for your library, and ideally if developer is *not* in your job title, let's talk.) IMO advantages of Python include: * (Relative) ease of learning and reading * Python makes it particularly easy to write string-manipulation-type stuff * Tons of high-quality packages available (pymarc, written by code4libbers, is particularly library-relevant) * A large, often friendly user community that cares about outreach and diversity * For me personally, it's the only programming language I know that's ever felt *fun* to write The main disadvantage in a library context is that the big open-source projects used in libraries tend not to be in Python. Also, if you want to use Python for a web app, you're going to also want to learn Django or Flask or something (which, mind you, are great; it just feels like a hurdle if you're used to embedding PHP in HTML pages). So if your goal is to script some part of your workflow (especially if you need to munch on MARC, csv, text, data...), Python is awesome. If you want to be hacking on Hydra or Koha or Drupal or Wordpress or something, you'll need a different language. Andromeda Yelton LITA Board of Directors, Director-at-Large, 2013-2016 http://andromedayelton.com @ThatAndromeda On Wed, May 7, 2014 at 9:13 AM, Julia caffr...@simmons.edu wrote: Hi All, This is my first time posting to Code4Lib. Now seems like a good time. I am wondering how you have applied Python in your library. What projects have been successful? What have you heard of other libraries doing? What advantages or disadvantages does it have compared to other scripting languages used in the library field? If you have any thoughts on any of those questions, I'd love to hear from you. Thanks, Julia caffr...@simmons.edu Simmons College Library
Re: [CODE4LIB] Python in Your Library
I have a number of such things in javascript. Haven't bothered to count the lines. Best regards, *Jason Bengtson, MLIS, MA* Head of Library Computing and Information Systems Assistant Professor, Graduate College Department of Health Sciences Library and Information Management University of Oklahoma Health Sciences Center 405-271-2285, opt. 5 405-271-3297 (fax) *jason-bengt...@ouhsc.edu jason-bengt...@ouhsc.edu* *http://library.ouhsc.edu http://library.ouhsc.edu/* *www.jasonbengtson.com http://www.jasonbengtson.com/* NOTICE: This e-mail is intended solely for the use of the individual to whom it is addressed and may contain information that is privileged, confidential or otherwise exempt from disclosure. If the reader of this e-mail is not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify us by replying to the original message at the listed email address. Thank You. j.bengtson...@gmail.com On Wed, May 7, 2014 at 10:02 AM, Andromeda Yelton andromeda.yel...@gmail.com wrote: I'm writing a Library Technology Report for ALA TechSource on short, useful programs people have written (in whatever language) in libraries, soask me again in six months and I'll have a giant list for you ;) (In the meantime, if you've written short -- under a hundred-ish line -- programs that do fun or useful things for your library, and ideally if developer is *not* in your job title, let's talk.) IMO advantages of Python include: * (Relative) ease of learning and reading * Python makes it particularly easy to write string-manipulation-type stuff * Tons of high-quality packages available (pymarc, written by code4libbers, is particularly library-relevant) * A large, often friendly user community that cares about outreach and diversity * For me personally, it's the only programming language I know that's ever felt *fun* to write The main disadvantage in a library context is that the big open-source projects used in libraries tend not to be in Python. Also, if you want to use Python for a web app, you're going to also want to learn Django or Flask or something (which, mind you, are great; it just feels like a hurdle if you're used to embedding PHP in HTML pages). So if your goal is to script some part of your workflow (especially if you need to munch on MARC, csv, text, data...), Python is awesome. If you want to be hacking on Hydra or Koha or Drupal or Wordpress or something, you'll need a different language. Andromeda Yelton LITA Board of Directors, Director-at-Large, 2013-2016 http://andromedayelton.com @ThatAndromeda On Wed, May 7, 2014 at 9:13 AM, Julia caffr...@simmons.edu wrote: Hi All, This is my first time posting to Code4Lib. Now seems like a good time. I am wondering how you have applied Python in your library. What projects have been successful? What have you heard of other libraries doing? What advantages or disadvantages does it have compared to other scripting languages used in the library field? If you have any thoughts on any of those questions, I'd love to hear from you. Thanks, Julia caffr...@simmons.edu Simmons College Library
Re: [CODE4LIB] Python in Your Library
Sorry, that last was meant to go to one person. Been one of those days. Best regards, *Jason Bengtson, MLIS, MA* Head of Library Computing and Information Systems Assistant Professor, Graduate College Department of Health Sciences Library and Information Management University of Oklahoma Health Sciences Center 405-271-2285, opt. 5 405-271-3297 (fax) *jason-bengt...@ouhsc.edu jason-bengt...@ouhsc.edu* *http://library.ouhsc.edu http://library.ouhsc.edu/* *www.jasonbengtson.com http://www.jasonbengtson.com/* NOTICE: This e-mail is intended solely for the use of the individual to whom it is addressed and may contain information that is privileged, confidential or otherwise exempt from disclosure. If the reader of this e-mail is not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify us by replying to the original message at the listed email address. Thank You. j.bengtson...@gmail.com On Wed, May 7, 2014 at 2:35 PM, Jason Bengtson j.bengtson...@gmail.comwrote: I have a number of such things in javascript. Haven't bothered to count the lines. Best regards, *Jason Bengtson, MLIS, MA* Head of Library Computing and Information Systems Assistant Professor, Graduate College Department of Health Sciences Library and Information Management University of Oklahoma Health Sciences Center 405-271-2285, opt. 5 405-271-3297 (fax) *jason-bengt...@ouhsc.edu jason-bengt...@ouhsc.edu* *http://library.ouhsc.edu http://library.ouhsc.edu/* *www.jasonbengtson.com http://www.jasonbengtson.com/* NOTICE: This e-mail is intended solely for the use of the individual to whom it is addressed and may contain information that is privileged, confidential or otherwise exempt from disclosure. If the reader of this e-mail is not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify us by replying to the original message at the listed email address. Thank You. j.bengtson...@gmail.com On Wed, May 7, 2014 at 10:02 AM, Andromeda Yelton andromeda.yel...@gmail.com wrote: I'm writing a Library Technology Report for ALA TechSource on short, useful programs people have written (in whatever language) in libraries, soask me again in six months and I'll have a giant list for you ;) (In the meantime, if you've written short -- under a hundred-ish line -- programs that do fun or useful things for your library, and ideally if developer is *not* in your job title, let's talk.) IMO advantages of Python include: * (Relative) ease of learning and reading * Python makes it particularly easy to write string-manipulation-type stuff * Tons of high-quality packages available (pymarc, written by code4libbers, is particularly library-relevant) * A large, often friendly user community that cares about outreach and diversity * For me personally, it's the only programming language I know that's ever felt *fun* to write The main disadvantage in a library context is that the big open-source projects used in libraries tend not to be in Python. Also, if you want to use Python for a web app, you're going to also want to learn Django or Flask or something (which, mind you, are great; it just feels like a hurdle if you're used to embedding PHP in HTML pages). So if your goal is to script some part of your workflow (especially if you need to munch on MARC, csv, text, data...), Python is awesome. If you want to be hacking on Hydra or Koha or Drupal or Wordpress or something, you'll need a different language. Andromeda Yelton LITA Board of Directors, Director-at-Large, 2013-2016 http://andromedayelton.com @ThatAndromeda On Wed, May 7, 2014 at 9:13 AM, Julia caffr...@simmons.edu wrote: Hi All, This is my first time posting to Code4Lib. Now seems like a good time. I am wondering how you have applied Python in your library. What projects have been successful? What have you heard of other libraries doing? What advantages or disadvantages does it have compared to other scripting languages used in the library field? If you have any thoughts on any of those questions, I'd love to hear from you. Thanks, Julia caffr...@simmons.edu Simmons College Library