Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Transferring large amounts of files
Post: RE: Transferring large amounts of files

Thank you for the link. I'm new enough at developing with Python that I sometimes forget about the things like PyPi.
gohanzdad Networking 4 4,124 Jun-24-2017, 12:22 AM
    Thread: Transferring large amounts of files
Post: RE: Transferring large amounts of files

The other pieces of the puzzle are clear and have already been worked out. This one however is the main piece and the most difficult. I'm not asking anyone to give me code that will solve the proble...
gohanzdad Networking 4 4,124 Jun-23-2017, 07:32 PM
    Thread: Transferring large amounts of files
Post: Transferring large amounts of files

Hopefully someone can help me find some good resources for this. I want to write something in Python that can transfer large amounts of files (TB's of files) in the shortest amount of time possible. ...
gohanzdad Networking 4 4,124 Jun-23-2017, 02:40 PM
    Thread: sqlite3 insert issue
Post: RE: sqlite3 insert issue

Finally figured this one out.  Feel kind of stupid that this solution did jump out at me the first time I read the sqlite3 docs. import sqlite3 import sys table = """CREATE TABLE speakers (         ...
gohanzdad General Coding Help 1 3,109 May-16-2017, 05:26 PM
    Thread: IndexEroor : index out of range
Post: RE: IndexEroor : index out of range

Posting the code would be helpful.
gohanzdad Data Science 7 6,766 May-16-2017, 05:03 PM
    Thread: Issues with running regedit command from python
Post: RE: Issues with running regedit command from pytho...

Just as an update, I was able to get everything running properly with the regobj module.  Although it hasn't been updated in quite some time, it does support Python 3 and at the time of this post I wa...
gohanzdad General Coding Help 10 9,783 May-16-2017, 04:28 PM
    Thread: sqlite3 insert issue
Post: sqlite3 insert issue

I am playing around with the sqlite3 module in preparation for a project I'm going to be working on.  I've used pymysql before without issues, but for some reason with sqlite3 I cannot get the 'execut...
gohanzdad General Coding Help 1 3,109 May-16-2017, 04:19 PM
    Thread: Issues with running regedit command from python
Post: RE: Issues with running regedit command from pytho...

I looked at the code, and it does check for Python 3.  If it finds it then it uses winreg.  However, it could be missing something.
gohanzdad General Coding Help 10 9,783 May-08-2017, 03:51 PM
    Thread: Issues with running regedit command from python
Post: RE: Issues with running regedit command from pytho...

I'm using the 'regobj' module as suggested by Larz60+ The Python version I'm running is 3.6.1
gohanzdad General Coding Help 10 9,783 May-08-2017, 03:34 PM
    Thread: Issues with running regedit command from python
Post: RE: Issues with running regedit command from pytho...

I've got this mostly working, however there are few registry values that are raising a 'UnicodeEncodeError' error. I'm pretty sure this is because of the binary and hex values. What is the best way ...
gohanzdad General Coding Help 10 9,783 May-08-2017, 03:09 PM
    Thread: Issues with running regedit command from python
Post: RE: Issues with running regedit command from pytho...

Thanks!
gohanzdad General Coding Help 10 9,783 May-06-2017, 09:02 PM
    Thread: Issues with running regedit command from python
Post: RE: Issues with running regedit command from pytho...

Would it be possible for you to point me toward some examples of the code usage?  Maybe something that shows iterating over the entire registry?
gohanzdad General Coding Help 10 9,783 May-06-2017, 03:22 PM
    Thread: Issues with running regedit command from python
Post: Issues with running regedit command from python

I've been working on a script for someone and they need the Windows registry backed up before the script is run.  I've been using the code below, but I recently noticed that it's not getting all of th...
gohanzdad General Coding Help 10 9,783 May-06-2017, 06:09 AM
    Thread: Is this fast for Paramiko?
Post: RE: Is this fast for Paramiko?

This whole thing was a mess, but I got it worked out. I would have posted the code, but it's proprietary to a project at work (Boo). Anyway, I'm about done with the contingent position so it's not m...
gohanzdad Networking 3 4,080 May-06-2017, 05:59 AM
    Thread: Is this fast for Paramiko?
Post: Is this fast for Paramiko?

I have a script I'm using at work to pull firewall ACL's.  I'm using the Paramiko module, but I feel like it might be taking longer then it should.  I'm not sure though.  The largest ACL file I end up...
gohanzdad Networking 3 4,080 Mar-03-2017, 01:28 AM
    Thread: script optimization
Post: RE: script optimization

So, I've found an issue with pulling the configs via SSH using multithreading.  Going to take that into the networking help area.  BUT.......I did add some functions for doing bulk updates and inserts...
gohanzdad General Coding Help 6 5,459 Mar-03-2017, 01:14 AM
    Thread: script optimization
Post: RE: script optimization

Thanks @Ofnuts and @nilamo for the good suggestions.  I will look at both of those today and report back.   **smile**
gohanzdad General Coding Help 6 5,459 Mar-01-2017, 03:39 PM
    Thread: script optimization
Post: RE: script optimization

Depends on the firewall.  But at most 5 minutes.  The acls are in clusters and the output has a side a and side b.  The largest output file is 5.1MB.  The database does have multiple tables and they a...
gohanzdad General Coding Help 6 5,459 Mar-01-2017, 01:31 AM
    Thread: script optimization
Post: script optimization

First post to the forum!  Looking forward to hearing your guys input. I have a script I'm writing at work that will help us audit our cisco ASA firewall rules.  It parses the acl output into objects ...
gohanzdad General Coding Help 6 5,459 Feb-28-2017, 11:47 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020