Saravanan666/pypi-org huggingface dataset:
Package: ttd
Time Till Done (ttd)-------------------.. image:: https://travis-ci.org/JarrodCTaylor/ttd.svg?branch=master:target: https://travis-ci.org/JarrodCTaylor/ttdTime Till Done ``ttd`` for short is a simple progress bar to help give you somefeedback for your long running Python scripts.Installation============``pip install ttd``Demo Gif========.. image:: https://cloud.githubusercontent.com/assets/4416952/3593813/177b9caa-0c8e-11e4-9e6d-87340fe43bd1.gifUsage=====The easiest way to use the module is in a for loop as demonstrated in the demogif above and the code snippet below... code:: pythonimport timefrom ttd import ttdfor i in ttd(range(99)):time.sleep(.05)You may also update the progress bar manually by calling ``print_ttd(index, total)``throughout your script as demonstrated below... code:: pythonimport timefrom ttd import print_ttdprint_ttd(0, 5)time.sleep(.5)print_ttd(1, 5)time.sleep(.04)print_ttd(2, 5)time.sleep(.5)print_ttd(3, 5)time.sleep(.5)print_ttd(4, 5)time.sleep(.5)print_ttd(5, 5)print("\ndone")
Package: tt-damage-calculator
TT-Damage-CalculatorGag damage calculator forToontown Rewritten.BuildingPrerequisitesThe Python 3 Programming Language. Install fromhttps://www.python.org/downloads/.The Rust Programming Language. Install by following the instructions athttps://www.rust-lang.org/learn/get-started.Maturin. Install by following the instructions athttps://www.maturin.rs/installation.html.Creating the wheelOnce the prerequisites are installed, clone the repository with git:gitclonehttps://github.com/Vhou-Atroph/TT-Damage-CalculatorWith the repository cloned, navigate to the directory and build the project with maturin:maturinbuild-ipythonThis should have created the "target" file in the project's main directory. Navigate totarget/wheelsand install the created file with pip:pipinstall[file]RunningAfter installing the wheel, you can run it from your favorite command terminal with:python-mtt_damage_calculatorWhat if I don't want to build the program?GitHubFor some versions of the calculator, I will compile it completely and release a standalone executable for users who either do not want to or are unable to compile the dependencies themselves. You can find the latest release athttps://github.com/Vhou-Atroph/TT-Damage-Calculator/releases/latest.GitHub executable releases target Windows users. Linux users must use Pypi to install this program.PypiAlternatively, you can install the package using Pypi:pipinstall[illputapackagenameherewhenimsuretohaveitreserved]After installing the package, you can run it via the terminal:python-mtt_damage_calculatorUsageGag SelectionClick any gag on the grid to add it to the calculation.Statuses/ModifiersThere are three buttons available above the gag selection that allow for certain functionalities: if a cog being lured that round, whether a gag is organic or not, and the ability to reset the current calculation. Other cog modifiers such as defense and v2 level can be found in the menu bar under "Calculations."Other FeaturesThere are two buttons in the bottom right corner of the program.'Clear History' will clear all text in the History panel, which logs previous calculations.'Show Health and SOS Cards' brings up a grid of all cog health values from Level 7 to Level 20, as well as the major SOS cards for Trap, Sound, and Drop. This can be toggled by clicking on it a second time.The program has various keybinds to expedite calculation:KeybindDescriptionshiftToggle Organicctrl+lToggle Lurectrl+rFinish Calculationctrl+dCycle  Defensectrl+vCycle v2 levelsctrl+xLock/Unlock statusesalt+upToggle Pinned WindowLicenseCode in TT-Damage-Calculator is licensed under theGNU General Public License v3.0.Final Notes
Package: ttdatasdk
ttdatasdk介绍Ticker Trading Factors data access, Backtest and Trading.安装方法# 首次安装, 在项目的根目录下添加requirements.txt文件，增加内容如下：Cython==0.29.34ply==3.11

