Skip to main content

A personal library of generally useful functions, methods and classes

Project description

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="")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nayangeneralutils-1.4.14.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nayangeneralutils-1.4.14-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file nayangeneralutils-1.4.14.tar.gz.

File metadata

  • Download URL: nayangeneralutils-1.4.14.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for nayangeneralutils-1.4.14.tar.gz
Algorithm Hash digest
SHA256 9a5fd3f4a136497667f998a44e716e1f5782ede1a99dbf8e281a8a427d113f8f
MD5 62a994ba01a4a59d4fa5eff3831b998f
BLAKE2b-256 3cd7e0742380ef97babfae6aa00a778d35e331702eeec4b1016d660bbe80d2b9

See more details on using hashes here.

Provenance

The following attestation bundles were made for nayangeneralutils-1.4.14.tar.gz:

Publisher: publish.yml on NayanDusoruth/NayanGeneralUtils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nayangeneralutils-1.4.14-py3-none-any.whl.

File metadata

File hashes

Hashes for nayangeneralutils-1.4.14-py3-none-any.whl
Algorithm Hash digest
SHA256 5bbdaff1da69232b17de62b36908667af0457cfef023f0e3f952a1b01f1f64ce
MD5 c4c8fb34769d75ac684220b41499621f
BLAKE2b-256 f9e62e6f402c6de6cff7038f5cfc759114f297eab59e789c7cd9be2950dda347

See more details on using hashes here.

Provenance

The following attestation bundles were made for nayangeneralutils-1.4.14-py3-none-any.whl:

Publisher: publish.yml on NayanDusoruth/NayanGeneralUtils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page