Skip to content

Instantly share code, notes, and snippets.

View magnatm's full-sized avatar
🎯
Focusing

magnatm

🎯
Focusing
View GitHub Profile
@nicwolff
nicwolff / XML_breaker.py
Last active April 2, 2025 20:05
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