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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nayangeneralutils-1.5.tar.gz.
File metadata
- Download URL: nayangeneralutils-1.5.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
906383694660f0aaef043eb591070277af1073ba456f697481d7df524f889e4c
|
|
| MD5 |
cba9c05bac50308abef1b745406297a8
|
|
| BLAKE2b-256 |
478cdbdd089b77fbec78efe27fc073d0f55ab89fef5a95c729040a136723e0f6
|
Provenance
The following attestation bundles were made for nayangeneralutils-1.5.tar.gz:
Publisher:
publish.yml on NayanDusoruth/NayanGeneralUtils
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nayangeneralutils-1.5.tar.gz -
Subject digest:
906383694660f0aaef043eb591070277af1073ba456f697481d7df524f889e4c - Sigstore transparency entry: 788416005
- Sigstore integration time:
-
Permalink:
NayanDusoruth/NayanGeneralUtils@d1cba5c42de2bb93ea6c232b88af2c8b28e18a36 -
Branch / Tag:
refs/tags/v1.5 - Owner: https://github.com/NayanDusoruth
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d1cba5c42de2bb93ea6c232b88af2c8b28e18a36 -
Trigger Event:
release
-
Statement type:
File details
Details for the file nayangeneralutils-1.5-py3-none-any.whl.
File metadata
- Download URL: nayangeneralutils-1.5-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57f39b456f25cd9a16937be54bbab265dee72144b00a981478759efe6fdbd954
|
|
| MD5 |
76a51b2d4e13e1cfcc1f5383c122227e
|
|
| BLAKE2b-256 |
d7b08aeeb4fe36e03a487df4367919cb274ff43bb9a654826809619a142dfc34
|
Provenance
The following attestation bundles were made for nayangeneralutils-1.5-py3-none-any.whl:
Publisher:
publish.yml on NayanDusoruth/NayanGeneralUtils
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nayangeneralutils-1.5-py3-none-any.whl -
Subject digest:
57f39b456f25cd9a16937be54bbab265dee72144b00a981478759efe6fdbd954 - Sigstore transparency entry: 788416009
- Sigstore integration time:
-
Permalink:
NayanDusoruth/NayanGeneralUtils@d1cba5c42de2bb93ea6c232b88af2c8b28e18a36 -
Branch / Tag:
refs/tags/v1.5 - Owner: https://github.com/NayanDusoruth
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d1cba5c42de2bb93ea6c232b88af2c8b28e18a36 -
Trigger Event:
release
-
Statement type: