Saravanan666/pypi-org huggingface dataset:
Package: tephiplt
Welcome to my repository for education and outreach code.  Below are details about code for tephigram plotting and global warming experimentsTephigram PlottingThe tephi_plt code allows users to plot the following isopleths as presented in tephigrams: temperature, potential temperature, wet bulb potential temperature, pressure and water mixing ratio.  To ensure dependecies are installed, the pip setup is recommended:i) at the command line create a virtual environment in a suitable location (the environment will also contain the tephigram plotting package) using at least python 3: python3 -m venv tephi_envii) activate this virtual environment: source tephi_env/bin/activateiii) ensure pip up to date in this environment: pip install --upgrade pipiv) at the command line change to the site_packages directory of this environment (this is where the tephigram plotting package will be installed)v) install the package: python -m pip install --upgrade tephipltYou are now ready to run the package:i) when sure of being inside the site_packages directory of the virtual environment, run code: python tephiplt
Package: teplotstyles
Tourism Economics Styles for PythonThis package contains a styling theme for creating Tourism Economics plots in Python. The package assumes that plots are produced using matplotlib.UsageInstall font files. Install Lato font from thefontsdirectory.Install styles package by typingpip install testyles.Import the styles into your project or notebookfrom testyles import styles
styles.init_styles()Create your plots.ExamplesSeeexamples.ipynbfor a demo.Author & ContributorsContact Jack Minchin for any assistance using this package.
Package: ter2
iter2This library provides implementation ofrich-iteratorconcept, inspired byRust's std::iter::Iterator,Java's Streamandmore-itertools library.UsageThe main object of library isiter2. It behaves like built-initerexcept that it creates an instance of rich-iterator.iter2(['dzen','of','python']).map(str.capitalize).join(' ')# 'Dzen Of Python'Everymethod of rich-iterator that returns new iterator makes original rich-iteratorinvalid, so itcannot be usedin any iteration process. This behaviour can be bypassed withrefmethod.Original iterator can be retrieved withrawmethod:orig=iter2.range(5).raw()tuple(orig)# (0, 1, 2, 3, 4)iter2has some methods to build sequences of values:iter2.of('a','b','cde').join()# 'abcde'iter2.range(5).map(str).join()# '01234'iter2.count_from(100).take(5).map(str).join('->')# '100->101->102->103->104'iter2.numeric_range(1.0,3.5,0.3).to_tuple()# (1.0, 1.3, 1.6, 1.9, 2.2, 2.5, 2.8, 3.1, 3.4)# and some other ...and some algorithm-methods on multiple iterables:iter2.cartesian_product(range(2),repeat=2).to_tuple()# ((0, 0), (0, 1), (1, 0), (1, 1))iter2.zip_longest(range(3),range(1,5),fillvalue=-1).to_tuple()# ((0, 1), (1, 2), (2, 3), (-1, 4))iter2.chain(['Somewhere','over'],['the','Rainbow']).join(' ')# 'Somewhere over the Rainbow# and some other ...ComparisonHere are some examples of usage compared with builtins-and-itertools-based
implementations:fromitertoolsimportislicefromfunctoolsimportreduceimportoperatorfromiter2importiter2square=lambdax:x**2odd=lambdax:x%2==1deffibonacci():a=b=1whileTrue:yieldaa,b=b,a+b# Example 1:cool_song='Somewhere over the Rainbow'# "from `cool_song` take capital characters and join them with '+'"iter2(cool_song).filter(str.isupper).join('+')# vs# "with '+' join capital characters from `cool_song`"'+'.join(filter(str.isupper,cool_song))# Example 2:# "for values in 0..99 take squares of them that are odd and sum them" (sounds like algo)iter2.range(100).map(square).filter(odd).sum()# vs# "sum values that are odd that are squares of values in 0..99" (sounds like shit)sum(filter(odd,map(square,range(100))))# "sum squares of values in 0..99 that are odd"sum(x**2forxinrange(100)ifx%2==1)# luckily, oddity doesn't change on squaring# Example 3: "Playing with infinite sequences"(iter2(fibonacci()).drop(10).filter(odd).map(square).take(5).product())# shortcut for `.fold(operator.mul)`# vsreduce(operator.mul,islice(map(square,filter(odd,islice(fibonacci(),10,None))),5))# (counting braces balance and commas positions)# (to make clearer):reduce(operator.mul,islice(map(square,filter(odd,islice(fibonacci(),10,None))),5))# or not?##Changelog####v1.1Tuple-wise methodsv1.0Initial
Package: teradataexportcsv
Package teradataexportcsvThis package uses the Teradata SQL Driver for Python (teradatasqlpackage) to export a table from the database to a CSV file.Copyright 2023 Teradata. All Rights Reserved.InstallationThis package depends on theteradatasqlpackage which is available from PyPI.Usepip installto download and install this package and its dependencies automatically.PlatformCommandmacOS or Linuxpip install teradataexportcsvWindowspy -3 -m pip install teradataexportcsvWhen upgrading to a new version of this package, you may need to use pip install's--no-cache-diroption to force the download of the new version.PlatformCommandmacOS or Linuxpip install --no-cache-dir -U teradataexportcsvWindowspy -3 -m pip install --no-cache-dir -U teradataexportcsvLicenseUse of this package is governed by theLicense Agreement for the teradataexportcsv package.When the package is installed, theLICENSEfile is placed in theteradataexportcsvdirectory under your Python installation directory.
Package: teramesh-hardware-tester
Hardware Tester v.0.3-betaPrerequisitesIf on RPi,pip install teramesh-hardware-tester[rpi], otherwisepip install teramesh-hardware-tester.If NOT on RPi, skip-x test_relays.List teststeramesh-hardware-test --no-tests-executeRun all tests on USB1teramesh-hardware-test -p /dev/ttyUSB1Run ONLY test_comms on USB1teramesh-hardware-test -p /dev/ttyUSB1 -i test_commsRun everything EXCEPT test_buzz on USB1teramesh-hardware-test -p /dev/ttyUSB1 -x test_buzzHardware ConfigurerUsed to set mesh config via CLI:$ teramesh-configure --help
Usage: teramesh-configure [OPTIONS]

