Saravanan666/pypi-org huggingface dataset:
Package: trtimeextractor
The project was developed byWesterOps. The goal of the project is
to develop a library to find and extract time/date information from
textual documents.Why Should I Use This?The main goal is to identify texts fragments that are related to
time/date/period (exact date, time of day, day of the week, months,
seasons, time intervals, etc.) and make structural forms from them. We
tried to detect a variety of textual representations and handle things
like recurring times (e.g. “every Wednesday”).UsageTo use it, simply do:>>> from trtimeextractor import ExtractionService
>>> text = "ikinci aralık"
>>> ExtractionService.extract(text)APySettingscan be applied to specify some additional extraction
options, like setting local user date/time, time-zone offset, filtering
extraction rules and finding latest dates.PySettingsBuilderis used for constructingPySettingsinstance
when you need to set configuration options other than the default.PySettingsBuilderis best used by creating it, and then invoking its
various configuration methods, and finally calling build method.>>> from trtimeextractor import PySettingsBuilder
>>> settings = (PySettingsBuilder()
...          .addRulesGroup('DateGroup')
...          .excludeRules("relativeDateRule")
...          .addUserDate("2017-10-23T18:40:40.931Z")
...          .addTimeZoneOffset("2")
...          .includeOnlyLatestDates(True)
...          .build()
...         )
>>> ExtractionService.extract(text, settings)
Package: trtl
Hometrtl-py is a Python Wrapper for the JSON-RPC API of TurtleCoin, which integrates with TurtleCoind and WalletAPI.Installationpip3installtrtlRequirementsPython >= 3.6TurtleCoin version 0.24.0DonationIf you would like to support  the project, consider making a donation. :-)TRTLv1bq3QuXxJxqudVdR82uZBc61H3rgNAwZqU3e78TLiaMn8VRSACX9vamnUcG35BkQy6VfwUy5CsV9YNomioPGGyVhHH4DMcLicenseMIT License
Package: trtm
InstallFrom PyPI:pipinstalltrtmFrom the sources:gitclonehttps://github.com/seignovert/trtm.git&&cdtrtmpythonsetup.pydevelopUsage>>>fromtrtmimportTRTM>>>data=TRTM('1590648776_1',root='tests/data',suffix='test_SPSDISORT')>>>data.keys()['setup','wvlns','outputs','cube',...'FH',...'I_F',...'albedo_corr',...]>>>data['setup']{'Numéro cube et pixel':'C1590648776_1','NKS':4,...}>>>data['NKS']4>>>out['FH'].shape(5,3)>>>out['FH',3,5]0.900057>>>out['I_F'].shape(256,5,3)>>>out['I_F',5.0].shape(5,3)>>>out['I_F',1,1].shape(256,)>>>out['I_F',1,1,5.12]0.04082437994See examples inJupyter notebook examples.
Package: trtokenizer
TrTokenizer 🇹🇷TrTokenizer is a complete solution for Turkish sentence and word tokenization with extensively-covering language
conventions. If you think that Natural language models always need robust, fast, and accurate tokenizers, be sure that you are at the
the right place now. Sentence tokenization approach uses non-prefix keyword given in 'tr_non_suffixes' file. This file can be expanded if
required, for developer convenience lines start with # symbol are evaluated as comments.
Designed regular expressions are pre-compiled to speed-up the performance.InstallpipinstalltrtokenizerUsagefromtrtokenizer.tr_tokenizerimportSentenceTokenizer,WordTokenizersentence_tokenizer_object=SentenceTokenizer()# during object creation regexes are compiled only at oncesentence_tokenizer_object.tokenize(<givenparagraphasstring>)word_tokenizer_object=WordTokenizer()# # during object creation regexes are compiled only at onceword_tokenizer_object.tokenize(<givensentenceasstring>)To-doUsage examples (Done)Cython C-API for performance (Done, build/tr_tokenizer.c)Release platform specific shared dynamic libraries (Done, build/tr_tokenizer.cpython-38-x86_64-linux-gnu.so, only for
Debian Linux with gcc compiler)LimitationsPrepare a simple guide for contributionResourcesSpeech and Language ProcessingBogazici University CMPE-561
Package: trt-sdk
trt-sdk: c or c++ interface sdktrt_csdk: tensort c库接口c库接口 , 可用于py调用c库或者c库直接调用

