Saravanan666/pypi-org huggingface dataset:
Package: trexprinterapi
This package will provide an API to connect to a trex 3d printer.
Currently its on development.To install this package usepip install trexprinterapiThan import it in your python program and initialise the Api with the following commandfrom trexprinterapi import TRexObserver
trex = TRexObserver(ip)Observe that you need to specify at least the ip address. Additionally you can set the port (default 8899) and scan_intervall (default 600)The scan_intervall should not be to small or else other programms comunicating with the printer may be disconnected.This package is fully asyncrounus so you need to await all the methods for fetching data.The following methods are available:trex.update_server(ip:str=None, port:int=None, scan_intervall:int=None)This method updates the ip address, port and scan_intervall.data = await trex.get()
data = await trex.force_get()methods to fetch the data. the force_get ignores the scan_intervall and connects to the printer immediately.
Package: trezor-gpg-pinentry-tk
# Trezor-style PIN entry for GPGThis is an alternate PIN entry for use with [trezor-agent](https://github.com/romanz/trezor-agent/) or for people with number-only PINs.  It displays a grid of unlabeled buttons and supports configurable keyboard mappings.<img src=”screenshot.jpg”>By default you can use any of these key grids to enter the PIN:` w e r      u i o      7 8 9 s d f      j k l      4 5 6 x c v      m , .      1 2 3 `Pressescapeto cancel,backspaceto clear everything you’ve entered, andenterto submit the PIN.### InstallationRunpip install trezor-gpg-pinentry-tkFind where it’s installed with by runningwhich trezor-gpg-pinentry-tkAdd this line to$GPGHOME/gpg-agent.conf:pinentry-program /path/to/trezor-gpg-pinentry-tkRunecho RELOADAGENT | gpg-connect-agentor restart your computer### ConfigurationSet these environment variables on yourgpg-agentdaemon, by overriding/usr/lib/systemd/user/gpg-agent.servicefor example.PINENTRY_TREZOR_LOG_PATH=/path/to/log/file.  Enable logging and write logs to/path/to/log/filePINENTRY_TREZOR_DONT_FLASH=1.  Don’t show which keypad button was pressed when using the keyboard.PINENTRY_TREZOR_KEYSET=123456789.  Use this letter grid for keyboard entry.PINENTRY_TREZOR_DONT_EXPLAIN=1.  Don’t explain or show the grid when entering via TTY.PINENTRY_TREZOR_FORCE_MESSAGE=My prompt message:.  Use this prompt message instead of the GPG provided prompt.
Package: trezor-pass
Trezor Password Manager CLICommand-line alternative to theTrezor Password Managerproject. This project is aiming for compatibility in password store encryption, encoding and structure. Users will be able to read and write to the same password store regardless of which project they use.RunInstall with pip:$ pip install trezor-passRun:$ trezor-passLimitationsCurrent version has some limitationsOnly reading is supported at the moment, store creation and updates will come later on.Tested on Trezor One. Some additional complexity around PASSPHRASE on Trezor T needs to be handled. (Might be bypassed by correctly setting the PASSPHRASE env variable)Google Drive storage is not yet supported (Can be bypassed by direcly specifying the store file)
Package: trf
TRFA parser and dumper for the fide approved tournament report format: trf
The trf file format is used by theFideto report tournament results and calculate elo ratings based on them.Specification:https://www.fide.com/FIDE/handbook/C04Annex2_TRF16.pdfExample:http://ratings.fide.com/download/example1.txtThis project is aworkingreimplementation ofhttps://github.com/erral/fidetournamentfor python3.8 and aims to be the goto trf parser on pypi.Simple usage exmapleimporttrfwithopen('example1.trf')asf:tour=trf.load(f)print(tour.name)forplayerintour.players:print(player.name,'-',player.points)
Package: tri
Tri - (Constrained) Delaunay Triangulation of Planar Straight Line GraphsInstallationDownload the sourceRunpython setup.py install(orpython setup.py develop)UsageTo triangulate a polygon with one outer and one inner shell:from tri import ToPointsAndSegments, triangulate
from tri.delaunay import output_triangles, TriangleIterator

# create points and segments for triangulation
pts_segs = ToPointsAndSegments()
pts_segs.add_polygon([[(0,0), (10,0), (5,10), (0,0)],
                      [(0,0), (8,2), (6,4), (5,7), (0,0)]
                      ],
                     )

# triangulate the points and segments
dt = triangulate(pts_segs.points, pts_segs.infos, pts_segs.segments)