Options:
  -p, --port TEXT                 USB port to open serial to.  [required]
  -b, --baudrate INTEGER          Port baudrate.
  --router-ssid TEXT              [required]
  --router-password TEXT          [required]
  --router-bssid TEXT
  --mesh-id TEXT                  [required]
  --mesh-password TEXT            [required]
  --mesh-type TEXT                One of: idle, root, node, leaf, sta.
  --channel INTEGER               0 for auto or 1-13 for set channel.
  --channel-switch-disable / --no-channel-switch-disable
  --router-switch-disable / --no-router-switch-disable
  --mqtt-uri TEXT                 [required]
  --help                          Show this message and exit.
Package: terbilang
terbilangterbilang adalah sebuah alat yang berfungsi untuk mengubah angka menjadi huruf terbilang. terbilang ditulis dengan Python dan dapat menerima masukan angka hingga 72 digit (999+ miliarnovemdesiliun).Instalasipip install terbilangPenggunaanterbilang dapat dijalankan langsung sebagai skrip Python:python -m terbilangJika anda adalah pengembang, terbilang juga bisa digunakan sebagai modul:fromterbilangimportTerbilangt=Terbilang()t.parse('1.000,00')print(t.getresult())# seribu koma nol nolt.parse('1001')print(t.getresult())# seribu satut.parse('121001')print(t.getresult())# seratus dua puluh satu ribu satuStandar pemisah desimal yang digunakan oleh terbilang adalah koma (,), ini bisa diganti pada saat inisiasi:t=Terbilang(sep='.')print(t.parse('1000.456').getresult())# seribu koma empat lima enamterbilang dibuat agar memiliki jangkauan yang lebar, tetapi diharapkan dapat membaca angka dengan lebihluwes. Sebagai contoh, "1000 triliun" tidak dibaca sebagai "satu kuadriliun" tetapi "seribu triliun". Sedangkan "1000 juta" tentu akan dibaca sebagai "satu miliar". terbilang akan menampilkan tanda koma jika bilangan sudah mencapai triliunan atau lebih untuk meningkatkan keterbacaan:t.parse('19000000000000000000071000002011000000')print(t.getresult())# sembilan belas undesiliun, tujuh puluh satu ribu triliun, dua miliar sebelas juta
Package: tercol
TerColTerCol is a small, pure Python library that allows you to color and style text output. TerCol has no dependencies and only requires Python 3.7 or newer. It also supports true color.Usageimporttercolprint(tercol.red('Red text'))print(tercol.blue('Blue text'))print(tercol.rgb(255,215,0,'Gold text using RGB'))print(tercol.hexa(0xffd700,'Gold text using HEX'))print(tercol.hsv(51,100,100,'Gold text using HSV'))print(tercol.rainbowtext('Rainbow text'))RequirementsTerCol only requires Python 3.7 or newer. No additional dependencies are needed.ProsSmall sizePure PythonNo dependenciesSimple automatic reset handlingIDE-autocomplete friendlyTrue color supportConsLimited support of nested stylesOnly supports Python 3.7+LicenseTerCol is licensed under the MIT license. See the LICENSE file for more info.
Package: tergraw
# TERminal GRaph drAWing
A dumb and simple graph printing in your terminal, implemented in Python.Here is the API:GRAPH = {‘a’: {‘b’, ‘c’}, ‘d’: {‘b’, ‘e’}, ‘f’: {‘g’}}print(’n’.join(tergraw.pretty_view(GRAPH, oriented=True)))Installation:pip install tergrawNeeds the [graphviz library](http://graphviz.org/Download..php) to be installed.links: tergraw on [github](http://github.com/aluriak/tergraw) and [pypi](http://pypi.python.org/pypi/tergraw)
Package: terick
## Terick - Help Library
Publishing this library in hope it will help someone as it helped me. Have fun!
<br><br>
Terick is script pack full of fuctions that might help in every script so you use less
power of brain on scripts that you would retype in every script anyway.
<br><br>### Update: <br>
- Upgraded:div_time()- Upgraded:short_num()- Added:short_bytes()- Changed:file_walk()name toscan_dir()
Package: teritorio
teritoriotwo iterable singletons thatCountriesandCurrencies, that contain all the
relevant ISO information about countries and currencies, respectively.In a nutshellInstallationThe easiest way is to usepoetryto manage your dependencies and addteritorioto them.
It requires Python 3.7.0+ to run.[tool.poetry.dependencies]teritorio="*"It is advised to always use the latest release, so that you’ll get the latest ISO codesUsageThere are two iterable singletons that can be imported fromteritorio:CountriesandCurrencies.fromteritorioimportCountriesfromteritorioimportCurrenciesVersioningThe project project adheres toCalendar Versioning.
The reason is that the data are dominated by political decisions,
making semantic versioning largely irrelevant.LinksDocumentationChangelog
Package: terka
Terka - Ter[minal] Ka[nban]terka(pronouncedtyorkaorТёрка) is a CLI tool that helps you manage your tasks
in the terminal. Create task, assign it to a project, update it status, write
comments and many more!Key features:Manage tasks within projects with CLI and TUI interfaceSupport for sprints (with story points assignment and time tracker)Manage meta-tasks with epics and storiesTag tasks and specify collaboratorsInstallationTo installterkarun the following command:pip install terkaIt will maketerkacommand available in your shell.Afterterkais installed runterka initto initialize necessary DB and
config files.UsageThe general structure ofterkacommand goes as follows:terka <command> <entity> [options]terkaexposes several commands (create,update,show,list, etc)
and entities (tasks,projects,users,sprints,epics,stories).
Please refer to thelist of commandsavailable in terka.
Package: term2048
term2048is a terminal-based version of2048.Installpip install term2048To upgrade a previous installation, use:pip install -U term2048To install viasnap:sudo snap install term2048Install from sourcegit clone https://github.com/bfontaine/term2048.git && cd term2048
[sudo] python setup.py installPlayterm2048Then use arrow keys to move. VI keys (h,j,k,l) are also supported.Use-hto check the list of available options, and--rulesfor the
game rules. Press<space>at any time during the game to pause it. You can
resume it later usingterm2048--resume.TestsClone this repo, then:[sudo] make deps
make checkNote: whileterm2048should work on Windows, tests are meant to run on
UNIX-like OSes andterm2048.keypress-related tests may fail on Windows.Contributions--versionflag added by @aminb--rulesflag added by @cardernShort-rand-vflags added by @yankuangshiResume feature added by @pravjSnap installation method added by @LaughingLovev0.2.0Python 2.6 and 3.x support by @shaunduncanTests instructions fixed by @olafleurSpawn probabilities fixed by @frankhColors improved by @idoschhjkl keys support by @aminbWindows support by @valtronAZ mode by @JosephRedfernThe first file-related tests were added by @taeram
Package: term2048-AI
term2048is a terminal-based version of2048.Installpip install term2048To upgrade a previous installation, use:pip install -U term2048Playterm2048Then use arrow keys to move. Since version 0.2.1 VI keys (h,j,k,l) are also
supported.Use-hto check the list of available options.TestsClone this repo, then:[sudo] make deps
make checkNote: whileterm2048should work on Windows, tests are meant to run on
UNIX-like OSes andterm2048.keypress-related tests could fail if run on
Windows.Contributions--versionflag added by @aminbv0.2.0Python 2.6 and 3.x support by @shaunduncanTests instructions fixed by @olafleurSpawn probabilities fixed by @frankhColors improved by @idoschhjkl keys support by @aminbWindows support by @valtronAZ mode by @JosephRedfernThe first file-related tests were added by @taeram
Package: term2md
term2mdThis is a text processing utility that will convert input containingANSI escape sequencesinto nearly-equivalent Markdown.This is not currently a universal converter, since Markdown cannot
express all of the formatting possible with the ANSI control
characters. However, it does a reasonable job of handling green, red,
and bold text.term2mdwas written originally so that output from a tool designed
for terminal output could be added via continuous integration as
comments on pull requests.Installation$ pip install term2mdIn addition to installing the core Python module, it will also install
aterm2mdexecutable script for you.
Package: term2web
term2web: terminal in a web page (Pythonversion)Notice française:https://q37.info/s/rhj9qmb9.This library is liketermcolor, but with all the text formatting possibilities ofCSS.Install (pip install term2web), import (from term2web import *) on the top of your program, and allprint(…)andinput(…)will be redirected to a web page.You can also launch:git clone http://github.com/epeios-q37/term2web-python,cd term2web-python,python3 main.py(or directlypython3 Basic.pyorpython3 WithCSS.py).Online demonstration:https://q37.info/s/kjjcfcp3.There are three other functions available.set_property(name,value)applies the CSS property of namenameand valuevalue.Example:set_property("font-style","italic")set_properties(properties)applies the CSS properties stored inpropertieswhich is a dictionary whose keys are property names, and values the corresponding property values.Example:set_properties({"text-decoration-line":"line-through","text-decoration-style":"wavy","text-decoration-color":"red"})reset_properties()removes all the CSS properties set by above functions.Basic.pyis an example with calls toprint(…)andinput(…), but without CSS formatting. Comment out theimport * from term2webfor the program to run in the usual way in a terminal.WithCSS.pyshows how CSS rules can be used to format the displayed text.You can still use the defaultprint(…)andinput(…)after animport builtinswithbuiltins.print(…)andbuiltins.input(…).Unlike other programs based on theAtlastoolkit, on which this library is based, it is not possible to simultaneously launch two or more instances of a program based on theterm2weblibrary. This is intentional, in order to keep this library simple to use.
Package: terma
# Terma
Short for Terminal Asistant, Terma is An NLP based CLI application that takes in input from the user in plain language, converts that into an appropriate bash command and finally displays this generated command along with follow up actions that the user can take.Inspired from theTranslate to bashfunctionality in [fig.io](https://fig.io/).# Setup## Pre-requisite
In this primitive version of terma, the queries typed out are sent directly to an [OpenAI](https://openai.com/) model. In order to use the openaI models you would have to [Sign up](https://platform.openai.com/signup) and get a token.Once you have obtained a token, you can either set it as an environment variable before you start as shown below.` exportOPENAI_TOKEN=<your_token_here>`The other option you have is to create a.termafile in your home directory and then just add the token there. This approach has the added advantage that you don’t have to remember to set the environment variable every time you want to use terma.## Instalation
Terma is a python based application and is available in [PyPI](https://pypi.org/project/terma/1.0.1/). This can be installed in any python virtual environment.` pip installterma==1.0.1`# Usage
After installing terma it can be used just by specifying the commandtermain the envrionment in which the package was installed. This starts an interactive CLI session. In the session you can type in the query you have in plain english and the application would generate a CLI query based on that.![terma example](https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExMzhiNDYxODRkMDAzNTFiNjFjZWUxMGNiM2UxNDc0NzlkODMwNjNmMCZjdD1n/fLIHvZfthjK3GYSxJx/giphy.gif)As seen in the above image, along with the generated comand terma also gives you choices on what to do with it. You can execute it in the session directly, copy it to the clipboard (for running in another terminal tab or sharing somewhere else) or you can just choose to continue with the conversation.To exit pressctrl-Dor just typeexit()orquit().# Features plannedI have a couple of ideas to improve the user experience around the application:Output validation: In some cases, the openAI model being used generates invalid commands based on the query inputed by the user. One approach that can be used to deal with it is to pass the output from model into another one that performs this sort of validation and ensures that the generated text is a valid os command.Interactive subprocess: Would enable the users to execute commands which trigger interactive processes from with in the terma console.Error Explanation: In case of errors, it would be handy to get an explanation for the errors along
with possible actions to resolve them.More suggestions and contributions welcome :)
Package: termagotchi
version number: 0.0.1
author: Cadel WatsonOverviewA Tamagotchi-inspired virtual petInstallation / UsageTo install use pip:$ pip install termagotchiOr clone the repo:$ git clonehttps://github.com/kdelwat/termagotchi.git$ python setup.py installContributingTBDExampleTBD
Package: termapp
termappCreate terminal applications with python.InstallationpipinstalltermappUsageimportasynciofromtermappimport__version__fromtermapp.stylesimportBOLDfromtermapp.asyncioimportcreate_appapp=create_app()asyncdefstart():awaitapp.write_line(f"termapp demo app v{__version__}",BOLD)awaitapp.write_line('This app demonstrates the capabilities of the termapp module.')awaitapp.info('info is used to introduce an important step in the app.')awaitapp.details('details can be used to add additional informationen.')awaitapp.warn('warn shows a warning')awaitapp.details('which can also be enhanced with a details message.')awaitapp.danger('error reports an error message')awaitapp.details('which can also be enhanced with a details message.')awaitapp.start_progress(show_completion=True)awaitasyncio.sleep(5)awaitapp.stop_progress()awaitapp.details('Longer operation finished.')awaitapp.success('success is used to indicate success')awaitapp.failure('failure is used to indicate the operation failed')asyncdefwarn_later():awaitasyncio.sleep(0.5)awaitapp.update_progress(completion=0.3,message='Some task to be done')awaitasyncio.sleep(0.5)awaitapp.update_progress(completion=0.6)awaitasyncio.sleep(0.5)awaitapp.update_progress(message='Another task to be done')awaitasyncio.sleep(0.5)awaitapp.update_progress(completion=0.9)awaitasyncio.sleep(1)awaitapp.warn('Something unexpected happened')asyncdefmain():returnawaitasyncio.gather(start(),warn_later())asyncio.run(main())LicenseCopyright 2022 Alexander Metzner.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.
Package: termate
TermateYour Python companion for using termbases in NLP analysesTermateis a Python package for terminology management with the TermBase eXchange (TBX) formatDISCLAIMER - BETA PHASEThis package is currently in a beta phase.Free software: MIT licenseDocumentation can be found herehereMain featuresUsing existing TBX termbases in NLP analyses (TBX version 3)Creating TBX termbases based on extracted terms from documentsConverting TBX termbases to Semantic Web data (OntoLex Lemon)Termate works together withnafigator.History0.1.0 (2022-01-02)First release on PyPI.0.1.1 (2022-05-22)SKOS added.0.1.3 (2022-08-07)Change to generate XBRL termbases0.1.4 (2022-08-21)Improved documentation0.1.5 (2022-08-23)Changed name of package to termate0.1.8 (2023-01-30)Added lemon objects0.1.9 (2023-02-07)Small correction in lemon conversion0.1.10 (2023-02-14)Added Excel to SKOS converter0.1.12 (2023-03-21)Ontolex-Lemon RDF now contains the original SKOSBugfix in importing SKOS RDF0.1.13 (2023-03-30)Bugfixes in importing SKOS Excel to SKOS RDF
Package: term-background
The Python module contained  is part of a broader set of scriptsFor the shell scripts, if you source this from a shell session it will set and exportCOLORFGBGto0;15for dark backgrounds and15;0for light backgrounds which is
a convention used by some programs. Since I find this a little arcane, the program also sets and exportsLC_DARK_BGto 1 for dark backgrounds and 0 for light. TheLC_(locale) assists in some ssh configurations which often will let environment variables with that prefix get passed along and set to a remote ssh session.The heuristics it uses is to try to query the background color using anxterm control sequence.Many, but not all, terminals support this query. So as a fallback we query environment variableCOLORFGBGand failing this we use some
defaults for some known terminals set from theTERMenvironment variable. OSX has its own way of querying characteristics so we use that too if you are running on that OS.When we can get pixel intensities of red, blue, and green values of the background, we can use that determine light and dark based the combined sum: zero values indicate an absense of a particular color and compare that with the values of the foreground.You can set any of these environment variables to influence the output decision.Many thanks to Thomas Dickey, Egmont Koblinger, and Gilles, for explanations (and code!) viaunix.stackexchange. John Green had the idea to compare the foreground and background colors instead comparing the background against the midway gray color and implemented that change here.Of course bugs and lacuna in this code are mine.