Skip to content

Instantly share code, notes, and snippets.

View xavierigneous's full-sized avatar
💭
Contemplating Life

Vishwanath Kannan xavierigneous

💭
Contemplating Life
  • Bank of America
  • Ahmedabad
View GitHub Profile
@nicwolff
nicwolff / XML_breaker.py
Last active June 26, 2024 23:25
Python script to break large XML files
import os
import sys
from xml.sax import parse
from xml.sax.saxutils import XMLGenerator
class CycleFile(object):
def __init__(self, filename):
self.basename, self.ext = os.path.splitext(filename)
self.index = 0