Saravanan666/pypi-org huggingface dataset:
Package: tunnelproxy
A small whitelisting HTTP CONNECT proxyThis is a small HTTP CONNECT proxy, with a target host whitelist.Implemented in Python on top oftrioandh11, it is written for ease
of comprehension and auditing. (This makes it easy to adopt in situations where
you'd want such a proxy.)A secondary goal is to be flexible. It can be used in two ways:As a stand-alone proxy.
Just run the module:python-mtunnelproxy--addresslocalhost--port8080--configexample-config.jsonAs a library.
The proxy (TunnelProxy) always runs in Trio's event loop, but a
wrapper (SynchronousTunnelProxy) lets you run it from normal code.Make it your own!For example of (2), seetunnelproxy/__main__.py.PerformanceThe proxy is single-threaded. On an Intel i7-7700HQ @ 2.80GHz, it handles ~560
connections per second. Not much, but enough for many use cases.LicenseThis project isMIT licensed.TrioHTTPConnectionfromadapter.pyis
based onh11's example server, by Nathaniel J. Smith. The rest is written
by Antun Maldini.
Package: tunneltop
tunneltopA tunnel manager in the familiar top style written with ncurses and asyncio.Installpipinstalltunneltopwhat it isa simple tunnel manager written in python that uses the standard library only(standard library only in python 3.11)it starts and manages the tunnels for youlets the user interactively manage the tunnels as wellwill reload the config file if it receives aSIGHUPit is intentionally written as simple and tunnel-agnosticmay or may not work on windows(let me know if you test it on windows)toml filetunneltop expects its config file to be at at$HOME/.tunneltoprc.You can see an example config file below:[color]header_fg=4header_bg=0active_fg=23active_bg=0disabled_fg=8disabled_bg=0timeout_fg=63timeout_bg=0unknown_fg=38unknown_bg=0down_fg=208down_bg=0box_fg=22box_bg=0[tunnel.socks5ir]address="127.0.0.1"port=9997command="autossh -M 0 -N -D 9997 -o ServerAliveInterval=180 -o ServerAliveCountMax=3 -o ExitOnForwardFailure=yes -l debian -p 22 100.100.100.101"test_command='curl -s -o /dev/null -s -w "%{http_code}" -k -I -4 --socks5 socks5h://127.0.0.1:9997 https://icanhazip.com'test_command_result="200"test_interval=300test_timeout=10auto_start=false[tunnel.socks5_3]address="127.0.0.1"port=9995command="autossh -M 0 -N -D 0.0.0.0:9995 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o VerifyHostKeyDNS=no -o ServerAliveInterval=180 -o ServerAliveCountMax=3 -o ExitOnForwardFailure=yes -l debian -p 2022 100.100.100.100"test_command='curl -s -o /dev/null -s -w "%{http_code}" -k -I -4 --socks5 socks5h://127.0.0.1:9995 https://icanhazip.com'test_command_result="200"test_interval=300test_timeout=10auto_start=trueThe tunnel names must be unique.addressDisplays the address at which the tunnel is available at. It is a display-only option.portDisplays the port at which the tunnel is available at. It is a display-only option.commandThe command used to start the tunnel.test_commandThe command used to test the state of the tunnel.test_command_resultThe expected result of the test command.test_intervalHow often should thetest_commandbe run.test_timeoutHow long before the test is considered to have timed out.auto_startWhether to automatically start this tunnel  on startup.keybindingsjandkmove you up and down.gandGmove you to the first or last tunnel.stoggles a tunnel from enabled to disabled or vice versa.rrestarts a tunnel.truns the test right now.To quit send aSIGINTor aSIGTERM. I'm working on improving this of course.tunneltop will reload its config file upon receiving aSIGHUPand apply the changes immediately if there are any.
Package: tunnelvision
TunnelvisionTunnelvision is an experimental tensor viewer for IPython environments based on Voxel.InstallationTunnelvision requires Python 3.7+. Wheels areonlyavailable for MacOS (x86_64) and Linux for now.To install Tunnelvision, run:pipinstalltunnelvisionQuick StartThe API of tunnelvision is very similar to that ofmatplotlib. Tunnelvision is a 5D tensor viewer that requires tensors to have the following format:BatchxDepthxHeightxWidthxChannels, where channels can be 1 (grayscale/monochrome) or 3 (RGB). You can quickly plot (medical) images using:importnumpyasnpimporttunnelvisionastvarr=np.random.randint(0,2048,(2,3,224,224,1),dtype=np.uint16)tv.show(arr)More advanced plots with segmentation overlays (or colormaps in general) can be created as follows:ax=tv.Axes(figsize=(512,512))ax.imshow(arr1)ax.imshow(arr2,cmap="seg")ax.show()Pyvoxelhas support for tunnelvision as well, which allows you to plot images with their correct orientation and spacing, without having to manually set those in the configuration:importvoxelasvxmv=vx.load("../data/ct/")tv.show(mv)VS Code RemoteTo use tunnelvision through VS Code remote, we need forward an arbitrary available port to the tunnelvision-server. Once you have forwarded a port from theportspane within VS Code, make sure to add it to your configuration file for tunnelvision:# ~/.cache/tunnelvision/default_config.yamlport:1337
Package: tuo-ml
RequirementsPython 3.X with pip/Anaconda on WindowsJava 1.8 or higherInstall$ pip install tuo_mlIf you do not have administrator rights append--user/--break-system-packagesto above command.Alternatively, if some errors occur in later steps to install from source.Run ittuo/data $ tuo_train --help
tuo/data $ tuo_trainThe output should look similar to:Loading database from database.yml...done
Parsing database...
100%|█████████████████████████████████████| 1705/1705 [00:20<00:00, 84.00it/s]
100%|███████████████████████████████████████████| 1/1 [00:20<00:00, 20.30s/it]
Training...
Win......Average Error: +-1.752% (+-0.027%)
Stall....Average Error: +-0.750% (+-0.017%)
Loss.....Average Error: +-1.225% (+-0.022%)
Points...Average Error: +-1.760 (+-0.031)The uncertainty of the training is indicated.
You can copy the*.pmmlfiles into yourdata/folder to use them in tuo now.Run it from sourceIf you want to define your own ML model follow these steps.DownloadDownload the source zip from github and unzip it. Or better clone the repo$ git clone https://github.com/APN-Pucky/tyrant_optimize.git tuo
$ cd tuo/mlInstalltuo/ml $ poetry installModify train.py to your likings.Run ittuo/data $ poetry run tuo_train
Package: tuos-its-sphinx-theme
rcgsheffield Sphinx documentation themeA Sphinx theme for the Sheffield University IT Services Research IT documentation pages.Note: This package has not yet been tested, generated or released on Pypi.Getting startedThe source code for this Sphinx theme is available at:https://github.com/rcgsheffield/tuos_its_sphinx_theme. You
can use this for your own Sphinx documentation by following the steps below.Install the packageThe latest released version can be installed from thePython Package:pipinstalltuos_its_sphinx_themeAmend your Sphinxconf.pyconfiguration fileTo use this Sphinx theme, modify your Sphinxconf.pyconfiguration file as follows:Add the theme in the list ofextensions:extensions=["tuos_its_sphinx_theme"]Make sure theauthor, andprojectvariables reflect your organisation name, and
projectSethtml_theme = "tuos_its_sphinx_theme"LicenceUnless stated otherwise, the codebase is released under the MIT License. This covers
both the codebase and any sample code in the documentation.
Package: tup
tupCommand line tool for uploading files to TelegramUsageLogging in, and Uploading a fileDotup fileto upload a file to your saved messages.  if you aren't logged in, it will automatically login for you.Other options-r username- which chat to send the file to (default: self)-c caption- the caption to send with the message-s- use a different session file-d- send the file as a documentLogging in with a different accountI'm sure many of you use multiple accounts, or alt accounts, so to use tup with different accounts,you can just use the-sflag to specify a different account.  It will be saved as another.sessionfile.For example:tup image.png -s personal_account
Package: tupa123
----------------------------------------------------------------Fully connected four-layer neural networkSolves a huge number of cases, classification and regressionFast, robust and very simple to use,this is the way(As long as python exists this project will exist)----------------------------------------------------------------#Manual =https://www.mediafire.com/file/xygt3o9zf7iw3id/Manual_Tupa123.pdf#Quick Guide =https://www.mediafire.com/file/a0db7fb3lfsxvaj/Guia_Rapido.pdf#Excel example data =https://www.mediafire.com/file/o2nzsmnvweh8w1a/ALETAS.xlsx#Excel example (old version) =https://www.mediafire.com/file/0xmx5quakd21txu/ALETAS.xls#-----FILE TO MACHINE LEARNING-----------------------------import tupa123 as tuX = tu.ExcelMatrix('ALETAS.xlsx', 'Plan1', Lineini=2, Columini=1, columnquantity=5, linesquantity=300)y = tu.ExcelMatrix('ALETAS.xlsx', 'Plan1', Lineini=2, Columini=6, columnquantity=2, linesquantity=300)model = tu.nnet4(nn1c=5, nn2c=7, nn3c=5, nn4c=2, namenet='tupa01')model.Fit_ADAM(X, y)model.Plotconv()input('end')#-----FILE TO APPLICATION OF MACHINE LEARNING--------------import tupa123 as tumodel = tu.nnet4(nn1c=5, nn2c=7, nn3c=5, nn4c=2, namenet='tupa01')X_new = tu.ExcelMatrix('ALETAS.xlsx', 'Plan1', Lineini=2, Columini=1, columnquantity=5, linesquantity=1000)y_resposta = tu.ExcelMatrix('ALETAS.xlsx', 'Plan1', Lineini=2, Columini=6, columnquantity=2, linesquantity=1000)y_pred = model.Predict(X_new)tu.Statistics(y_pred, y_resposta)tu.PlotCorrelation(y_pred, y_resposta)tu.PlotComparative(y_pred, y_resposta)input('end')
Package: tupas-verisigner
[![Build Status](https://api.travis-ci.org/adarshk7/tupas_verisigner.png)](https://api.travis-ci.org/adarshk7/tupas_verisigner)# TUPAS Verisigner## IntroductionThis package can be used to:* Receive a TUPAS request URL and parse it.* Calculate the signature using a shared input secret and query params.* Compare it to the signature in the URL.* And, generate a response URL with new signature based on an shared output secret.## Usage```from tupas_versigner import TupasVerisignersigner = TupasVerisigner(input_secret,            # Shared input secret.output_secret,           # Shared output secret.base_output_url,         # Base URL for the response.error_url                # Error URL to return if signature verification fails.encoding='Windows-1252'  # Optional, default: 'Windows-1252')signer.verify_and_sign_url(url)```For example,```from tupas_versigner import TupasVerisignersigner = TupasVerisigner('inputsecret','outputsecret''http://otherserver.com','http://otherserver.com/error.html')url = ('http://someserver.com/?B02K_VERS=0003&B02K_TIMESTMP=50020181017141433899056&''B02K_IDNBR=2512408990&B02K_STAMP=20010125140015123456&B02K_CUSTNAME=FIRST%20''LAST&B02K_KEYVERS=0001&B02K_ALG=03&B02K_CUSTID=9984&B02K_CUSTTYPE=02&B02K_MA''C=EBA959A76B87AE8996849E7C0C08D4AC44B053183BE12C0DAC2AD0C86F9F2542')signer.verify_and_sign_url(url)```> http://otherserver.com/?firstname=First&lastname=Last&hash= 4f6536ca2a23592d9037a4707bb44980b9bd2d4250fc1c833812068ccb000712## Tests`pip install -r requirements.txt`### Unit tests`pytest`### Linting`flake8 .``isort --recursive --diff . && isort --recursive --check-only .`
Package: tuplechanger
Changes values in tuples using ctypesImportant: Never use this in a real project! Hacked tuples might lead to unexpected results!fromtuplechangerimporttuplechangertutu=('babaxxiq',-2,3.44,True,800,1211)print(id(tutu))print(tutu)tuindex=0tuplechanger(tutu,tuindex,'bbbbxxxi')print(tutu)tuindex=1tuplechanger(tutu,tuindex,-4)print(tutu)tuindex=2tuplechanger(tutu,tuindex,13.44)print(tutu)tuindex=3tuplechanger(tutu,tuindex,False)print(tutu)tuindex=4tuplechanger(tutu,tuindex,17000)print(tutu)tuindex=5tuplechanger(tutu,tuindex,1111)print(tutu)print(id(tutu))# 1843849020512# ('babaxxiq', -2, 3.44, True, 800, 1211)# ('bbbbxxxi', -2, 3.44, True, 800, 1211)# ('bbbbxxxi', -4, 3.44, True, 800, 1211)# ('bbbbxxxi', -4, 13.44, True, 800, 1211)# ('bbbbxxxi', -4, 13.44, False, 800, 1211)# ('bbbbxxxi', -4, 13.44, False, 17000, 1211)# ('bbbbxxxi', -4, 13.44, False, 17000, 1111)# 1843849020512Why you shouldn't use it in a real project:# It looks pretty good as first sight, but ...# tutu[0] + 'xxxx'# Out[3]: 'bbbbxxxixxxx'# tutu[1] + 5# Out[4]: 1# tutu[2] + 5.999# Out[5]: 19.439# tutu[3] is False# Out[6]: True# tutu[4] > 15000# Out[7]: True# tutu[5] < 1200# Out[8]: True# tutu[-1] < 1200# Out[9]: True# tutu[-2] < 15000# Out[10]: True# tutu[-3] is False# Out[11]: True# tutu[-4] + 5.999# Out[12]: 19.439# tutu[1] + 5# Out[13]: 1# ... it isn't a good idea to hack tuples:# tutu[2] + tutu[4]   # positive index, everything is fine# Out[3]: 17013.44# WRONG!!!# tutu[-2] + tutu[-4] # negative index, crap# Out[6]: 26.88
Package: tupledict
tupledict: a multi-key dictionaryUsageThetupledict.TupleDictclass provides all the functionality of a regular dictionary.In addition you can use tuple-based keys:d=TupleDict()d[1,2,3]=123d[1,2,4]=124d[2,3,4]=234d[3,3,4]=334All keys should have the same length otherwise aKeyErrorwill be raised.  When setting values, keys should not containNonevalues.To retrieve values you can useNoneas a wildcard character.d[1,2,3]->123d[1,None,None]->[123,124]d[1,None,3]->[123]When a wildcard is used the dictionary returns a list of values.  When no wildcard is used the result is a single item.LicenseMIT LicenseCopyright (c) 2019 Anton DriesPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: tuple-flatten
The functionflatten(*argv)takes an arbitrary amount of tuples and returns the sum of of each indices’ value. The tuples should have the same length.Example:>>> from tuple_flatten import flatten>>> flatten((1, 5), (2, 7))(3, 12)::It is not necessary for all tuples to be equally sized, as long as each tuple in the arguments is either shorter or equally sized as its predecessor.Example:>>> flatten((1, 7), (3,))(4, 7)::
Package: tupu
tupu- Fast geodesic distances in PythonThis is apersonal projectcentered around geodesic distances.
Its goal is to be able to quickly compute, for every coordinate in a list:Distances to a given point (e.g. distances from each point to NYC)Nearest neighbors: distances to the closest point in another list (e.g. distances from each point to a city), and the identity of such pointNumber of neighbors: number of points of another list within a certain distance or buffer.Dev InstallAfter cloning the repo and opening the panflute folder:python setup.py install: installs the package locallypython setup.py develop: installs locally with a symlink so changes are automatically updatedUsageFrom Python:importtupu# TODO...From the command line:tupusome_cities.csv?id=uid--output=augmented.tsv--distance=dist_ny,40.7143,-74.0060(See also [examples/README.md])Dependencies:rtree(wrapper aroundlibspatialindex). Windows binariesherepyproj(wrapper aroundproj4)Why "tupu"?Tupu was one of the Inca measures of distance, equivalent to about 130 cm.
I would have preferred to use "topo", but it's already a quite popular name on Github, and has other meanings.Gordon McEwan, "The Incas: New Perspectives", p.179Jerry D. Moore, "Incidence of Travel: Recent Journeys in Ancient South America", p.208Why not geopandas, etc.?Earlier tests deemed them too slow/complicated, but there might be workarounds. EG:https://stackoverflow.com/questions/54804073/how-can-i-accelerate-a-geopandas-spatial-join/54804074#54804074LimitationsNot parallelized, although that should be trivialNot Cython, although most of the heavy load is already in C.Only deals with points, not with lines/polygonsCurrently only stores distance to closest city (although allowing more is trivial)Currently does not compute number of points within a given distance (although allowing more is trivial)
Package: turandot
TurandotFeature-rich, cross-platform graphical document converterFeaturesConversion from Markdown to PDF (extendable architecture for more formats)Graphical user interface in GTK (Linux) or Tk (Windows, MacOS)Layout and styling in CSS with extensive support of CSS3 printed page rules thanks toWeasyprintExtensive templating capabilities based onMakoandJinjaAutomatic handling of bibliographic references in combination withZoteroor CSLJSON files with formatting based on CSLRendering of mathematical formulas based onKaTeXAutomatic syntax highlighting in code blocks based onpygmentsAvailable as deb package with a Windows installer in progressLinksFull documentation(work in progress)Source CodeIssue Tracker
Package: turberfield-catchphrase
Catchphrase provides software components to build
parser-based interactive fiction for the web.Catchphrase is a Python library, and part of theTurberfieldnamespace.For a demonstration of such a project, see the repositorytea_and_sympathy.
You are free to download and experiment with that example.This framework makes heavy use of theturberfield-dialoguelibrary.
The documentation is at an early stage.FrameworkAdramaclass to encapsulate game logic.Aparsersystem which maps text phrases to drama methods and parameters.Apresenterclass which combines static dialogue with drama output.Rendererfunctions to animate the output in HTML or plain text.DramaDrama objects are responsible for the game logic of your story.
Any calculations, computations and state transitions get done there.I recommend the following techniques for organising your Drama code:Write unit tests for the dramas in your story, to drive out the bugs in your story logic.Partition your code into loosely-coupled modules, allowing you to share and re-use that logic.Use Python multiple inheritance to layer story-specific behaviour on top of mundane mechanics.Dramas work by implementing a generator method for a group of semantically similar
free-text commands. Each method declares the syntax of those commands in its docstring.The responsibility of a Drama method is also to yield strings of dialogue.
You splice these into the main narrative dialogue of your story.Drama methods can add or discard themselves or other methods from active duty.
In this way complex scenarios can be achieved while minimising the potential for unplanned
behaviour in game logic.ParserThe parser module provides functions to help drama objects respond to text input.The CommandParser class interrogates drama methods to determine what parameters they require.
Based on this information, and the declaration made in method docstrings, the parser generates
all commands understood in the current context of the drama.PresenterThe Presenter combines static dialogue with the generated output from a Drama object.Prepare aturberfield-dialogueFolder object.Create a Presenter from the Folder and the drama output.Call theanimatemethod to generate web frames ready for rendering.RendererThe Renderer is a namespace for functions which generate HTML5 elements from Presenter frames.
There is also support for plain text output.
Package: turberfield-dialogue
Turberfieldis the family name for a bunch of software components which support
game development. This particular package isturberfield-dialogue. It helps you
create dramatic dialogue or screenplay.You can read the fulldocumentation online.RoadmapTurberfield is aSurPRISE.SemanticTurberfield can be understood by machines or human beings.PersistentTurberfield can be stopped and saved for later.ReusableTurberfield can be turned into something else.InteractiveTurberfield listens to what you say.SimulationTurberfield knows what it’s talking about.forEconomics…or Education, or Entertainment. Turberfield is deadly serious.
And only a game.What’s missing?UR!If you’ve spotted a bug in Turberfield, please let me know so I can fix it.If you think Turberfield lacks a feature, you can help drive development by describing
your Use Case.In either event, please visit the project’sissue tracker.Author:tundishCopyright:2017 D HaynesLicence:GNU General Public License
Package: turberfield-dynamics
Turberfield is aSurPRISE.aSemanticTurberfield can be understood by machines or human beings.PersistentTurberfield can be stopped and saved for later.ReusableTurberfield can be turned into something else.InteractiveTurberfield listens to you.SimulationTurberfield knows what it’s talking about.forEconomics…or Education, or Entertainment. Turberfield is deadly serious.
And only a game.What’s missing?UR!If you’ve spotted a bug in Turberfield, please let me know so I can fix it.If you think Turberfield lacks a feature, you can help drive development by describing
your Use Case.In either event, please leave a message on the project’smessage board.RoadmapTurberfield’s mission is to provide a validated Pythonic framework for discrete
event simulations and turn-based games.It is developed by a private individual but released to the public under theGNU Affero General Public License.The API may change significantly as the project proceeds. At this early stage,
you should only use the latest release, which may not be compatible with
previous versions.RequirementsTurberfield requires Python 3.4. It usessetuptoolsfor installation.Quick startInstallturberfield-dynamics:$ pip install turberfield-dynamicsConsult the documentation:Python 3.4.0 (default, Mar 18 2014, 21:48:31)
[GCC 4.6.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import turberfield.dynamics.simulation
>>> help(turberfield.dynamics.simulation)Author:D HaynesCopyright:2014 Thuswise Ltd
Package: turberfield-eargain
Turberfield is aSurPRISE.aSemanticTurberfield can be understood by machines or human beings.PersistentTurberfield can be stopped and saved for later.ReusableTurberfield can be turned into something else.InteractiveTurberfield listens to what you say.SimulationTurberfield knows what it’s talking about.forEconomics…or Education, or Entertainment. Turberfield is deadly serious.
And only a game.What’s missing?UR!If you’ve spotted a bug in Turberfield, please let me know so I can fix it.If you think Turberfield lacks a feature, you can help drive development by describing
your Use Case.In either event, please leave a message on the project’smessage board.RoadmapTurberfield’s mission is to provide a validated Pythonic framework for discrete
event simulations and turn-based games.It is developed by a private individual but released to the public under theGNU Affero General Public License.The API may change significantly as the project proceeds. At this early stage,
you should only use the latest release, which may not be compatible with
previous versions.RequirementsTurberfield requires Python 3.4. It usessetuptoolsfor installation.InstallationDownload and unpack the source distribution:$ tar -xzvf turberfield-eargain-00.001.tar.gz
$ cd turberfield-eargain-00.001Run the tests:$ python3.4 -m unittest discover turberfieldAuthor:D HaynesCopyright:2014 Thuswise Ltd