code
stringlengths
1
1.72M
language
stringclasses
1 value
from distutils.core import setup, Extension import os, sys setup(name="flud", version="0.2.1", description="flud decentralized backup", long_description='a 100% decentralized backup system', author="Alen Peacock", author_email="apeacock@flud.org", url='http://flud.org', license='GPLv3 (c)2004-2007 Alen...
Python
""" FludCrypto.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. Provides FludRSA (an enhanced RSA.RSAobj), as well as convenience functions for creating hashes, finding hash collisions, etc. """ import binascii import operator import s...
Python
""" FludServer.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. flud server operations """ import threading, binascii, time, os, stat, httplib, gc, re, sys, logging, sets from twisted.web import server, resource, client from twisted.we...
Python
""" LocalPrimitives.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. Protocol for talking to a flud node locally (from client code -- command line, GUI, etc). Each command in the local protocol begins with 4 bytes designating the type ...
Python
#!/usr/bin/python """ LocalClient.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. LocalClient provides client functions which can be called to send commands to a local FludNode instance. """ import sys, os, time from twisted.internet....
Python
""" ServerDHTPrimitives.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. Primitive server DHT protocol """ import binascii, time, os, stat, httplib, gc, re, sys, logging, random, sets from twisted.web.resource import Resource from twis...
Python
#!/usr/bin/python """ LocalClient.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. LocalClient provides client functions which can be called to send commands to a local FludNode instance. """ import sys, os, time from twisted.internet....
Python
""" ConnectionQueue, (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. This module manages the connection queue. In order to reduce the probability of the reactor getting tied up servicing requests/responses during periods of extreme busy...
Python
""" ClientPrimitives.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. Primitive client storage protocol """ from twisted.web import http, client from twisted.internet import reactor, threads, defer, error from twisted.python import fai...
Python
""" FludClient.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. flud client ops. """ from twisted.web import client from twisted.internet import error import os, stat, httplib, sys, logging from ClientPrimitives import * from ClientD...
Python
""" ServerPrimitives.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. Primitive server storage protocol """ import binascii, time, os, stat, httplib, gc, re, sys, logging, sets import tempfile, tarfile from StringIO import StringIO fro...
Python
""" FludCommUtil.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. Communications routines used by both client and server code. """ from twisted.web import client from twisted.internet import reactor, defer from twisted.python import fai...
Python
""" ClientDHTPrimitives.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. Primitive client DHT protocol """ import time, os, stat, httplib, sys, random, logging from twisted.web import http, client from twisted.internet import reactor, t...
Python
""" FludkRouting.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. Implements kademlia-style kbuckets (the routing table for the DHT layer). Although this is not a derivative of Khashmir (written by Andrew Loewenstern, Aaron Swartz, et....
Python
import zfec import zfec.easyfec as easyfec import zfec.filefec as filefec from pyutil import fileutil from pyutil.mathutil import pad_size, log_ceil import array, os, re, struct, traceback FORMAT_FORMAT = "%%s.%%0%dd_%%0%dd%%s" RE_FORMAT = "%s.[0-9]+_[0-9]+%s" def encode_to_files(inf, fsize, dirname, prefix, k, m, su...
Python
from twisted.python import failure from twisted.internet import defer """ FludDefer.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. """ class ErrDeferredList(defer.DeferredList): """ ErrDeferredList acts just like DeferredList, exc...
Python
#!/usr/bin/python """ FludNode.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), verison 3. FludNode is the process that runs to talk with other nodes in the flud backup network. """ from twisted.internet import reactor, defer import threading, s...
Python
""" CheckboxState.py, (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. CheckboxState represents the states which a checkbox in DirCtrl can take """ class CheckboxState: (UNSELECTED, SELECTED, SELECTEDCHILD, SELECTEDPARENT, EXCLUDED, ...
Python
class FludException(Exception): pass
Python
#!/usr/bin/python """ FludTestGauges.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. Provides gauges for visualizing storage for multiple flud nodes running on the same host. This is really only useful for demos and testing. """ impo...
Python
import os, stat, sys, tarfile, tempfile import gzip from flud.FludCrypto import hashstream from flud.fencode import fencode """ TarfileUtils.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. Provides additional tarfile functionality (d...
Python
#!/usr/bin/python """ FludNode.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), verison 3. FludNode is the process that runs to talk with other nodes in the flud backup network. """ from twisted.internet import reactor, defer import threading, s...
Python
#!/usr/bin/python """ FludScheduler.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), verison 3. FludScheduler is the process monitors files for changes, and then tells flud to back them up. """ import sys, os, time, stat from twisted.internet im...
Python
#!/usr/bin/python """ FludLocalClient.py, (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. FludLocalClient provides a command-line client for interacting with FludNode. """ import sys, os, time from twisted.internet import reactor from ...
Python
#!/usr/bin/python """ FludClient.py, (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. FludClient provides a GUI Client for interacting with FludNode. """ #from twisted.internet import wxreactor #wxreactor.install() import sys, os, strin...
Python
#!/usr/bin/python """ FludTestGauges.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. Provides gauges for visualizing storage for multiple flud nodes running on the same host. This is really only useful for demos and testing. """ impo...
Python
#!/usr/bin/python """ FludNode.tac (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL). This is the application file used by twistd to daemonize FludNode. """ import os from twisted.application import service, internet import flud.FludNode from flud.pr...
Python
import base64 """ fencode.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. Provides efficient urlsafe base64 encoding of python types (int, long, string, None, dict, tuple, list) -- in the same vein as BitTorrent's bencode or MNet's me...
Python
# XXX: this class goes away class Reputation: """ Each node maintains a list of reputation objects corresponding to reputations of other nodes. Reputations may be self-generated (in which case the originator is this node itself), or may be relayed (in which case some other node is the originator). Self-gene...
Python
#!/usr/bin/python """ FludLocalClient.py, (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. FludLocalClient provides a command-line client for interacting with FludNode. """ import sys, os, time from twisted.internet import reactor from ...
Python
import urlparse, os, types from twisted.web import client from twisted.internet import reactor, defer from twisted.python import failure """ HTTPMultipartDownloader.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. HTTPMultipartDownloa...
Python
#!/usr/bin/python """ FludClient.py, (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. FludClient provides a GUI Client for interacting with FludNode. """ #from twisted.internet import wxreactor #wxreactor.install() import sys, os, strin...
Python
""" FludConfig.py, (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. manages configuration file for flud backup. """ import os, sys, socket, re, logging, time import ConfigParser import flud.FludCrypto as FludCrypto from flud.FludCrypto i...
Python
#!/usr/bin/python """ FludNode.tac (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL). This is the application file used by twistd to daemonize FludNode. """ import os from twisted.application import service, internet import flud.FludNode from flud.pr...
Python
#!/usr/bin/python """ FludScheduler.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), verison 3. FludScheduler is the process monitors files for changes, and then tells flud to back them up. """ import sys, os, time, stat from twisted.internet im...
Python
""" FludFileOperations.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. Implements file storage and retrieval operations using flud primitives. """ import os, stat, sys, logging, binascii, random, time from zlib import crc32 from Strin...
Python
""" Okay, so this isn't a real python module, yet. Wanted to get down a few ideas on versioning. First, the background. Traditional backup systems that provide versioning support allow the user to retrieve the current version of a file, or any of N previous versions that were stored during previous backup operatio...
Python
#!/usr/bin/python import time, os, stat, random, sys, logging, socket from twisted.python import failure sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname( os.path.abspath(__file__))))) from flud.FludNode import FludNode from flud.protocol.FludClient import FludClient from flud.protocol.FludCommUtil im...
Python
#!/usr/bin/python import time, os, stat, random, sys, logging, socket, shutil, tempfile from binascii import crc32 from StringIO import StringIO from twisted.python import failure sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname( os.path.abspath(__file__))))) from flud.FludNode import FludNode from fl...
Python
#!/usr/bin/python """ FludFileOpTest.py, (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. System tests for FludFileOperations """ import sys, os, time, logging, tempfile, shutil from twisted.internet import reactor sys.path.append(os.p...
Python
#!/usr/bin/python import time, os, stat, random, sys, logging, socket, tempfile from twisted.python import failure from StringIO import StringIO from zlib import crc32 sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname( os.path.abspath(__file__))))) from flud.FludNode import FludNode from flud.protocol....
Python
#!/usr/bin/python import time, os, stat, random, sys, logging, socket from twisted.python import failure from twisted.internet import defer sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname( os.path.abspath(__file__))))) from flud.FludNode import FludNode from flud.protocol.FludClient import FludClient...
Python
#!/usr/bin/python import time, os, stat, random, sys, logging, socket from twisted.python import failure from twisted.internet import defer sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname( os.path.abspath(__file__))))) from flud.FludNode import FludNode from flud.protocol.FludClient import FludClient...
Python
#!/usr/bin/python import time, os, stat, random, sys, logging, socket, shutil, tempfile from binascii import crc32 from StringIO import StringIO from twisted.python import failure sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname( os.path.abspath(__file__))))) from flud.FludNode import FludNode from fl...
Python
#!/usr/bin/python """ FludFileOpTest.py, (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. System tests for FludFileOperations """ import sys, os, time, logging, tempfile, shutil from twisted.internet import reactor sys.path.append(os.p...
Python
#!/usr/bin/python import time, os, stat, random, sys, logging, socket from twisted.python import failure sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname( os.path.abspath(__file__))))) from flud.FludNode import FludNode from flud.protocol.FludClient import FludClient from flud.protocol.FludCommUtil im...
Python
#!/usr/bin/python import tarfile, tempfile, random, os, sys import gzip from Crypto.Hash import SHA256 sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname( os.path.abspath(__file__))))) from flud.fencode import fencode import flud.TarfileUtils as TarfileUtils def maketarball(numfiles, avgsize, hashnames...
Python
#!/usr/bin/python import time, os, stat, random, sys, logging, socket from twisted.python import failure from twisted.internet import defer sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname( os.path.abspath(__file__))))) import flud.FludCrypto from flud.FludNode import FludNode from flud.protocol.FludC...
Python
#!/usr/bin/python import time, os, stat, random, sys, logging, socket, tempfile from twisted.python import failure from StringIO import StringIO from zlib import crc32 sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname( os.path.abspath(__file__))))) from flud.FludNode import FludNode from flud.protocol....
Python
#!/usr/bin/python import time, os, stat, random, sys, logging, socket from twisted.python import failure from twisted.internet import defer sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname( os.path.abspath(__file__))))) import flud.FludCrypto from flud.FludNode import FludNode from flud.protocol.FludC...
Python
#!/usr/bin/python import tarfile, tempfile, random, os, sys import gzip from Crypto.Hash import SHA256 sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname( os.path.abspath(__file__))))) from flud.fencode import fencode import flud.TarfileUtils as TarfileUtils def maketarball(numfiles, avgsize, hashnames...
Python
from distutils.core import setup, Extension import os, sys setup(name="flud", version="0.2.0", description="flud decentralized backup", long_description='a 100% decentralized backup system', author="Alen Peacock", author_email="apeacock@flud.org", url='http://flud.org', license='GPLv3 (c)2004-2007 Alen...
Python
""" FludCrypto.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. Provides FludRSA (an enhanced RSA.RSAobj), as well as convenience functions for creating hashes, finding hash collisions, etc. """ import binascii import operator import s...
Python
""" FludServer.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. flud server operations """ import threading, binascii, time, os, stat, httplib, gc, re, sys, logging, sets from twisted.web import server, resource, client from twisted.we...
Python
""" LocalPrimitives.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. Protocol for talking to a flud node locally (from client code -- command line, GUI, etc). Each command in the local protocol begins with 4 bytes designating the type ...
Python
#!/usr/bin/python """ LocalClient.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. LocalClient provides client functions which can be called to send commands to a local FludNode instance. """ import sys, os, time from twisted.internet....
Python
""" ServerDHTPrimitives.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. Primitive server DHT protocol """ import binascii, time, os, stat, httplib, gc, re, sys, logging, random, sets from twisted.web.resource import Resource from twis...
Python
#!/usr/bin/python """ LocalClient.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. LocalClient provides client functions which can be called to send commands to a local FludNode instance. """ import sys, os, time from twisted.internet....
Python
""" ConnectionQueue, (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. This module manages the connection queue. In order to reduce the probability of the reactor getting tied up servicing requests/responses during periods of extreme busy...
Python
""" ClientPrimitives.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. Primitive client storage protocol """ from twisted.web import http, client from twisted.internet import reactor, threads, defer, error from twisted.python import fai...
Python
""" FludClient.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. flud client ops. """ from twisted.web import client from twisted.internet import error import os, stat, httplib, sys, logging from ClientPrimitives import * from ClientD...
Python
""" ServerPrimitives.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. Primitive server storage protocol """ import binascii, time, os, stat, httplib, gc, re, sys, logging, sets import tempfile, tarfile from StringIO import StringIO fro...
Python
""" FludCommUtil.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. Communications routines used by both client and server code. """ from twisted.web import client from twisted.internet import reactor, defer from twisted.python import fai...
Python
""" ClientDHTPrimitives.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. Primitive client DHT protocol """ import time, os, stat, httplib, sys, random, logging from twisted.web import http, client from twisted.internet import reactor, t...
Python
""" FludkRouting.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. Implements kademlia-style kbuckets (the routing table for the DHT layer). Although this is not a derivative of Khashmir (written by Andrew Loewenstern, Aaron Swartz, et....
Python
import zfec import zfec.easyfec as easyfec import zfec.filefec as filefec from pyutil import fileutil from pyutil.mathutil import pad_size, log_ceil import array, os, re, struct, traceback FORMAT_FORMAT = "%%s.%%0%dd_%%0%dd%%s" RE_FORMAT = "%s.[0-9]+_[0-9]+%s" def encode_to_files(inf, fsize, dirname, prefix, k, m, su...
Python
from twisted.python import failure from twisted.internet import defer """ FludDefer.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. """ class ErrDeferredList(defer.DeferredList): """ ErrDeferredList acts just like DeferredList, exc...
Python
#!/usr/bin/python """ FludNode.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), verison 3. FludNode is the process that runs to talk with other nodes in the flud backup network. """ from twisted.internet import reactor, defer import threading, s...
Python
""" CheckboxState.py, (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. CheckboxState represents the states which a checkbox in DirCtrl can take """ class CheckboxState: (UNSELECTED, SELECTED, SELECTEDCHILD, SELECTEDPARENT, EXCLUDED, ...
Python
class FludException(Exception): pass
Python
#!/usr/bin/python """ FludTestGauges.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. Provides gauges for visualizing storage for multiple flud nodes running on the same host. This is really only useful for demos and testing. """ impo...
Python
import os, stat, sys, tarfile, tempfile import gzip from flud.FludCrypto import hashstream from flud.fencode import fencode """ TarfileUtils.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. Provides additional tarfile functionality (d...
Python
#!/usr/bin/python """ FludNode.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), verison 3. FludNode is the process that runs to talk with other nodes in the flud backup network. """ from twisted.internet import reactor, defer import threading, s...
Python
#!/usr/bin/python """ FludScheduler.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), verison 3. FludScheduler is the process monitors files for changes, and then tells flud to back them up. """ import sys, os, time, stat from twisted.internet im...
Python
#!/usr/bin/python """ FludLocalClient.py, (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. FludLocalClient provides a command-line client for interacting with FludNode. """ import sys, os, time from twisted.internet import reactor from ...
Python
#!/usr/bin/python """ FludClient.py, (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. FludClient provides a GUI Client for interacting with FludNode. """ #from twisted.internet import wxreactor #wxreactor.install() import sys, os, strin...
Python
#!/usr/bin/python """ FludTestGauges.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. Provides gauges for visualizing storage for multiple flud nodes running on the same host. This is really only useful for demos and testing. """ impo...
Python
#!/usr/bin/python """ FludNode.tac (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL). This is the application file used by twistd to daemonize FludNode. """ import os from twisted.application import service, internet import flud.FludNode from flud.pr...
Python
import base64 """ fencode.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. Provides efficient urlsafe base64 encoding of python types (int, long, string, None, dict, tuple, list) -- in the same vein as BitTorrent's bencode or MNet's me...
Python
# XXX: this class goes away class Reputation: """ Each node maintains a list of reputation objects corresponding to reputations of other nodes. Reputations may be self-generated (in which case the originator is this node itself), or may be relayed (in which case some other node is the originator). Self-gene...
Python
#!/usr/bin/python """ FludLocalClient.py, (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. FludLocalClient provides a command-line client for interacting with FludNode. """ import sys, os, time from twisted.internet import reactor from ...
Python
import urlparse, os, types from twisted.web import client from twisted.internet import reactor, defer from twisted.python import failure """ HTTPMultipartDownloader.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. HTTPMultipartDownloa...
Python
#!/usr/bin/python """ FludClient.py, (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. FludClient provides a GUI Client for interacting with FludNode. """ #from twisted.internet import wxreactor #wxreactor.install() import sys, os, strin...
Python
""" FludConfig.py, (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. manages configuration file for flud backup. """ import os, sys, socket, re, logging, time import ConfigParser import flud.FludCrypto as FludCrypto from flud.FludCrypto i...
Python
#!/usr/bin/python """ FludNode.tac (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL). This is the application file used by twistd to daemonize FludNode. """ import os from twisted.application import service, internet import flud.FludNode from flud.pr...
Python
#!/usr/bin/python """ FludScheduler.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), verison 3. FludScheduler is the process monitors files for changes, and then tells flud to back them up. """ import sys, os, time, stat from twisted.internet im...
Python
""" FludFileOperations.py (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. Implements file storage and retrieval operations using flud primitives. """ import os, stat, sys, logging, binascii, random, time from zlib import crc32 from Strin...
Python
""" Okay, so this isn't a real python module, yet. Wanted to get down a few ideas on versioning. First, the background. Traditional backup systems that provide versioning support allow the user to retrieve the current version of a file, or any of N previous versions that were stored during previous backup operatio...
Python
#!/usr/bin/python import time, os, stat, random, sys, logging, socket from twisted.python import failure sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname( os.path.abspath(__file__))))) from flud.FludNode import FludNode from flud.protocol.FludClient import FludClient from flud.protocol.FludCommUtil im...
Python
#!/usr/bin/python import time, os, stat, random, sys, logging, socket, shutil, tempfile from binascii import crc32 from StringIO import StringIO from twisted.python import failure sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname( os.path.abspath(__file__))))) from flud.FludNode import FludNode from fl...
Python
#!/usr/bin/python """ FludFileOpTest.py, (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. System tests for FludFileOperations """ import sys, os, time, logging, tempfile, shutil from twisted.internet import reactor sys.path.append(os.p...
Python
#!/usr/bin/python import time, os, stat, random, sys, logging, socket, tempfile from twisted.python import failure from StringIO import StringIO from zlib import crc32 sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname( os.path.abspath(__file__))))) from flud.FludNode import FludNode from flud.protocol....
Python
#!/usr/bin/python import time, os, stat, random, sys, logging, socket from twisted.python import failure from twisted.internet import defer sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname( os.path.abspath(__file__))))) from flud.FludNode import FludNode from flud.protocol.FludClient import FludClient...
Python
#!/usr/bin/python import time, os, stat, random, sys, logging, socket from twisted.python import failure from twisted.internet import defer sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname( os.path.abspath(__file__))))) from flud.FludNode import FludNode from flud.protocol.FludClient import FludClient...
Python
#!/usr/bin/python import time, os, stat, random, sys, logging, socket, shutil, tempfile from binascii import crc32 from StringIO import StringIO from twisted.python import failure sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname( os.path.abspath(__file__))))) from flud.FludNode import FludNode from fl...
Python
#!/usr/bin/python """ FludFileOpTest.py, (c) 2003-2006 Alen Peacock. This program is distributed under the terms of the GNU General Public License (the GPL), version 3. System tests for FludFileOperations """ import sys, os, time, logging, tempfile, shutil from twisted.internet import reactor sys.path.append(os.p...
Python
#!/usr/bin/python import time, os, stat, random, sys, logging, socket from twisted.python import failure sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname( os.path.abspath(__file__))))) from flud.FludNode import FludNode from flud.protocol.FludClient import FludClient from flud.protocol.FludCommUtil im...
Python
#!/usr/bin/python import tarfile, tempfile, random, os, sys import gzip from Crypto.Hash import SHA256 sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname( os.path.abspath(__file__))))) from flud.fencode import fencode import flud.TarfileUtils as TarfileUtils def maketarball(numfiles, avgsize, hashnames...
Python
#!/usr/bin/python import time, os, stat, random, sys, logging, socket from twisted.python import failure from twisted.internet import defer sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname( os.path.abspath(__file__))))) import flud.FludCrypto from flud.FludNode import FludNode from flud.protocol.FludC...
Python
#!/usr/bin/python import time, os, stat, random, sys, logging, socket, tempfile from twisted.python import failure from StringIO import StringIO from zlib import crc32 sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname( os.path.abspath(__file__))))) from flud.FludNode import FludNode from flud.protocol....
Python