# write the output
with open("tris.wkt", "w") as fh:
    output_triangles([t for t in TriangleIterator(dt)], fh)The resulting file is readable withQGIS(Add Delimited
Text Layer).ChangelogSeeCHANGES.txt.Bug reportsIf you discover any bugs, feel free to create an issue on Bitbucket.Please add as much information as possible to help us fixing the possible bug.
We also encourage you to help even more by forking and sending us a pull
request.The issue tracker liveshere.MaintainersMartijn MeijersContributorsRadan ŠubaLicenseMIT License
Package: triad
TriadA collection of python utility functions forFugue projectsInstallationpipinstalltriadRelease History0.9.5Add parse json column function to pyarrow utilsFix the pandaslegacy usage0.9.4Handle Pandas 2.2 change onarrow string typeFixed readthedocs build0.9.3Add version constraint on fsspec0.9.2Remove support for Python 3.7Add more util functions for fsspecAdd more util functions for pyarrowAdd sorted batch reslicersAddArrowDtypesupportSystematically improved pandas and arrow type castsRemovePandasLikeUtils.enfoce_typeAdd more util functions for pyarrow0.9.1Addfsspecas a core dependency, add io utilsAddpy.typedImproveSchemaclass comments0.9.0Merge QPD pandas utils functions back to Triad0.8.9Add batch reslicersFix package issue (exclude tests folder)0.8.8Add type replacement utils for pyarrow0.8.7Fix pandas 2.0 warnings0.8.6Fixed timestamp conversion for pandas 2.00.8.5Ensure pandas 2.0 compatibilityImproveto_schemainPandasUtils0.8.4MovedFunctionWrapperfrom Fugue into TriadImproved groupby apply efficiency for pandas utils0.8.3Addget_alter_functo pyarrow utils0.8.2Handle time zone in pandas_utils0.8.1Fixed thestring column issue0.8.0Support arbitrary column name0.7.0Fixed importlibentry_pointscompatibility issue0.6.9Remove Python 3.6 supportAdd dataframe rename utils0.6.8Add map type support to Schema0.6.7Parse nested fields inexpression_to_schemautil0.6.6Improve conditional_dispatcher0.6.5Add SerializableRLockAdd decorator run_once0.6.4Add function dispatcher0.6.3Fix pandas warning on pd.Int64Index0.6.2Make ciso8601 totally optional0.6.1Support Python 3.100.6.0Fix extensible class bugs0.5.9Createextensible_classandextension_methoddecos0.5.8Make ciso8601 a soft dependency on windowsSwitch to codecovImprove documents, change to Furo theme0.5.7Fix pandas extension data types bug0.5.6Prepare to supportpandas extension data typesSupport Python 3.90.5.5Change pandas_list enforce_type df construction0.5.4MakeFileSystemwork for windowsMake triad fullly compatible with WindowsAdd windows tests0.5.3Lazy evaluation forassert_or_throw0.5.2For pyarrow data conversion, support np.ndarray -> list0.5.1Update get_caller_global_local_vars to access any stack0.5.0Fix to_type on full type path0.4.9Fix numpy warning0.4.6Improve pandas like utilsenforcemethod to handle str -> bool0.4.5Fixed pandas -> arrow datetime conversion issue0.4.4Improved FileSystem compatibility with WindowsAdd overwrite expression for Schema classFixed github actions0.4.3Refactoredstr_to_type,str_to_instanceandto_functionto useeval0.4.2Fix a bug in pandas like safe_groupby_apply0.4.1Improvement on group by applyImprovement on environment setup0.4.0Prepare for Fugue open source0.3.8Change to Apache 2.0 license0.3.7Add pyarrow binary type support0.3.6Addtransformto Schema class0.3.5Change pyarrow and pandas type_safe output to be consistent with pyarrow (None for pd.NaT, nan, etc)0.3.4Add general FileSystem0.3.3Add thread-safe cloudpicklable RunOnce class0.3.2extracted TRIAD_DEFAULT_TIMESTAMP as a constant<=0.3.1Open sourced and docs are readyAdded basic utility functionsTypes and schema are based on pyarrowA better indexed and ordered dictAdded ParamDict
Package: triage-runner
TRIAGEIntended use: running a multitude of GPU-intensive scripts in a way that optimizes GPU memory utilization. Great for ML/DL based experiments on servers shared between several users.Installationpipinstalltriage-runnerUsageSee--helpoption for extended list of possible arguments.Running one config:triagerun_config.jsonRunning several configs:triagerun_config1.jsonrun_config2.jsonrun_config3.jsonPatterns can be used for config discovery as well:triagerun_config*.jsonMore on pattern syntax can be found here:https://docs.python.org/3.10/library/pathlib.html#pathlib.Path.globRun configurationsStored in JSON format. The sample run configuration looks like this:{"memory_needed":10.0,"config_name":"sample_config","command":"python3 train.py","args":["arg1","--arg2",["--seed=1","--seed=2","--seed=3"],"--arg3=3"]}Every entry inargslist is an argument forcommand. An entry can be a list - in which case TRIAGE will iterate through all the possible combinations of all values in list entries. The example script above will be run 3 times with an argument--seedset to 1, 2 and 3.Parameterconfig_nameis optional and is used for logging the results (see--logfileoption TODO). Based on this parameter environment variableTASK_NAMEis set in order to be used by running script.
Package: trialbureautools
trialbureautoolsCommand line utility for the radboudumc trial bureau.Free software: MIT licenseDocumentation:https://trialbureautools.readthedocs.io.FeaturesSort DICOM files into folders based on DICOM tag patternsSet windows icacls folder permissionsGetting startedSeeGetting startedCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2018-12-05)Alpha
Package: trialtracker
Table of ContentsWhat is it?Main FeaturesImpactInstallationUsageBuilt WithWhat is it?trialtracker is a Python package that provides methods to easily extract, transform, and download clinical trial data.  It aims to create standardized data infrastructure for clinical trial digitalization, focusing on structured representation of clinical trial protocols.Main FeaturesHere are some of the things trialtracker allows you to do:- Download pre-curated clinical trial and clinical trial eligibility criteria datasets- Easily query data from clinicaltrials.gov- Apply state-of-the-art natural language processing methods to extract useful information from raw clinicaltrials.gov data- Data visualizations and analysis of clinical trial dataThe current version of the package is primarily focused on cancer trials, which are an important area for clinical development.  Improved data infrastructure is especially helpful in this area given the complexity of the disease and treatments.ImpactCancer is one of the leading causes of death worldwide. The way we test and approve new treatments is through clinical trials.  But 97% of cancer trialsfail,
driven by inability torecruitenough patients.
And yet many patients are routinelyexcludedfrom trials, including minority groups who are most affected by the disease.The key to solving these problems is in changing how we design trials, recruit patients, and report on results. Regulatory requirements for clinical trial registration became required in 2017, making semi-structured trial protocol data available on clinicaltrials.gov. Today, this is not being systematically used in trial design, patient recruitment, or reporting decisions in Oncology. This project aims to unlock the value of clinical trial data to help accelerate cancer research and improve the lives of cancer patients.Installationtrialtracker can be installed from PyPipipinstalltrialtrackerUsagetrialtracker is made to be very simple to use. The main methods are:</code></pre>
</li>
</ul>
<p>trialtracker.list_datasets()</p>
<prelang="to"><code>

