Saravanan666/pypi-org huggingface dataset:
Package: the-retry
the-retryRetry decorator for both synchronous and asynchronous functions.FeaturesNo external dependencies.Supports asyncio. Works with both synchronous and asynchronous functions.Exponential backoff with jitter.Able to call custom function or await custom coroutine on exception occurs.Installationpipinstallthe-retryDecorator parametersArguments:expected_exception:
exception or tuple of exceptions (default BaseException).Keyword arguments:attempts:
how much times the function will be retried, value -1 is infinite (default 2).backoff:
time interval between theattemps(default 0).exponential_backoff:current_backoff = backoff * 2 ** retries(default False).ignore_exceptions:
only log error but not raise exception ifattemptsexceeds (default False).jitter:
maximum value of deviation from thecurrent_backoff(default 0).maximum_backoff:current_backoff = min(current_backoff, maximum_backoff)(default 0).on_exception:
function that called or await on error occurs (default None).
Be aware if a decorating function is synchronouson_exceptionfunction must be
synchronous too and accordingly for asynchronous functionon_exceptionmust be
asynchronous.ExamplesImmediately retry once without delay on any exception occursfromthe_retryimportretry@retry()defsome_function():print("some function")Immediately retry once without delay on ValueError occurs with calling side effect functionfromthe_retryimportretrydefside_effect():print("side effect")@retry(expected_exception=ValueError,on_exception=side_effect)defsome_function():print("some function")Retry async function with 10 attempts with exponential backoff on ValueError or AttributeError occurs with calling side effect coroutinefromthe_retryimportretryasyncdefasync_side_effect():print("async side effect")@retry(expected_exception=(ValueError,AttributeError)attempts=10,backoff=1,exponential_backoff=True,jitter=1,maximum_backoff=60,on_exception=async_side_effect,)asyncdefasync_some_function():print("some function")
Package: thermal-conductivity-step
SEAMM Thermal Conductivity Plug-inA SEAMM plug-in for Thermal ConductivityFree software: BSD-3-ClauseDocumentation:https://molssi-seamm.github.io/thermal_conductivity_step/index.htmlCode:https://github.com/molssi-seamm/thermal_conductivity_stepFeaturesPlease edit this section!AcknowledgementsThis package was created with themolssi-seamm/cookiecutter-seamm-plugintool, which
is based on the excellentCookiecutter.Developed by the Molecular Sciences Software Institute (MolSSI),
which receives funding from theNational Science Foundationunder
award CHE-2136142.History2024.1.5 – Bugfix: Thermal conductivityIf the Helfand moments fit in the thermal conductivity step failed it stopped the
entire job. This is correct, as well as some of the undelying causes for
convergence issues.2023.5.29 – Converged with general approach for trajectory analysis2023.5.6 – BugfixFixed an error handling Nan’s and Inf’s that caused a crashAdded the predictions from the derivatives of the Helfand moments to the output to
give a better feel for the quality of the results.2023.5.5 – Improved analysisConsiderable improvements to the analysis, results now seem solidFixed issues with fitting the linear portion of the Helfand momentsAdded plot of the slope from the Helfand moments, which is similar to the
Green-Kubo integral.Cleaned up both the output and graphs.2023.4.24 – Initial working versionInitial tests seem to work but needs more thorough testing.Needs documentation!2023.4.18 (2023-04-18)Plug-in created using the SEAMM plug-in cookiecutter.
Package: thermalprinter
Python module to manage the DP-EH600 thermal printer (the one sold by AdaFruit).Python 3+ onlyand PEP8 compliant;this is a clean follow of the technical manual with few helpers;and there is acomplete, and beautiful, documentation:)also several usefulrecipes;contibutorsare welcome, check thedeveloper guide!InstallationAs simple as:python3-mpipinstall--upgrade--userthermalprinterUsageAn example is better than thousand words:fromPILimportImagefromThermalPrinterimport*withThermalPrinter(port='/dev/ttyAMA0')asprinter:# Pictureprinter.image(Image.open('gnu.png'))# Bar codesprinter.barcode_height(80)printer.barcode_position(BarCodePosition.BELOW)printer.barcode_width(3)printer.barcode('012345678901',BarCode.EAN13)# Stylesprinter.out('Bold',bold=True)printer.out('Double height',double_height=True)printer.out('Double width',double_width=True)printer.out('Inverse',inverse=True)printer.out('Rotate 90°',rotate=True,codepage=CodePage.ISO_8859_1)printer.out('Strike',strike=True)printer.out('Underline',underline=1)printer.out('Upside down',upside_down=True)# Chinese (almost all alphabets exist)printer.out('现代汉语通用字表',chinese=True,chinese_format=Chinese.UTF_8)# Greek (excepted the ΐ character)printer.out('Στην υγειά μας!',codepage=CodePage.CP737)# Accentsprinter.out('Voilà !',justify='C',strike=True,underline=2,codepage=CodePage.ISO_8859_1)# Line feedsprinter.feed(2)
Package: thermic
Thermic
Pure Python interface to linux temperature sensorsMIT Licensed
Simple to Use
Pure python
Python 2 and Python 3 compliantfrom thermic import find_sensors
sensors = find_sensors()
print(sensors[0].label) # Name of the sensor
print(sensors[0].tempc) # temperature in Celcius
print(sensors[0].tempf) # Temperature in Farenheit
print(sensors[0].raw)   # temperature in MilliDegrees Celcius
Package: thermistor-utils
Thermistor utilitiesA python based library implementing models to convert thermistor values
from temperature to resistance and vice versa.Steinhart--Hart modelImplementation precisionHow to use# import the Steinhart--Hart and or the Beta converterfromthermistor_utilsimportSH_converterCreate a converter from A, B, and C coefficients:A,B,C=(0.0008402250578523375,0.00025963477647737156,1.5674403473853433e-07,)conv=SH_converter(A,B,C)If they're not available the converter could compute the values from
three evenly spaced readings of temperature and resistance.Create the converter from temp/res readings:readings=((0,27445),(25,10000),(50,4160),)conv=SH_converter.from_points(readings)Printing the coefficients in a form suitable for subsequent use in
python and C:print(repr(conv))# SH_converter(0.0008402250578523375, 0.00025963477647737156, 1.5674403473853433e-07, 0, 50)print(conv.to_cstr())# {0.0008402250578523375, 0.00025963477647737156, 1.5674403473853433e-07, 0, 50}# compact but less precise representation# (inverse of coefficients and no temperature range)print(conv.to_cstr(compact=True,with_temps=False))# {1./1190, 1./3852, 1./6379828}Use the reference implementation in C (example-1.c):#include<stdio.h>#include<thermistor_utils.h>intmain(void){structsh_scoefficients={0.0008402250578523375,0.00025963477647737156,1.5674403473853433e-07};// 25C to Ohm and 10k Ohm to CelsiusdoubleR_at_25=sh_resistance(coefficients,25),T_at_10000=sh_temperature(coefficients,10000);printf("25 Celsius -> %.0f Ohms\n",R_at_25);printf("10k Ohms   -> %.0f Celsius\n",T_at_10000);}To compile and run from the examples directory:$mkdir-p../bin
$gcc-o../bin/example-1\-I../src/include\../src/sh_converter.c\-lm\example-1.c