tensorrt version 8.0 , 8.2 , 8.4

trt_csdk 8.0.0
trt_csdk 8.2.0
trt_csdk 8.4.0typedefvoid*CC_SDK_TRT_HANDLE;intcc_sdk_trt_init();intcc_sdk_trt_uninit();intcc_sdk_trt_delete(constCC_SDK_TRT_HANDLEhandle);intcc_sdk_trt_new(constchar*model_buffer,intbuffer_size,intdevice_id,constboolenableGraph,std::vector<std::vector<std::vector<int>>>&input_shape_,std::vector<std::vector<int>>&input_item_size_,std::vector<std::vector<std::vector<int>>>&output_shape_,std::vector<std::vector<int>>&output_item_size_,CC_SDK_TRT_HANDLE&instance);intcc_sdk_trt_process(constCC_SDK_TRT_HANDLEinstance,intnet_stage,constvoid*const*input_buffer_list,constintinput_num,constintbatch_size,void**output_buf_only_read,int*output_buf_size);
Package: trtutils
trtutilsUtilities for enabling easier high-level usage of TensorRT in Python.TRTEngineThe TRTEngine is a high-level abstraction allowing easy use of TensorRT
engines through Python. Once an engine is built, it is simple and easy to use:fromtrtutilsimportTRTEngineengine=TRTEngine("path_to_engine")inputs=read_your_data()foriininputs:print(engine.execute(i))We also provide an abstraction for defining higher-level models.
The TRTModel is designed to allow a user to define a pre and post
processing step along with the engine to create an end-to-end
inference object.fromtrtutilsimportTRTModel# scale some images downdefpre(inputs):return[i/255foriininputs]# access the output classes from object detectiondefpost(outputs):return[o[0][0]foroinoutputs]model=TRTModel("path_to_engine",pre,post)inputs=read_your_data()foriininputs:print(model(i))
Package: trubackup
trubackup is database backup program designed to work withopenedxdata sources, but not specific to it.trubackup is a wrapper aroundrestic.installationmanualMake sure that you have following software installed in your environment:Python 3.11resticmyloadermongodb-toolsThen, runpip installtrubackup==3.1.1.dockerdocker pull trubackup:3.1.1runningpreparationsYou need restic repository set up elsewhere for trubackup to operate. Consultrestic docsto do it.Before running trubackup make sure thatRESTIC_REPOSITORYandRESTIC_PASSWORDare set.configYou can useexample/trubackup.jsonin repo as a reference. All the sections
are mandatory, but you can setmysql,mongoands3to empty list if
you don’t want to backup those.There’s two ways to pass config location to trubackup:Put it in theTRUBACKUP_CONFIG_PATHenvironment variablePass it as the value of-cor--configcommand line flagIf neither is used, trubackup will /etc/trubackup.json as fallback.backupRuntrubackup backup. The last line in it’s output will be backup ID.list & showtrubackup listandtrubackup showare informational commands. You can
use the first one to show a list of available backups and the second one to
inspect individual backup contents.restoreRuntrubackup restore <BACKUP_ID>. Make sure to replace<BACKUP_ID>with your backup ID.running regularilyThere’s example systemd service & timer in systemd/ directory.deleting old backupsThere’scontrib/delete_old.pyscript in this repo that will runrestic forgetcommand with arguments adjustable by environment variables.Make sure that
you read the script before running it. It is destructive.
Package: truce
This project has been superseded by http://github.com/jangler/truce.An experimental text editor and/or shell (alpha status). Currently, it’s
essentially just a minimal text editor with the ability to pipe selected
text through an arbitrary shell command.Future plans include the ability to use the editor as a filter in pipes,
and the ability to use it to interact with shell-like or REPL-like
programs.Installation[sudo] pip[3] install truceUsageusage: truce [-h] [--version] [file]

