semvec/pypi-packages huggingface dataset:
NayanGeneralUtils 1.6
A personal library of generally useful functions, methods and classes
License: MIT

This is a personal python library including assorted general utilities i've standardised for my own reuse.

It currently includes the following modules:

fileHandling - Assorted functions to streamline reading and writing data with CSV, txt, and fig.png
	createFolder(directory, folderName)
	getData(filePath, fileName)
	saveCSV(filepath, filename, dataFrame)
	saveTxT(filepath, filename, text)
	saveFigure(directory, fileName, fig)

inputOutput - Assorted functions streamlining IO functions
	IObool(text, default=True, ynDict = {"y":True, "n":False})
	IOint(text, default=1)
	IOfloat(text, default=0)
	IOsaveTxT(text, fileName)
	IOsaveCSV(data, fileName)
	IOsaveFig(fig, fileName)

progress - Progress class; implements a basic timer object
	class progress
		__init__(self, startIt, totalIt)
		cls(self)
		increment(self, increment=1)
		display(self, title="", percentDisplay=True, rounding=2)
		timeElapsed(self)

plotting - includes a plotter class which streamlines matplotlib figure generation
	class plotter
		__init__(self, markerWidth=0.8, markerArea=12, gridColor='k', gridStyle='-',gridWidth=0.1, errCapsize=3, histWidth=0.5)
		display(self)
		saveFig(self, directory, fileName)
		
		axisLabels(self, xLabel="xData", yLabel="yData")
		axisTicks(self, xTicks, yTicks)
		gridline(self)
		legend(self, loc="upper right")
		
		scatter(self, xData, yData, marker = 'x', color='k', label="")
		scatterYer(self, xData, yData, yErr, color='k', label="")
		scatterXer(self, xData, yData, xErr, color='k', label="")
		scatterXYer(self, xData, yData, xErr, yErr, color='k', label="")
		histogram(self,xData, bins=10, color="r", label="")
		
EquationHandler - A module intended for symPy equation and expression handling
	sumExpressions(expressions)
	errorPropagationTerm(expression, variable)
	errorPropagate(expression, returnSymbols=False)

misc - Miscelaneous utilities
	strLinesConcatenate(strList, current="")
worksheet-iterator 0.1.5
A chainable worksheet iterator utility based on XlsxWriter.
License: MIT
Requires Python: >=3.9

# worksheet-iterator

[English](README.md) | [中文](README.zh_CN.md)

`worksheet-iterator` provides a `WorkSheetIterator` class based on XlsxWriter, which lets you write and format cells in a worksheet with chainable calls.

## English

### Installation

```bash
pip install worksheet-iterator
```

### Usage example

The following example is the same as `demo.py` in the repository root. It shows how to use `WorkSheetIterator` to write data to a worksheet in a chainable way:

```python
from worksheet_iterator import WorkSheetIterator

import xlsxwriter

wb = xlsxwriter.Workbook("demo.xlsx")

# Create a worksheet iterator that points to "Sheet1"
it = WorkSheetIterator(wb, "Sheet1")

# Write "ok" to the first cell, then move to the next column and write 42
it.set_value("ok").next_column().set_value(42)

wb.close()
```

### Key features

- Utility for writing Excel worksheets based on XlsxWriter
- Supports chainable calls (such as `set_value().next_column().set_value()`)
- Makes it easier to organize and maintain complex Excel writing logic