Pinned Loading
-
example-TimedRotatingFileHandler.py
example-TimedRotatingFileHandler.py 1#!/usr/bin/env python
2#-------------------------------------------------------------------------------
3# Name: example-TimedRotatingFileHandler.py
4# Purpose: Write log using TimedRotatingFileHandler
5# Author: Adrian Jones
-
python-docx-replace-text-and-retain-...
python-docx-replace-text-and-retain-style.py 1def docx_replace(doc, data):
2paragraphs = list(doc.paragraphs)
3for t in doc.tables:
4for row in t.rows:
5for cell in row.cells:
-
docx-find-replace.py
docx-find-replace.py 1import docx
23# general routine for finding and replacing text in a docx
45def docx_find_replace_text(search_text, replace_text, paragraphs):
-
Check a mount point on Linux, attemp...
Check a mount point on Linux, attempt some recovery if the directory contains files then attempt mount -a 1#!/usr/bin/env sh
23# check if share is mounted, attempt recovery and remount
45if [ -z "$1" ]; then
-
openpyxl (2.4.8) sheet-to-dict like ...
openpyxl (2.4.8) sheet-to-dict like the csv DictReader - based on https://gist.github.com/mdellavo/853413 1from openpyxl import load_workbook
23def XLSXDictReader(f):
4book = load_workbook(f)
5sheet = book.active
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.