positional arguments:
  file        file to edit

optional arguments:
  -h, --help  show this help message and exit
  --version   show program's version number and exit
Package: truckersfm.py
TruckersFM.pySimple API wrapper for TruckersFM, the popular simulating radio station.Table of contentsInstallation and setupUsageSupportInstallation and setupThis module is compatible with Python v3+You can install this module via PyPI:$pipinstalltruckersfm.pyUsagefromtruckersfmimportTruckersFMtruckersfm=TruckersFM()# Returns the song currently playingprint(truckersfm.currentSong())# Fetches current song titleprint(truckersfm.currentSongTitle())# Fetches current song artistprint(truckersfm.currentSongArtist())Without calling a function eachtime:currentSong=truckersfm.currentSong()Available Methods:currentSong()# Fetches current songcurrentSongTitle()# Fetches current song titlecurrentSongArtist()# Fetches current song artistcurrentPresenter()# Fetches current presentercurrentPresenterName()# Fetches current presenter's namecurrentShow()# Fetches current showcurrentShowTitle()# Fetches current show titleSupportIf you need help with anything, you should preferably contactBEAN#0001on discord. If that is not possible, feel free to open a new issue. Note that if the issue is invalid, it may be closed.
Package: truckersmp.py
TruckersMP.pyThis repository hosts the code of the TruckersMP API Wrapper, written in Python.Most of the API endpoints available are able to be called via a functionTable of contentsInstallation and setupUsageSupportContributingAcknowledgementsInstallation and setupThis module is compatible with Python v3+You can install this module via github or PyPI:$pipinstallgit+https://github.com/supraaxdd/TruckersMP.py.git$pipinstallTruckersMP.pyUsagefromtruckersmpimportTruckersMPtruckersmp=TruckersMP()# Returns the statuses of all servers.print(truckersmp.get_servers())# Fetches the information about the desired player.print(truckersmp.get_player("id of player"))# Can be a string or integer# Fetches the information about the desired VTC.print(truckersmp.get_vtc("id of vtc"))# Can be a string or integer# Fetches any bans on the desired player's account.print(truckersmp.get_bans("id of player"))# Can be a string or integerAvailable Methods:get_player(playerID)# Fetches Player dataget_bans(playerID)# Fetches any bans for a given playerget_servers()# Fetches information about serversget_in_game_time()# Fetches current in-game time which is synced across all serversget_version()# Fetches supported game versionget_events()# Fetches events from the index page in JSON formatget_event(eventID)# Fetches specific event using given eventIDget_vtc_index()# Fetches VTCs from the index page in JSON formatget_vtc(vtcID)# Fetches specific VTC data. Returns information such as roles, members, general information etc.get_vtc_member(vtcID,memberID)# Fetches a given member from the given VTCget_vtc_event(vtcID,eventID)# Fetches a given event from the given VTCget_rules()# Fetches all the rules in JSON formatSupportIf you need help with anything, you should preferably contact Supra#6561 or Blinkzy#3819 on discord. If that is not possible, feel free to open a new issue. Note that if the issue is invalid, it may be closed.ContributingFeel free to Fork & Clone the repository and make sure that it is on themaster branchas that branch is the most up to date one and the most stable.Make the changes that you want to propose and code whatever you want!Make sure that everything is good shape and then feel free to create aPull Requestwhich will be reviewed.AcknowledgementsMain Contributors: supraaxdd & ItzBlinkzy
Package: truckfactor
What is this?This tool,truckfactorcomputes thetruck (bus/lorry/lottery) factorfor a
given Git repository.The truck factor isthe number of people on your team that have to be hit by a truck (or quit)
before the project is in serious troubleL. Williams and R. Kessler, Pair Programming Illuminated. Addison Wesley, 2003.Installationpip install truckfactorRequirementsThe tool requires thatgitis installed and accessible onPATH.How to use it?You have to either point the tool to a directory containing a Git repository or
to a URL with a remote repository. In case a URL is given, the tool will clone
the repository into a temporary directory.From the terminal, the tool can be run as in the following:Usage:
  truckfactor <repository> [<commit_sha>] [--output=<kind>]
  truckfactor -h | --help
  truckfactor --version

