View committed code via gitpython

2016-07-01 Thread Jason Bailey
Hi all, I'm trying to essentially replicate "gift grep" functionality with gitpython and am not quite sure how to pull the committed code from the repo using gitpython. I am successfully listing all the commits, so now all I need to do is view the code in each commit to do some regex matching o

View committed code via gitpython

2016-07-01 Thread Jason Bailey
Hi all, I'm trying to essentially replicate "gift grep" functionality with gitpython and am not quite sure how to pull the committed code from the repo using gitpython. I am successfully listing all the commits, so now all I need to do is view the code in each commit to do some regex matching o

Python 3 regex?

2015-01-12 Thread Jason Bailey
Hi all, I'm working on a Python _3_ project that will be used to parse ISC DHCPD configuration files for statistics and alarming purposes (IP address pools, etc). Anyway, I'm hung up on this one section and was hoping someone could provide me with some insight. My script first reads the DHCP

Python 3 regex woes (parsing ISC DHCPD config)

2015-01-12 Thread Jason Bailey
Hi all, I'm working on a Python _3_ project that will be used to parse ISC DHCPD configuration files for statistics and alarming purposes (IP address pools, etc). Anyway, I'm hung up on this one section and was hoping someone could provide me with some insight. My script first reads the DHCP

Check for running DHCP daemon?

2015-01-21 Thread Jason Bailey
So I've got this python 3 script that needs to know if there is a running DHCP daemon (ISC DHCP server) on the local system. Is there a clean way to do this that (1) doesn't require me to do syscalls to local utilities (like ps, top, etc), and (2) doesn't require any custom modules (stock only)

Re: Check for running DHCP daemon?

2015-01-21 Thread Jason Bailey
How would I get a list of running processes with the subprocess module? The documentation wasn't clear to me. On Jan 21, 2015 7:21 PM, Dan Stromberg wrote: On Wed, Jan 21, 2015 at 3:06 PM, Jason Bailey wrote: > So I've got this python 3 script that needs to know if there is a r

Re: Check for running DHCP daemon?

2015-01-23 Thread Jason Bailey
shouldn't have). Can anyone steer me in the right direction on port status? Jason Bailey Network Technician Emery Telcom Office: (435) 636-0052 jbai...@emerytelcom.com On 01/21/2015 09:39 PM, Chris Angelico wrote: On Thu, Jan 22, 2015 at 2:58 PM, Jason Bailey wrote: How would I get a

Re: Check for running DHCP daemon?

2015-01-23 Thread Jason Bailey
Is there a way to do it without calling external utilities (i.e. a Python module, etc)? I'd rather stay within the realm of Python if possible. Jason On 01/23/2015 10:04 AM, Chris Angelico wrote: On Sat, Jan 24, 2015 at 3:02 AM, Jason Bailey wrote: I'm actually wondering if i