Hereisaquickexample:```sh
fromtrialtrackerimportlist_datasets,load_datasetBuilt WithTechnologies and methods used to build this project!PythonGolangNamed Entity Recognition and Named Entity Linking
Package: triangle2
Triangleis a python wrapper around Jonathan Richard Shewchuk’s two-dimensional quality mesh generator and delaunay triangulator library, availablehere. This implementation utilizesCythonto wrap the C API as closely as possible. The source is available onGithub, and the documentation can be accessed atrufat.be/triangle.NOTE:triangle2is identical totriangle, and is a temporary solution to anunmerged PRregarding mac-arm64 wheel builds.
Package: trianglechain
trianglechainCode for plotting multidimensional marginal distributions. If you use it, please citearXiv-2203.09616andarXiv-2207.01627.SourceDocumentationBasic UsageTo plot a standard triangle plot, you usefromtrianglechainimportTriangleChainimportnumpyasnp# generate samplessamples=np.random.multivariate_normal(mean=np.zeros(3),cov=np.diag(np.ones(3)),size=(10000))tri=TriangleChain()tri.contour_cl(samples);The input data can be rec arrays, numpy array, pandas dataframes or dictionaries.
For more example plots, see thedocumentationCreditsThis package was created by Tomasz Kacprzak and further developed and extended by Silvan Fischbacher.
The package is maintained by Silvan Fischbacher:silvanf@phys.ethz.ch.ContributionsContributions are welcome, and they are greatly appreciated! Every
little bit helps, and credit will always be given.
Package: triangle-check
Triangle Check: scan iTunes backups for traces of compromise by Operation TriangulationThis script allows to scan iTunes backups for indicator of compromise by Operation Triangulation.For more information, please readSecurelistContact:triangulation@kaspersky.comPrerequisitesThe script depends on: colorama (for pretty printing), pycryptodomeInstallationThe triangle_check utility can be installed fromPyPI(recommended):python -m pip install triangle_checkThe script can be run as-is (the subdirectorytriangle_checkis required):python -m pip install -r requirements.txt
python triangle_check.pyIt can also be built into a pip package:git clone https://github.com/KasperskyLab/triangle_check
cd triangle_check
python -m build
python -m pip install dist/triangle_check-1.0-py3-none-any.whlFor Windows or Linux, alternatively use thebinary buildsof the triangle_check utility.UsageUsage: python -m triangle_check /path/to/iTunes_backup [backup_password]iTunes backup locationLocate the backup directory created by iTunes. The exact location depends on the OS and is describedhere.
The directory you are looking for should contain may subdirectories, and should include 'Manifest.db', 'Manifest.plist'. The backup may be encrypted
with a password, if set up in iTunes. That password is required to decrypt password-protected backups.Advanced: create backup with libimobiledeviceYou can use the toolidevicebackup2that is a part of the open-source package namedlibimobiledevice. Popular Linux
distributions, macports and homebrew allow to install it out of the box, and the package can be built from the source code for Linux or OSX.Scanning the backupRun the tool against the backup directory. If there are any traces of suspicious activity, the script will print outSUSPICIONorDETECTEDlines with
more information and detected IOCs, and that would mean that the device wasmost likelycompromised.Example output:==== IDENTIFIED TRACES OF COMPROMISE (Operation Triangulation) ====
2022-*-* SUSPICION Suspicious combination of events: 
 * file modification: Library/SMS/Attachments/ab/11
 * file attribute change: Library/SMS/Attachments/ab/11
 * location service stopped: com.apple.locationd.bundle-/System/Library/LocationBundles/WRMLinkSelection.bundle
 * file modification: Library/Preferences/com.apple.ImageIO.plist
 * file attribute change: Library/Preferences/com.apple.ImageIO.plist
 * file birth: Library/Preferences/com.apple.ImageIO.plist
 * file modification: Library/Preferences/com.apple.locationd.StatusBarIconManager.plist
 * file attribute change: Library/Preferences/com.apple.locationd.StatusBarIconManager.plist
 * file birth: Library/Preferences/com.apple.locationd.StatusBarIconManager.plist
2022-*-* DETECTED Exact match by NetUsage : BackupAgent
2022-*-* DETECTED Exact match by NetTimestamp : BackupAgentWhat's next?The research on the Operation Triangulation is ongoing. For more updates, please checkSecurelist
Package: triangle_drawer
TriangleDrawerThis package will enable you to draw any triangle on screen and see its measurements.InstallationInstall this package usingpippip install triangle_drawerUsageYou can either create a triangle using the three side lengths:fromtriangle_drawerimportTriangleTriangle(3,4,5).draw()Or you can create a triangle using two side lengths and the angle between them (in degrees):fromtriangle_drawerimportTriangleTriangle(3.5,4.5,angle=45.6).draw()LicenseThe project is licensed under the MIT license.
Package: triangles
TrianglesOverviewUsing theLaw of Cosinesand theLaw of Sines, this library can be used to calculate all remaining sides and angles of a triangle when any one of the following sets of inputs are available.The length of 2 adjacent sides and their interior angle (SAS)The value of 2 angles and the length of the common side (ASA)The lengths of all 3 sides of the triangle (SSS)InstallationpipinstalltrianglesUsageImport the modulefromtrianglesimporttrianglesUse the functions to calculate the sides and angles of a triangle>>>triangles.SSS(1,1,1)(1,1,1,60.00000000000001,59.99999999999999,60.00000000000001)>>>triangles.SAS(1,60,1)(1,1,0.9999999999999999,60.00000000000001,60.00000000000001,60)>>>triangles.ASA(60,1,60)(1.0,1.0,1,60,60,60)
Package: triangle-sector-similarity
Triangle Area - Sector Area SimilarityIt takes two vectors as an input and can return Cosine Similarity, Eucledian Distance, Triangle Area - Sector Area Similarity.Installationpip install triangle_sector_similarityHow to use it?from triangle_sector_similarity import Cosine_Similarity,Euclidean_Distance,TS_SS,Pairwise_TS_SS

vec1 = [1,2,3]
vec2 = [2,4,5]

#Triangle Area Similarity â€“ Sector Area Similarity
ts_ss = TS_SS(vec1,vec2)

#Cosine Similarity
cos_sim = Cosine_Similarity(vec1,vec2)

#Euclidean Distance
euc_dist = Euclidean_Distance(vec1,vec2)

#Pairwise Triangle Area Similarity â€“ Sector Area Similarity
lst1 = [[1,2,3],[2,3,4]]
lst2 = [[2,4,5],[2,8,6]]

pairwise_ts_ss = Pairwise_TS_SS(lst1,lst2)LicenseÂ© 2022 mohan98This repository is licensed under the MIT license. See LICENSE for details.
Package: trianglesolver
Written by Steven Byrnes,http://sjbyrnes.com/Download:https://pypi.python.org/pypi/trianglesolver/Source code repository:https://github.com/sbyrnes321/trianglesolverThis little package applies the law of sines or cosines to find all the
sides and angles of a triangle, if you know some of the sides and/or
angles.The main function defined by this package is solve(…). Simple example:from math import pi
from trianglesolver import solve
a,b,c,A,B,C = solve(b=7.6, c=8.3, A=pi/3)Following the usual convention, lower-case letters are side lengths and
capital letters are angles. Corresponding letters are opposite each other,
e.g. side b is opposite angle B.All angles are in radians! However, you can use the degree constant to
convert:from trianglesolver import solve, degree
a,b,c,A,B,C = solve(b=7, A=5*degree, B=70*degree)
print(C / degree)
Package: triangular-grid-merge
triangle-grid-mergeWhy this project is usefulIt helps to generate finite element triangular grid in tecplot format (.dat).It's easy to read such a grid from tecplot (.dat) file.Works for a multizone grids.Able to merge multizone grids and write them as a single grid.The main advantage is that with tgm it's easy to read tecplot (.dat) format with multizone triangular grid inside and
connect zones basing on the coordinates of the nodes.QuickstartTocreatea gridfrom triangular_grid_merge.grid import GridIn order to initialize the grid with elements use:grid.init(4, 5, (0, 60), (0, 100))The code above creates a grid with 4 points by x-axis and 5 point by y-axis.
The points are distributed inside the rectangular given by the 2 points -(x1, x2) (y1, y2)The area is devided according to the number of points by each axis.Toprintthe grid inside the tgm's grids directory, usefrom triangular_grid_merge.tecplot import print_tecplot
print_tecplot(grid, 'name.dat')If the grid is multizone you can print it as a single zone giving:print_tecplot(grid, 'name.dat', merge=True)Toreada grid. usefrom triangular_grid_merge.tecplot import read_tecplot
read_tecplot(grid, 'name.dat')DetailsTriangular grid is the one where each face is set by three nodes.
It consists of nodes, faces and edges.
Package: triangulate
TriangulateTriangulate is a research project to improve bug localization by using
reinforcement learning.This is not an officially supported Google product.InstallationRun the following command to install Triangulate.pip3 install -e .UsageTriangulate is designed to wrap a standard Python script invocation (a "subject" program), similar topdb:python3 -m triangulate.main [flags...] subject -- [subject_args...]Under the hood, Triangulate runssubject [subject_args...]. If an exception is raised, Triangulate uses information from the exception to begin bug localization.Examplespython3 -m triangulate.main --max_steps 5 -- triangulate/testdata/quoter.py -- --index 1
Package: triangulizor
Triangulizor is a little Python script to apply a “triangular pixel”
effect to images, like so:⇊☁⇊InstallationUsepipto install:pip install triangulizorUsageCommand Line UsageFirst, find an image to triangulize! To generate the example above,
either of these commands will do the trick:$ triangulizor --show --tile-size=16 examples/in.jpgThe--showflag will cause the resulting image to be displayed
immediately instead of written tostdoutor to disk. You can also
pass in the URL to an image that you want to process:$ triangulizor --show --tile-size=16 https://github.com/mccutchen/triangulizor/raw/master/examples/in.jpgAll command line options are given below:$ triangulizor --helpOutputs:usage: triangulizor [-h] [-t TILE_SIZE] [-v] [-vv] [-s] [infile] [outfile]

Applies a "triangular pixel" effect to an image.

positional arguments:
  infile                Image to process (path or URL; defaults to STDIN)
  outfile               Output file (defaults to STDOUT)

optional arguments:
  -h, --help            show this help message and exit
  -t TILE_SIZE, --tile-size TILE_SIZE
                        Tile size (should be divisible by 2)
  -v, --verbose         Verbose output
  -vv                   Very verbose output
  -s, --show            Immediately display image instead of writing to
                        OUTFILE.Library UsageTriangulizor can also be used as a plain old Python library:>>> import triangulizor
>>> triangulizor.triangulize('examples/in.jpg', 24)
<Image._ImageCrop image mode=RGB size=384x216 at 0x10A5BA758>CreditsThis was inspired entirely bythis awesomely helpful blog postby@revdancatt.