Options:
  -h --help     Show this screen.
  --version     Show version.
  --output=<kind>  Kind of output, either csv or verbose.For example, in its most basic form it can be called like this:$truckfactor<path_or_url_to_repository>
Thetruckfactorof<path_to_repository>(<commit_sha>)is:<number>If nooutputswitch is given, the tool produces a single line output above. Otherwise, it will output a line in CSV format or in key: value form.Calling it from code:fromtruckfactor.computeimportmaintruckfactor,commit_sha,authors=main("<path_to_repo>")How does the tool compute the truck factor?In essence the tool does the following:Reads a git log from the repositoryComputes for each file who has theknowledge ownershipof it.A contributor has knowledge ownership of a file when she edited the most
lines in it.That computation is inspired byA. ThornhillYour Code as a Crime Scene.Note, only for text files knowledge ownership is computed. The tool may
not return a good answer for repositories containing only binary files.Then similar toG. Avelino et al.A novel approach for estimating Truck Factorslow-contributing authors are removed from the analysis as long as still more
than half of all files have a knowledge owner. The amount of remaining
knowledge owners is the truck factor of the given repository.Why does it exist?This tool was developed since in Dec. 2020, we could not find an open-source and readily installable tool to compute truck factors of projects on PyPI or Rubygems.AttributionsThe logo is combined from two logos from flaticon:Truck:Icons made byKiranshastryfromwww.flaticon.comWarning sign:Icons made byGregor Cresnarfromwww.flaticon.com
Package: trucklang
Truck is a dynamic programming language with a focus on simplicity.Exampleuse io

class Greeter {
  constructor(name) {
    this.name = name
  }

  salute() {
    io.println("Hello " + this.name)
  }
}