msgpack>=0.4.7pandas==1.4.4setuptools==66.0.0six==1.16.0thriftpy2==0.4.16wheel==0.38.4ttdatasdk==0.0.1# 在命令行执行：pipinstall-rrequirements.txt# 如果安装失败，请指定官方镜像源pipinstall-rrequirements.txt-ihttps://pypi.org/simple# 安装指定的版本： pip install ttdatasdk==<version>pipinstallttdatasdk==0.0.2# 升级版本pipinstall-Uttdatasdk# 如果安装失败，请指定官方镜像源pipinstall-Uttdatasdk-ihttps://pypi.org/simple使用方法importttdatasdk"""账号认证"""ttdatasdk.auth(username,password)"""使用 token 认证账号"""ttdatasdk.auth_by_token(token="")# 获取因子数据factor_list=['float_share','pe','pe_ttm','ma_5','ema_5','dv_ratio']df=ttdatasdk.get_factor(stock_pool=['000300.SH'],trade_date='2023-03-29',factor_list=factor_list)print(df)openhigh...volumeamount

sec_codetrade_date...000001.SZ2023-03-2912.7312.74...596064.33750687.551000002.SZ2023-03-2915.4115.62...654848.261012734.687000063.SZ2023-03-2934.43510634.553575...782218.362685933.703000069.SZ2023-03-294.74.75...324836.19152639.669000100.SZ2023-03-293.9898994.044431...1604844.15707678.236

..................688363.SH2023-03-29111.999999113.159999...30500.33341085.693688396.SH2023-03-2959.30783361.559399...75640.44458018.471688561.SH2023-03-2972.57000572.570005...87323.24605371.703688599.SH2023-03-2951.75001152.490011...149553.3768914.461688981.SH2023-03-2949.18998850.319988...708926.223496451.834[300rowsx6columns]openhigh...volumeamount

sec_codedatetime...000001.SZ2023-03-2914:56:0012.52999912.54...3274.04103280.02023-03-2914:57:0012.5412.54...5943.07450969.02023-03-2914:58:0012.5412.54...122.0152976.02023-03-2914:59:0012.5412.54...0.00.02023-03-2915:00:0012.5412.54...9497.011900655.0[5rowsx6columns]
Package: tt_dataviews
Django class-based views (CBVs) forTexas Tribune’sdata applications.Note, this is not a complete solution for building data applications like the
Texas Tribune.  Instead, it’s opened as an insight into how we structure part
of our applications.  It’s meant to be a learning tool, not used directly.That said, if you’re interested, feel free to dive in.ConventionsStatic AssetsTODOLanding PagesTODODetail PagesTODODevelopingYou needGruntinstalled to develop the static assets associated with this
(see Grunt’sGetting Startedguide for more information on setting up Grunt).
Once you have Grunt installed, you need to install the development packages via
npm like this:npm install .Once everything is installed, you can build the Sass with this command:grunt sassThere is also a convenience method for continually building the Sass files via
thewatchcommand like this:grunt watch
Package: tt_disposal_wells
This Django application was generated using theTexas Tribune’sGeneric
Django app template.Installation & ConfigurationYou can install this usingpiplike this:pip install tt_disposal_wellsOnce installed, you need to add it to yourINSTALLED_APPS.  You can do that
however you like or you can copy-and-paste this in after yourINSTALLED_APPSare defined.INSTALLED_APPS += ['tt_disposal_wells', ]Now you’re ready to start usingtt_disposal_wells.UsageTODOExampleAll of the usage is outlined, along with tests inside theexampledirectory.  See that directory for more information on how to run the tests and
example project.
Package: ttf
Twitter Task ForceAsk people for information, through twitter, during a humanitarian response effort.Free software: GNU General Public License v3Documentation:https://ttf.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2017-07-20)First release on PyPI.
Package: ttf2dxf
# ttf2dxfsimple python based ttf to dxf converter## quikstart### install with pip` pip3 install ttf2dxf `### get code` git clone git@github.com:multigcs/ttf2dxf.git cd ttf2dxf pip3 install-rrequirements.txt `### ttf2dxf example` ttf2dxf-f./Arial.ttf-t"ttf2dxf"-otext.dxf `![gcodepreview](https://raw.githubusercontent.com/multigcs/ttf2dxf/main/docs/ttf2dxf.png)
Package: ttf2web
A tool to split/segment a TTF file into multiple WOFF2 files based on Unicode
character ranges, and generate a CSS file that describes that font face as an
aggregate of those WOFF2 files.Installationpip install ttf2webUsagettf2web /path/to/font-file.ttfThis will splitfont-file.ttfbased on a set of pre-defined Unicode ranges,
and create (in the working directory)font-file.cssand a directory namedassetscontaining the WOFF2 files.Here’s a demo of a more complete example:$ ls
Raleway-Regular.ttf  unicode-ranges