$../bin/example-125Celsius->10000Ohms
10kOhms->25CelsiusBeta modelImplementation precisionHow to use# import the Steinhart--Hart and or the Beta converterfromthermistor_utilsimportBeta_converterCreate a converter from beta values:beta,R0,T0=(3380,10000,25)conv=Beta_converter(beta,R0,T0)Printing the beta values in a form suitable for subsequent use in
python and C:print(repr(conv))# Beta_converter(3380, 10000, 25)print(conv.to_cstr())# {3380, 10000, 25}Use the reference implementation in C (example-2.c):#include<stdio.h>#include<thermistor_utils.h>intmain(void){structbeta_sbpar={3380,10000,25};// 25C to Ohm and 10k Ohm to CelsiusdoubleR_at_25=beta_resistance(bpar,25),T_at_10000=beta_temperature(bpar,10000);printf("25 Celsius -> %.0f Ohms\n",R_at_25);printf("10k Ohms   -> %.0f Celsius\n",T_at_10000);}To compile and run from the examples directory:$mkdir-p../bin
$gcc-o../bin/example-2\-I../src/include\../src/beta_converter.c\-lm\example-2.c

$../bin/example-225Celsius->10000Ohms
10kOhms->25Celsius
Package: thermite
Note: this package is under heavy development and breaking changes are to be expected.Welcome to Thermite, a CLI generatorWhat are the main things that this package provides.run any python function or class that has type annotationsUse docstrings as the source of helpnot require changing the signature of existing functions to customizeallow for classes as parameter annotations in functions that will be translated
into grouped optionsAllow for custom classes to be used as type annotations.provides the possibility to change the defaults in the CLI by using
YAML or JSON definitions (an easy way to use configuration files with CLIs)provides a plugin-interface to extend functionality (e.g. the help itself
is just a plugin)InstallationThe package is available on pip, so can be installed withpipinstallthermiteGetting startedFor any function, class or instance, just usefromthermiteimportrunif__name__=="__main__":run(obj)and the package does the rest.Customization, other examples and docsFor more documentation on how to customize the CLI, other options
and examples visit thedocumentation.Other CLI generatorsThere are already lots of CLI generators for python, many with lots of
usage and great functionality that have inspired this package. Check them out.argparseclicktyperfiredocopt
Package: thermobeacon-ble
thermobeacon-bleParser for Thermobeacon devicesInstallationInstall this via pip (or your favourite package manager):pip install thermobeacon-bleContributors ✨Thanks goes to these wonderful people (emoji key):This project follows theall-contributorsspecification. Contributions of any kind welcome!CreditsThis package was created withCookiecutterand thebrowniebroke/cookiecutter-pypackageproject template.
Package: thermochem
Thermochem is a package with some useful modules for Thermodynamics
and Thermochemistry. The following tools are provided:IAPWS data and functions to compute the thermodynamic properties of
water an steam.Alexander Burcat’s database and routines to compute the properties
of more than 1300 substances from 200K to 6000K.JANAF thermodynamic data pulled from NIST website to compute
properties of more than 1200 substances from 0K to 2500K.Simple reactor for modeling combustion of single organic compounds.Moist gas model.RequirementsPython 2.7 or Python 3.5+Linux, Windows, MacOS, BSD, and any other platform with Python support and can
install the required dependencies.InstallThe easy and quick way:$ pip install thermochemFor more details and alternate installation instructions, see theinstallation
instructions.DependenciesThis packages depends on the following modules to run. These should be installed
automatically with any of the installation instructions provided.NumPy >= 1.2.1SciPy >= 0.6.0pandas >= 0.17.0DevelopmentIf you want to further develop thermochem you must install pytest for testing.LicenseThermochem is licensed under the BSD license.
Package: thermoencoder
thermoencoderTable of ContentsInstallationUsageCommandsSupportContributingInstallationThethermoencodergit repois available asPyPi packagepip install thermoencoderUsageCheck theexamplesfolder for notebooks.X = [[0, 0], [1, 1], [3, 5]]  # two ordinal features with 3 samples
from thermoencoder import ThermoEncoder
enc = ThermoEncoder()
Z = enc.fit_transform(X)  # encode
X_back = enc.inverse_transform(Z)  # decodeCommandsCheck syntax:flake8 --ignore=F401Run Unit Tests:python -W ignore -m unittest discoverRemove.pycfiles:find . -type f -name "*.pyc" | xargs rmRemove__pycache__folders:find . -type d -name "__pycache__" | xargs rm -rfUpload to PyPi:python setup.py sdist upload -r pypiUpload to PyPi with twine:python setup.py sdist && twine upload -r pypi dist/*DebuggingNotebooks to profile python code are in theprofilefolderSupportPleaseopen an issuefor support.ContributingPlease contribute usingGithub Flow. Create a branch, add commits, andopen a pull request.
Package: thermofeel
thermofeel(pronouncedthermo-feel)A library to calculate human thermal comfort indexes.Currently calculates the thermal indexes:Universal Thermal Climate IndexApparent TemperatureHeat Index AdjustedHeat Index SimplifiedHumidexNormal Effective TemperatureWet Bulb Globe TemperatureWet Bulb Globe Temperature SimpleWind ChillIn support of the above indexes, it also calculates:Globe TemperatureMean Radiant TemperatureMean Radiant Temperature from Globe TemperatureRelative Humidity PercentageSaturation vapour pressureWet Bulb TemperaturePyPiInstall with:$ pip install thermofeelTestingSystem dependenciesthermofeel core functions depend on:numpyearthkit-meteo > 0.0.1 - for solar zenith angle calculationOptionally, thermofeel depends on:pytest - for unit testingRelease notesThermofeel 2.0 brings a number of changes to the underlying code but most importantly to the API.Consequently, downstream packages using thermofeel 1.* will require code changes to migrate to version 2.0 and beyond.The main changes are:standardisation of input and output variablesstandardisation of variable namesremoval of dependency on numba for code accelerationremoval of solar zenith angle calculation (now provided by earthkit-meteo)several bug fixes and improvementsPlease consultChangeLogfor more details.ContributingThe main repository is hosted onGitHub. Testing, bug reports and contributions are highly welcomed and appreciated.Please see theContributingdocument for the best way to help.Current developers:Claudia Di Napoli -ECMWFTiago Quintino -ECMWFSee also thecontributorsfor a more complete list.LicenseCopyright 2021 European Centre for Medium-Range Weather Forecasts (ECMWF)Licensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.In applying this licence, ECMWF does not waive the privileges and immunities
granted to it by virtue of its status as an intergovernmental organisation nor
does it submit to any jurisdiction.CitingIn publications, please use our paper in SoftwareX as the main citation forthermofeel:Brimicombe, C., Di Napoli, C., Quintino, T., Pappenberger, F., Cornforth, R., & Cloke, H. L. (2022).
Thermofeel: A python thermal comfort indices library. SoftwareX, 18, 101005.https://doi.org/10.1016/j.softx.2022.101005[cite]To citethermofeelthe code currently please use:Brimicombe, C., Di Napoli, C., Quintino, T., Pappenberger, F., Cornforth, R., & Cloke, H. L. (2021).thermofeel: a python thermal comfort indices libraryhttps://doi.org/10.21957/mp6v-fd16AcknowledgementsPast and current funding and support forthermofeelis listed in the adjoningAcknowledgements
Package: thermometer
===python thermometers===idea: read data from various thermometersreality: we have one dallas 18s20 connected via 1wire what is mostly used on  RaspberryPiPULL REQUEST FOR ANOTHER DEVICES ARE WELCOMEsupported logger----------------'thermometer.d18s20.w1' write data from thermometer to logger as list of values, this allow to use i.e. fluent forstore data into graphite or another type of data storage.instalation------------```pip install thermometer```basic usage-----------measured values are in degrees of Celsius```>>> from thermometer.dallas_18s20 import w1>>> w = w1.dallas_18s20()>>> w.get_temps_aliases()[('870155007fff0c108a', 24.437), ('080255007fff0c10a5', 32.5)]```alias usage-----------measured values are in degrees of Celsius```>>> from thermometer.dallas_18s20 import w1>>> w = w1.dallas_18s20()>>> w.alias('870155007fff0c108a', 'temp1')>>> w.get_temps_aliases()[('temp1', 24.437), ('080255007fff0c10a5', 32.5)]```Note about Dallas 18S20 and 18B20---------------------------------during development I found out there are two Dallas thermometers 18S20 and 18B20- *DS18S20* High-Precision 1-Wire Digital Thermometer, 10.000010EF0000- *DS18B20* Programmable Resolution 1-Wire Digital Thermometer, 28.000028D70000so far name was badly chosen, for 18s20 it was wrong, regarding historical instalations I decide to let it be.Interesting resource about 1Wire devices: http://owfs.sourceforge.net/adapters/patch.html
Package: thermopot
ThermoPot: An ab-initio thermodynamic modelling package⚠️ This repository is still in development, and some functionality is untested. Use with caution.Software for ab-initio thermodynamic modelling of material formation and decomposition.📚 The documentation ishere.🖊 If you use this package for your own work pleasecite accordingly.🔄 This code is made available under the GNU General Public Licence (GPL) v3.This work adapts and extends a previous repository developed by Adam Jackson:Thermodynamic model of CZTS.
Package: thermopro-ble
Thermopro BLEThermopro BLE SensorsInstallationInstall this via pip (or your favourite package manager):pip install thermopro-bleContributors ✨Thanks goes to these wonderful people (emoji key):This project follows theall-contributorsspecification. Contributions of any kind welcome!CreditsThis package was created withCookiecutterand thebrowniebroke/cookiecutter-pypackageproject template.
Package: thermopy
Python library for thermodynamics and other handy tools.Thermodynamics (all these properties as function of temperature for thousands
of compounds):Specific heat capacityEnthalpyEntropyTemperature independent data:Molecular weightEnthalpy of formationand much more.For water pressure is also an input (higher accuracy).Modelling of chemical reactions is also present. Main features:Equilibrium constant as a function of temperatureHeat of reaction as a function of temperatureHandy tools:Units conversion moduleHundreds of physical constantsSee the documentation for further details and examples.
Package: thermopy2
Python library for thermodynamics and other handy tools.Thermodynamics (all these properties as function of temperature for thousands
of compounds):Specific heat capacityEnthalpyEntropyTemperature independent data:Molecular weightEnthalpy of formationand much more.For water pressure is also an input (higher accuracy).Modelling of chemical reactions is also present. Main features:Equilibrium constant as a function of temperatureHeat of reaction as a function of temperatureHandy tools:Units conversion moduleHundreds of physical constantsSee the documentation for further details and examples.
Package: thermopy3
Python library for thermodynamics and other handy tools.Thermodynamics (all these properties as function of temperature for thousands of compounds):Specific heat capacityEnthalpyEntropyTemperature independent data:Molecular weightEnthalpy of formationand much more.For water pressure is also an input (higher accuracy).Modelling of chemical reactions is also present. Main features:Equilibrium constant as a function of temperatureHeat of reaction as a function of temperatureHandy tools:Units conversion moduleHundreds of physical constantsSee the documentation for further details and examples.Currently running ‘pip3 install thermopy3’ as root install files to a weird folder. Try getting the file from github and installing as normal user:https://github.com/fmv1992/thermopy3
Package: thermos-cli
## Thermos CLIA flask command line interface built on python.## NoteIf you wish to collaborate,visit https://github.com/mwangi-njuguna/thermos-cli.## PrerequisitesBoth the CLI and generated project have dependencies that require python3.6.## Table of Contents* [Installation](#installation)* [Usage](#usage)* [Generating a New Flask Application](#Generating a new flask project)* [Generating Templates and Blueprints](#Generating templates and blueprints)* [Documentation](#documentation)* [License](#license)## Installation**BEFORE YOU INSTALL:** please make sure you have python3.6 installed.```bashpip install -e .```## Usage```bashthermos --help```### Generating a Flask Project```bashthermos create PROJECT-NAME```### Generating Templates and BlueprintsYou can use the `thermos create app APPNAME` to create a new application structure:```bashthermos create template TEMPLATENAME# Navigate into the new appcd NAMEOFAPP# if in the directory src/app/nameofapp/ and you runthermos create blueprint BLUEPRINTNAME```### Working with master```bashgit clone https://github.com/mwangi-njuguna/thermos-cli.cd thermos-clipip install -e .````pip install -e .` will install this cli.Now you can use `thermos-cli` via the command line:```bashthermos createthermos -h | --helpthermos -v | --version```## DocumentationThe documentation for the thermos CLI is located in this repo's [wiki](https://github.com/gnhkjm/).## LicenseMIT
Package: thermostate
ThermoStateThis package provides a wrapper aroundCoolPropthat integratesPintfor easy thermodynamic state management in any unit system.InstallationCondaThe preferred installation method is to useconda. Using Conda, ThermoState can be installed for Python 3.9 and up. You can create a new environment with:condacreate-nthermostate-cconda-forgethermostatePipAlternatively, ThermoState can be installed withpip.python-mpipinstallthermostateFrom SourceThermoState is a pure-Python package that supports any Python version 3.9 and higher. To install from source, clone the source code repository and install usingpip.gitclonehttps://github.com/bryanwweber/thermostatecdthermostate
python-mpipinstall.DocumentationDocumentation can be found athttps://thermostate.readthedocs.io/. The documentation contains a shorttutorial,examples, andAPI documentationfor the package.CitationIf you have used ThermoState in your work, we would appreciate including a citation to the software! ThermoState has been published inJOSE, available at the link below.For those using Bib(La)TeX, you can use the following entry@article{weber_thermostate_2018,title={{ThermoState}: {A} state manager for thermodynamics courses},volume={1},issn={2577-3569},shorttitle={{ThermoState}},url={https://jose.theoj.org/papers/10.21105/jose.00033},doi={10.21105/jose.00033},number={8},urldate={2018-10-24},journal={Journal of Open Source Education},author={Weber, Bryan},month=oct,year={2018},pages={33}}Code of Conduct & ContributingWe welcome contributions from anyone in the community. Please look at theContributing instructionsfor more information. This project follows theContributor Covenant Code of Conduct, version 1.4. In short, be excellent to each other.Continuous Integration StatusAnaconda Package Version