g = Greeter("world")
g.salute()Getting startedgitclonehttp://github.com/tarptaeya/truckcdtruck
python3-mtruck#[filename] or leave empty to run replSyntax highlightingSyntax highlighting for vim is supported and associated files can be found in the vim directory of the project. Either copy the files yourself or executeinstall_vim.shto automatically copy the vim files for you.
Package: truckle
A simple setuptools alternative for packing Python modules (with or without FFI bindings) intowheels.Installation and UsageThis library is available as apackage on PyPI:python -m pip install truckleThe library can be imported in the usual way:from truckle import truckleExamplesThe functiontrucklecan be used as follows:>>> path_to_wheel = truckle.truckle("/Documents/GitHub/mclbn256/pyproject.toml")
`mclbn256` v0.3.5 wheel built at /home/Documents/GitHub/mclbn256/mclbn256-0.3.5-cp39-abi3-macosx_12_0_arm64.whl
>>> path_to_wheel
'/home/Documents/GitHub/mclbn256/mclbn256-0.3.5-cp39-abi3-macosx_12_0_arm64.whl'DevelopmentAll installation and development dependencies are fully specified inpyproject.toml. Theproject.optional-dependenciesobject is used tospecify optional requirementsfor various development tasks. This makes it possible to specify additional options (such asdocs,lint, and so on) when performing installation usingpip:python -m pip install .[docs,lint]DocumentationThe documentation can be generated automatically from the source files usingSphinx:python -m pip install .[docs]
cd docs
sphinx-apidoc -f -E --templatedir=_templates -o _source .. && make htmlTesting and ConventionsAll unit tests are executed and their coverage is measured when usingpytest(see thepyproject.tomlfile for configuration details):python -m pip install .[test]
python -m pytestAlternatively, all unit tests are included in the module itself and can be executed usingdoctest:python src/truckle/truckle.py -vStyle conventions are enforced usingPylint:python -m pip install .[lint]
python -m pylint src/truckleContributionsIn order to contribute to the source code, open an issue or submit a pull request on theGitHub pagefor this library.VersioningBeginning with version 0.1.0, the version number format for this library and the changes to the library associated with version number increments conform withSemantic Versioning 2.0.0.PublishingThis library can be published as apackage on PyPIby a package maintainer. First, install the dependencies required for packaging and publishing:python -m pip install .[publish]Ensure that the correct version number appears in thepyproject.tomlfile and in any links to this package’s Read the Docs documentation that exist in this README document. Also ensure that the Read the Docs project for this library has anautomation rulethat activates and sets as the default all tagged versions. Create and push a tag for this version (replacing?.?.?with the version number):git tag ?.?.?
git push origin ?.?.?Remove any old build/distribution files. Then, package the source into a distribution archive using thewheelpackage:rm -rf build dist src/*.egg-info
python -m build --sdist --wheel .Finally, upload the package distribution archive toPyPIusing thetwinepackage:python -m twine upload dist/*
Package: truck-telemetry
truck-telemetryusingscs-sdk-plugin by RenCloudSCS Telemetry for EuroTruckSimulator 2 and AmericanTruckSimulatorSupported VersionCurrent supported:scs-sdk-plugin V.1.10.6scs-sdk-plugin V.1.12UseageDownload supported version scs-sdk-plugin, and follow theguideto install.pip install truck-telemetryimporttruck_telemetrytruck_telemetry.init()# read data, it`s slow... cache what you need.data=truck_telemetry.get_data()# type: dict# using dataspeed=data["speed"]# type: floatMore dict keys:scs-telemetry-common.hpp(V.1.10.6)scs-telemetry-common.hpp(V.1.12)
Package: trucotrack
TrucoTrack - Command line client for motion capture toolsTrucoTrack is a program intended to serve as a helper when using motion capture software (like MediaPipe). It defines a CSV file format for each of the available trackers and lets you easily call them from a command line.UsageExamples of Command Line UsageDisplay the Command Line HelpDocumentationFile FormatsFile Format for MediaPipe Hand TracksFile Format for MediaPipe Face TracksFile Format for MediaPipe Pose TracksDevelopmentCheck thereleasesand ourroadmap and releasesdocument. Only versions 0.x.x will be released until the tool is ready for production. (If ever.)How to Contribute with the DevelopmentTrucoTrack has been released under aGPLv3 LicenseWarning: Unfinished WorkPlease take into account that this is an experimental software still in development. Unfinished, unpolished, incomplete and probably buggy. If you use it, please expect some inconsistencies and crashes.
Package: true50
[![PyPi](https://img.shields.io/pypi/v/true50.svg?style=flat)](https://pypi.python.org/pypi/true50)
[![Python versions](https://img.shields.io/pypi/pyversions/true50.svg?style=flat)](https://www.python.org/)# True50True50 is a Python script to open [true5050.com] links. It supports both Python 2 and 3.### InstallationThe code is available on [PyPi], you should be able to install using`sh $ pip install true50 `or`sh $ easy_install true50 `### UsageStraightforward :`sh true50 <true5050.com url> `### TechTrue50 uses a number of open source Python libraries:[Requests] : Make easy HTTP requests[BeautifulSoup] : Web scrapping python libraryMore informations on the versions used are available in [requirements.txt](./requirements.txt).### HelpThis is a small project, but help is more than welcome!Don’t hesitate to open an issue or pull request, I’ll get to it ASAP.[true5050.com]:http://true5050.com[PyPi]:https://pypi.python.org/pypi[Requests]:http://docs.python-requests.org/en/latest/[BeautifulSoup]:http://www.crummy.com/software/BeautifulSoup/
Package: truecase
TrueCaseA language independent, statistical, language modeling
based tool in Python that restores case information for text.The model was inspired by the paper ofLucian Vlad Lita  et al., tRuEcasIngbut with some simplifications.A model trained on NLTK English corpus comes with the package by default,
and for other languages, a script is provided to create the model. This model is
not perfect, train the system on a large and recent dataset to achieve
the best results (e.g. on a recent dump of Wikipedia).PrerequisitesPython 3The project uses NLTK. Find install instructionshere.Installingpip3installtruecaseUsageSimple usecase:>>>importtruecase>>>truecase.get_true_case('hey, what is the weather in new york?')'Hey, what is the weather in New York?''Training your own modelTODO. For now refer to Trainer.pyContributingI see a lot of space for improvement. Feel free to fork and improve. Do sent a pull request.AuthorsDalton Fury-Initial work-daltonfury42LicenseThis project is licensed under the MIT License - see theLICENSE.mdfile for detailsAcknowledgmentsLucian Vlad Lita  et al., tRuEcasIngBorrowed a lot of code, and the idea fromtruecaserbynreimers
Package: truechecker
True Checker for PythonPython client library forTrue Checker APIHow to installpipinstalltruecheckerHow to use# import TrueCheckerfromtruecheckerimportTrueChecker# create an instance (poss your Telegram bot token here)checker=TrueChecker("your_bot_token")# prepare a file with users ids# you should use string path, pathlib.Path object or io.BaseFilefile_path="downloads/users.csv"# send request to create a new jobjob=awaitchecker.check_profile(file_path)print("Job created. ID:",job.id)# get the status of jobjob=awaitchecker.get_job_status(job.id)print("Job state:",job.state)print("Job progress:",job.progress)# if the job is done, let's get the profileprofile=awaitchecker.get_profile("my_bot_username")print("Bot profile:",profile)# if you need to cancel the jobjob=awaitchecker.cancel_job(job.id)print("Job state:",job.state)# Cancelled# Don't forget to close checker on your app's on_shutdownawaitchecker.close()CAUTION: it's not a full code example. Await statements should be used within coroutines only.ContributingBefore making Pull/Merge Requests, please read theContributing guidelines
Package: truecolor
A True color terminal library for Python — similar in function to thetermcolor library. It
allows one to output color text in supported terminals using escape
codes.Available functionsbold- Return a bolder version of a color tuple.dim- Return a dimmer version of a color tuple.hex_to_rgb- Return a tuple of (red, green, blue) for a color
given as #rrggbb.rgb_to_hex- Return color as #rrggbb for the given color tuple
or component values.fore_text- Return text string with foreground only set.color_text- Return text string with foreground and background
set.fore_print- Print text string with foreground only set.color_print- Print text string with foreground and background
set.
Package: truecolor.py
truecolorA better console color library for pythonGitHubPyPIPrint Colored Textfromtruecolorimportfg,resetfromosimportsystemsystem('cls')print(f"{fg('magenta')}This{fg((255,0,0))}is{fg('magenta')}magenta text!{fg('#ff8243')}This is the exact hex color #ff8243 :){reset}")Output
Package: true-detector
True DetectorA tool designed to identify unused code.Quick startInstall with pippipinstalltrue-detectorRun the scripttrue-detectorManual setupClone repositorygitclonehttps://github.com/BigBlackWolf/true-detector.gitcdtrue-detectorCreate virtual environment and install dependanciespython-mvirtualenvvenvsourcevenv/bin/activate

pipinstall-rrequirements.txtRun the command against needed directorypythonsrc/true_detector/main.py