$ cat unicode-ranges
greek         U+0370-03FF
greek-ext     U+1F00-1FFF
latin         U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC
latin-ext     U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20CF,U+2C60-2C7F,U+A720-A7FF

$ ttf2web -v --unicode-ranges unicode-ranges Raleway-Regular.ttf
Processing greek
  Generated assets/Raleway-Regular.greek.woff2
  Found 1 glyphs for 1 out of 144 unicodes
Processing greek-ext
  Found no glyphs for any of 256 unicodes
Processing latin
  Generated assets/Raleway-Regular.latin.woff2
  Found 202 glyphs for 197 out of 264 unicodes
Processing latin-ext
  Generated assets/Raleway-Regular.latin-ext.woff2
  Found 157 glyphs for 157 out of 897 unicodes
Generated Raleway-Regular.css

$ ls
assets  Raleway-Regular.css  Raleway-Regular.ttf  unicode-ranges

$ head -n 12 Raleway-Regular.css
@font-face {
        font-family: "Raleway";
        font-style: normal;
        font-weight: 400;
        src: local("Raleway"), url(assets/Raleway-Regular.greek.woff2) format("woff2");
        unicode-range: U+0370-03FF;
}
@font-face {
        font-family: "Raleway";
        font-style: normal;
        font-weight: 400;
        src: local("Raleway"), url(assets/Raleway-Regular.latin.woff2) format("woff2");LICENSEMIT
Package: ttfautohint-py
ttfautohint-pyttfautohint-pyis a Python wrapper forttfautohint, a free auto-hinter for TrueType fonts
created by Werner Lemberg (@lemzwerg).It usesctypesto load thelibttfautohintshared library and call theTTF_autohintfunction.Binary “wheel” packages are available for Linux (manylinux1), macOS and
Windows, for both Python 2.7 and Python 3.x, with 32 and 64 bit architecture.
They can be installed from the Python Package Index
(PyPI) using thepipinstaller.$pipinstallttfautohint-pyThe wheels include a precompiledlibttfautohint.so(*.dylibon
macOS, or*.dllon Windows) shared library which has no other dependency
apart from system libraries. TheFreeTypeand
theHarfBuzzlibraries are compiled
from source as static libraries and embedded inlibttfautohint.To compile thelibttfautohint.dllfrom source on Windows, you need to
installMSYS2and the latest MinGW-w64 toolchain.
This is because thettfautohintbuild system is based on autotools and
thus requires a Unix-like environment.AMakefileis used to build the library and its static dependencies, thus
the GNUmakeexecutable must be on the$PATH, as this is called upon by thesetup.pyscript.Because we buildfreetype,harfbuzzandttfautohintfrom their git
source (checked in as git submodules), some relatively recent versions of the
following development tools are also required:autoconf,automake,libtool,flex,bisonandragel. Please check the respective
documentation of these libraries for more information.
Package: ttf-opensans
ttf-opensans is a Python package vending theOpen Sans font by Steve Matteson.It is intended for when you want to use the Open Sans font family without having to worry about availability on the target system.The Open Sans font family and this package is licensed under theApache License, Version 2.0.InstallationThis package can be installed through the following command:python3-mpipinstall-Uttf-opensansUsageThe fonts are provided through instances of theTTFFontclass.You can either access a specific font style directly:importttf_opensansmy_font=ttf_opensans.OPENSANS_SEMIBOLDITALICOr you can use the helper function to find the most appropriate font style:fromttf_opensansimportopensansmy_font=opensans(font_weight=600,italic=True)Once you have the font you want, you can access various attributes on it:print(my_font.name)# "OpenSans-SemiBoldItalic"print(my_font.weight)# 600print(my_font.italic)# Trueprint(my_font.path)# pathlib.Path("<...>/site_packages/ttf_opensans/ttf/OpenSans-SemiBoldItalic.ttf")You can also open the font for reading directly:withmy_font.open()asfp:font_data=fp.read()If you use the Python Imaging Library (Pillow), you can also directly get an ImageFont instance:fromPILimportImage,ImageDraw,ImageFontwithImage.new("RGB",(512,512),(255,255,255))asim:draw=ImageDraw.Draw(im)imagefont=my_font.imagefont(size=48)draw.text(font=imagefont,fill=(0,0,0),xy=(0,0),text="Hello World!")
Package: ttg
TTG : Thai Text Generator[](https://colab.research.google.com/drive/1X6D8J0sWNi8UgJi7Hk5YL4FqepZ7laxS?usp=sharing]Thai Text GeneratorInstallpipinstallttgif you want used thai2fit, you can install :pipinstallttg[thai2fit]Examplefromthaitextgeneratorimport*a=Unigram()print(a.gen_sentence(N=10))b=Bigram()print(b.gen_sentence(start_seq="คน",N=10))c=Tigram()c.gen_sentence(N=10,start_seq=("คน","ดี"))# Thai2Fitfromthaitextgenerator.thai2fitimportgen_sentencegen_sentence()DocsN-Gramimportfromthaitextgeneratorimport*Unigramwe support corpusTNC : Thai National Corpus (Default)TCC : Thai Textbook Corpusoscar : Open Super-large Crawled ALMAnaCH coRpusUnigram(name="tnc or tcc or oscar")Unigram().gen_sentence(N:int=3,prob:float=0.001,start_seq:str=None,output_str:bool=True,duplicate:bool=False)Bigramwe support corpusTNC : Thai National Corpus (Default)Bigram(name="tnc")Bigram().gen_sentence(N:int=4,prob:float=0.001,start_seq:str=None,output_str:bool=True,duplicate:bool=False)Tigramwe support corpusTNC : Thai National Corpus (Default)Tigram(name="tnc")Bigram().gen_sentence(N:int=4,prob:float=0.001,start_seq:tuple=None,output_str:bool=True,duplicate:bool=False)Thai2Fit# Thai2Fitfromthaitextgenerator.thai2fitimportgen_sentenceen_sentence(N:int=4,prob:float=0.001,start_seq:str=None,output_str:bool=True)LicenseCopyright 2020 Wannaphong Phatthiyaphaibun

   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 at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless 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: ttggdashtest
A sample Python projectA sample project that exists as an aid to thePython Packaging User
Guide'sTutorial on Packaging and Distributing
Projects.This project does not aim to cover best practices for Python project
development as a whole. For example, it does not provide guidance or tool
recommendations for version control, documentation, or testing.The source for this project is available here.Most of the configuration for a Python project is done in thesetup.pyfile,
an example of which is included in this project. You should edit this file
accordingly to adapt this sample project to your needs.This is the README file for the project.The file should use UTF-8 encoding and can be written usingreStructuredTextormarkdownwith the appropriatekey set. It will be used to generate the project webpage on PyPI and will be
displayed as the project homepage on common code-hosting services, and should be
written for that purpose.Typical contents for this file would include an overview of the project, basic
usage examples, etc. Generally, including the project changelog in here is not a
good idea, although a simple “What's New” section for the most recent version
may be appropriate.
Package: ttgmodsampleproject
A sample Python projectA sample project that exists as an aid to thePython Packaging User
Guide'sTutorial on Packaging and Distributing
Projects.This project does not aim to cover best practices for Python project
development as a whole. For example, it does not provide guidance or tool
recommendations for version control, documentation, or testing.The source for this project is available here.Most of the configuration for a Python project is done in thesetup.pyfile,
an example of which is included in this project. You should edit this file
accordingly to adapt this sample project to your needs.This is the README file for the project.The file should use UTF-8 encoding and can be written usingreStructuredTextormarkdownwith the appropriatekey set. It will be used to generate the project webpage on PyPI and will be
displayed as the project homepage on common code-hosting services, and should be
written for that purpose.Typical contents for this file would include an overview of the project, basic
usage examples, etc. Generally, including the project changelog in here is not a
good idea, although a simple “What's New” section for the most recent version
may be appropriate.
Package: ttgtcanvas2
ttgtcanvas2A maze libraryInstallationYou can install usingpip:pipinstallttgtcanvas2If you are using Jupyter Notebook 5.2 or earlier, you may also need to enable
the nbextension:jupyternbextensionenable--py[--sys-prefix|--user|--system]ttgtcanvas2Development InstallationCreate a dev environment:condacreate-nttgtcanvas2-dev-cconda-forgenodejsyarnpythonjupyterlab
condaactivatettgtcanvas2-devInstall the python. This will also build the TS package.pipinstall-e".[test, examples]"When developing your extensions, you need to manually enable your extensions with the
notebook / lab frontend. For lab, this is done by the command:jupyter labextension develop --overwrite .
yarn run buildFor classic notebook, you need to run:jupyter nbextension install --sys-prefix --symlink --overwrite --py ttgtcanvas2
jupyter nbextension enable --sys-prefix --py ttgtcanvas2Note that the--symlinkflag doesn't work on Windows, so you will here have to run
theinstallcommand every time that you rebuild your extension. For certain installations
you might also need another flag instead of--sys-prefix, but we won't cover the meaning
of those flags here.How to see your changesTypescript:If you use JupyterLab to develop then you can watch the source directory and run JupyterLab at the same time in different
terminals to watch for changes in the extension's source and automatically rebuild the widget.# Watch the source directory in one terminal, automatically rebuilding when neededyarnrunwatch# Run JupyterLab in another terminaljupyterlabAfter a change wait for the build to finish and then refresh your browser and the changes should take effect.Python:If you make a change to the python code then you will need to restart the notebook kernel to have it take effect.
Package: ttictoc
ttictocTime execution of blocks of code.Tested against python 3.6, python 3.7, and 3.8How to installFrom pippip install ttictocor download this repo and dopip install .TicTocThe easiest way to time something is withticandtocimporttimefromttictocimporttic,toctic()time.sleep(1)elapsed=toc()print('Elapsed time:',elapsed)You can execute multiple tocs in a matlab-like fashonimport time
from ttictoc import tic,toc
tic()
for i in range(2):
  tic()
  time.sleep(1)
  elapsed = toc()
  print('[IN LOOP] Elapsed time:',elapsed)
print('[OUT LOOP] Elapsed time:',toc())Timer ClassIt works just liketic,toc.importtimefromttictocimportTimer# Simplet=Timer()t.start()time.sleep(1)elapsed=t.stop()print('Elapsed time:',elapsed)# Nestedt.start()foriinrange(2):t.start()time.sleep(1)elapsed=t.stop()print('[IN LOOP] Elapsed time:',elapsed)print('[OUT LOOP] Elapsed time:',t.stop())Context managerYou can also use it as context managerimporttimefromttictocimportTimer# DefaultwithTimer():time.sleep(1)# With out verbosewithTimer(verbose=False)asT:time.sleep(1)print('Elapsed time:',T.elapsed)# With default verbose messagewithTimer(verbose_msg=f'[User msg][{time.time()}] Elapsed time:{{}}'):time.sleep(1)Deactivating matlab-like nestingYou can deactivate the matlab-like nesting. In this case calling start will update the global starting time for toc. However, you can have nested tics by giving akeyto start and stop.importtimefromttictocimportTimer,tic2,toc2tic2()foriinrange(2):tic2()time.sleep(1)elapsed=toc2()print('[IN LOOP] Elapsed time:',elapsed)print('[OUT LOOP] Elapsed time:',toc2())t=Timer(matlab_like=False)t.start()time.sleep(1)t.start()# Restarts the starting pointtime.sleep(1)elapsed=t.stop()print('Elapsed time:',elapsed)# ~1 second# Nestedt.start(key='Init')foriinrange(2):t.start(key=i)time.sleep(1)elapsed=t.stop(key=i)print('[IN LOOP] Elapsed time:',elapsed)print('[OUT LOOP] Elapsed time:',t.stop('Init'))print('\n[OUT LOOP][Init] Elapsed time:',t.stop('Init'))print('[OUT LOOP][0] Elapsed time:',t.stop(0))print('[OUT LOOP][1] Elapsed time:',t.stop(1))Specify timing methodBy default,Timer(andtic,toc) usetimeit.default_timer. However, the timing function can be selected as follow.importtimefromttictocimportTimert=Timer(func_time=time.clock)t.start()time.sleep(5)elapsed=t.stop()print('Elapsed time:',elapsed)
Package: ttim
TTim, A Multi-Layer, Transient, Analytic Element ModelIntroductionTTim is a computer program for the modeling of transient multi-layer flow with analytic elements.
TTim is based on the Laplace-transform analytic element method. The solution is computed analytically
in the Laplace domain and converted back to the time domain numerically usig the algorithm of De Hoog, Stokes, and Knight.
TTim may be applied to an arbitrary number of aquifers and leaky layers.
The head, flow, and leakage between aquifers may be computed semi-analytically at any point in space and time.
The design of TTim is object-oriented and has been kept simple and flexible.
New analytic elements may be added to the code without making any changes in the existing part of the code.
TTim is coded in Python and uses numba to speed up evaluation of the line elements and inverse laplace transforms.Latest versionNew in version 0.6.6:Many documentation improvements: new look, better organization, tutorials, how-to guides, etc. Check it outhere!InstallationPython versions and dependenciesTTim requires Python >= 3.8 and can be installed from PyPI.Required packages:numpyscipymatplotlibnumbalmfitInstallation:To install TTim, open a command prompt or the anaconda prompt and type:pip install ttimTo update TTim type:pip install ttim --upgradeTo uninstall TTim type:pip uninstall ttimDocumentationThe documentation is hosted onreadthedocs.Example Notebooks are available from the notebooks directory on github, of fromhere.CitationSome of the papers that you may want to cite when using TTim are:M. Bakker. 2013. Semi-analytic modeling of transient multi-layer flow with TTim. Hydrogeology Journal, 21: 935�943.M .Bakker. 2013. Analytic modeling of transient multi-layer flow. In: Advances in Hydrogeology, edited by P Mishra and K Kuhlman, Springer, Heidelberg, 95-114.
Package: tti-power-supply
Driver for the TTI QL355P power supplyCharles Baynham 2023This package defines theTTIPowerSupplyandTTIPowerSupplyTCPobjects, for
USB and LAN control. Use them e.g. like this:d_USB = TTIPowerSupply(id="COM45")
d_LAN = TTIPowerSupplyTCP(id="10.0.0.0")

print(d_LAN.get_identity())