Saravanan666/pypi-org huggingface dataset:
Package: ticktock
Tick Tock adds least-recently-used cache management and automatic data timeout
to Python’sShelfclass.>>># Make your shelves manage your data based on time and/or size:...myshelf=ticktock.open('myshelf',timeout=60,maxsize=50)>>>myshelf['foo']='value'>>>myshelf['foo']'value'>>># Wait 60 seconds, then try again:...myshelf['foo']...KeyError:'foo'>>>len(myshelf)50>>>myshelf['bar']='value'>>># Adding 'bar' kicks the least-recently-used key off the Shelf...len(myshelf)50InstallTick Tock supports Python 2.6, 2.7, and 3.To install, use pip:$pipinstallticktockDocumentationTick Tock’s documentationcontains a
gentle introduction along with a complete API overview. For more information
on how to get started with Tick Tock, this is where you should look.Bug/Issues TrackerTick Tock uses itsGitHub Issues pageto track
bugs, feature requests, and support questions.LicenseTick Tock is released under the OSI-approvedMIT License. See the fileLICENSE.txtfor more information.
Package: tickvault-python-api
# TickVault Python Query APIPython API that provides programmatic access to micro and nanosecond-scale trading data on a TickVault platform from TickSmith. Portals with accessible data include [Thomson Reuters Tick History](https://trdata.tickvault.com) and [Nasdaq-CX](https://nasdaq-cx.ticksmith.com).## InstallationUsing pip:```bashpip install tickvault-python-api```## Example UsageGet the bid/ask spread of TD on CHIX on May 4th, 2017```pythonfrom tickvaultpythonapi.nasdaqcxclient import NasdaqCxClientnasdaq = NasdaqCxClient(user_name=<USER_NAME>, secret_key=<API_KEY>)result = nasdaq.query_hits(source="CHIX", tickers="td",fields="ts,askprice,bidprice",start_time=20170504093000, end_time=20170504160000,predicates="ask_size > 10 and bid_size > 10 and line_type like Q",limit=1000000)df = nasdaq.as_dataframe(result)df.plot()```
Package: tickytacky
TickytackyDescriptionThis library aims to make it easy to make retro-style games with Pyglet.Install from pypiCreate a virtualenvironment with python3 and install with pip:pip3 install tickytackyInstalling with PoetryInstall poetry according to thepoetry docs.Then, create a virtual environment with python3 and install with poetry.poetry installExamplesExamples can be found here, in the examples, repo:Tickytacky ExamplesSprite MakerThe sprite library contains a small Flask app you can run to assist with making
sprites.Example:python3 tickytacky/sprite.pyThen openhttp://0.0.0.0:5000/to start using the sprite maker.Select colors from the large color button. It's an HTML5 color selector, so it will
use your system's color picker to select any color.Click the "Create Color option" to add it to the palette.Choose that color from the palette options and draw with it. By default, the color name
will show as undefined, but you can change that in the text box.If you remove a color from the palette, all pixels with that color will also be removed.When done drawing, name the sprite and click the "Export" button. This will create a
new page which will show the JSON format for the sprite you drew.Copy that info into a JSON file in your game.
Package: ti-cloud-infer-framework
框架环境变量环境变量说明默认值TI_MODEL_DIR模型路径/data/modelTI_PREPROCESS_NUMS预处理进程数0TI_INFERENCE_NUMS推理进程数1TI_POSTPROCESS_NUMS后处理进程数0TI_INFERENCE_MAX_BATCH_SIZE推理Batch数1说明当TI_PREPROCESS_NUMS==0且TI_POSTPROCESS_NUMS==0时;model_service.py 文件中preprocess，postpress，predict 函数在一个进程中执行否则，model_service.py 文件中preprocess, postpress, predict 函数分别处于不同进程中执行，load 函数与predict 函数处于同一进程;
Package: ti-containers
TI Containers了解 TI ContainersTI Containers 是腾讯云智能钛机器学习平台 TI-ONE 提供的 TI SDK 训练任务的容器环境初始化工具。TI Containers 支持基于Tensorflow、Pytorch、MXNet、Scikit-Learn框架，以及Horovod的提交的训练任务初始化准备工作。用户可基于 TI Containers，构建符合自身应用的训练镜像。安装 TI Containers环境要求Python2.7、Python3.6及以上源码安装python setup.py install生成whl包python setup.py bdist_wheelTI Containers 训练规范目录规范用户在通过TI SDK提交训练任务后，TI训练后台将会初始化训练任务的容器环境，主要包括：拉取训练的多个通道数据到输入数据目录/opt/ml/input/data/，以通道名称进行目录布局构建训练实例需要的超级参数配置、资源配置、通道配置到输入配置目录/opt/ml/input/config/若用户提供训练entry point，拉取训练代码到代码目录/opt/ml/code例如，某个训练任务，TI SDK构建的目录结构形式如下：|-- code
|   `-- train.py
|-- input
│　　`── config
│　　    ├── hyperparameters.json
│　　    └── resourceconfig.json
│　　    └── inputdataconfig.json
|   `-- data
|       `-- train
|           `-- train.tfrecords
|       `-- test
|           `-- test.tfrecords
|-- model
`-- output
    `-- failure具体的目录含义为：名称路径备注代码目录/opt/ml/code/存放训练代码的目录输入目录/opt/ml/input/存放训练输入相关的目录输入配置目录/opt/ml/input/config/存放训练相关的配置文件超级参数文件/opt/ml/input/config/hyperparameters.json训练任务的超参数列表，json格式，读取值是为string格式资源配置文件/opt/ml/input/config/resourceconfig.json训练任务的资源信息，json格式，主要包括current_host和hosts通道配置文件/opt/ml/input/config/inputdataconfig.json训练任务的输入数据源信息，json格式，读取值主要是通道名称输入数据目录/opt/ml/input/data/存放训练数据的目录，以通道名称为进行目录布局模型目录/opt/ml/model/模型文件将被自动压缩为tar包格式上传到COS输出目录/opt/ml/output/存放训练过程的日志文件，训练失败时将把FailReason写进failure文件其中/opt/ml/input/config/resourceconfig.json的具体示例如下：{"current_host":"timaker-test-worker-0.worker.timaker-test.svc.cluster.local","hosts":["timaker-test-worker-0.worker.timaker-test.svc.cluster.local"]}/opt/ml/input/config/hyperparameters.json的具体示例如下：{"ti_enable_gpu_exclusive":"true","batch-size":"128","ti_enable_cls_log":"true"}/opt/ml/input/config/inputdataconfig.json的具体示例如下：{"training":{"TrainingInputMode":"File"}}环境变量TI Containers 提供了训练环境各种资源和参数环境变量定义，在训练脚本中可以直接访问这些环境变量获取相关属性，包括：名称含义TM_NUM_GPUS表示训练实例可用的GPU数目TM_NUM_CPUS表示训练实例可用的CPU数目TM_HPS表示训练任务指定的超参数列表，json表示；例如{"train-steps": 500, "batch-size": 128}TM_CURRENT_HOST表示训练任务的Host名称，例如algo-host-0TM_HOSTS表示训练任务的Host列表，json表示；例如["algo-host-0"，"algo-host-1"]TM_CHANNELS表示通道名称列表，默认为["training"];若设置train和test两个通道，则对应的环境变量是["train"、"test"]TM_CHANNEL_XXX表示输入训练数据的路径，XXX对应通道的名称，默认为training；若设置train和test两个通道，则对应的环境变量是TM_CHANNEL_TRAIN和TM_CHANNEL_TESTTM_MODEL_DIR表示训练实例中模型的输出路径，值为/opt/ml/modelTM_OUTPUT_DATA_DIR表示训练实例中输出数据的路径，值为/opt/ml/output/data，包括failure等文件TM_INPUT_CONFIG_DIR表示训练实例中输入配置的路径，路径下包括hyperparameters.json、resourceconfig.json、inputdataconfig.jsonTM_NETWORK_INTERFACE_NAME表示训练实例中使用的网卡设备名称，如eth0启动规范TI SDK 训练任务执行train命令启动训练：TI Containers已支持train命令启动训练，因此所有内置镜像均已支持train命令启动；如果是自定义镜像任务，你需要构建自己的train命令，并放入系统环境变量中，以便启动训练；自定义镜像任务具体参见使用自定义镜像训练模型
Package: tic-set-screen
tic-set-screenA command line tool for replacing the cover image of a TIC-80 .tic cartridge fileAboutAs of TIC-80 version 0.90, the cover image for a cartridge is saved as a dump of the screen data. This is displayed using the cartridge's built-in palette, which will be the default Sweetie16 (or DB16) palette if a custom palette has not been explicitly set up through the TIC-80 sprite editor. Notably, poking the palette memory from a running program doesnotwrite those palette changes back to the cartridge file.This is problematic for many size-coded / byte battle / byte jam releases, as they consist only of code and no supporting data - a program that sets a custom palette will end up with a cover image displayed in false colours. Additionally, there's no way to capture scanline-level palette changes performed with SCN or OVR.In the absence of a "proper" fix,tic-set-screenallows you to supply an arbitrary 16-colour image, and generates a new .tic cartridge file with the screen and palette chunks modified to use that as the cover image.(Note that, since the cartridge's built-in palette is changed, a program that only pokes some of the palette memory and relies on default values for the rest could end up looking different. If this is a problem, you can still usetic-set-screento prepare a metadata cart for uploading to tic80.com.)InstallationWith Python 3.7 or above installed, run:pipinstalltic-set-screen(Depending on your Python setup, the command may bepip3rather thanpip. You can also install it into a Python virtual environment, if that's your jam.)Usagetic-set-screeninput_cart.ticcover_image.pngoutput_cart.ticThe cover image must be 240x136 and use a maximum of 16 colours. It can be PNG, GIF, orany other format recognised by Pillow.
Package: tic-tac-game
Welcome to TIC TAC TOE gameHi! This program is all about Tic Tac Toe game. It has two options:Versus Bot -> With this mode you can play tic tac toe game against computer. Computer plays with random function. So it does not know what it is doing.Play Friend -> With this mode you can play tic tac toe game with your friend.This game has nice looking UI with the help of Tkinter module. Just play!
Package: tictacsync
tictacsyncWarning: this is at pre-alpha stageUnfinished sloppy code ahead, but should run without errors. Some functionalities are still missing. Don't run the code without parental supervision. Suggestions and enquiries are welcome via thelists hosted on sourcehut.Descriptiontictacsyncis a python script to sync audio and video files shot
withdual system soundusing a specific hardware timecode generator
calledTic Tac Sync. The timecode is named YaLTC foryet
another longitudinal time codeand should be recorded on a scratch
track on each device for the syncing to be performed, later inpostprodbefore editing.Statustictacsyncscans for audio video files and displays their starting time and then merges overlapping audio and video recordings. Multicam syncing with one stereo audio recorder has been tested (spring 2023,see demo). Multi audio recorders coming soon...InstallationThis uses thepython interpreterand multiple packages (so you need python 3 + pip). Also, you need to install two non-python command line executables:ffmpegandsox. Make sure those areaccessible through yourPATHsystem environment variable.
Then pip install the syncing program:pip install tictacsyncThis should install python dependenciesandthetictacsynccommand.UsageDownload some sample fileshere, unzip and runtictacsync sampleFilesThe resulting synced videos will be in a subfolder namedtictacsynced. For a very verbose output add the-vflag:tictacsync -v sampleFilesWhen the argument is an unique media file (not a directory), no syncing will occur but the decoded starting time will be printed to stdout:tictacsync sampleFiles/canon24fps01.MOV

Recording started at 2023-04-23 01:09:08.1605 UTC
true sample rate: 48000.545 Hz
first sync at 37414 samples
N.B.: all results are precise to the displayed digits!When called with the-pflag, zoomable plots will be produced for diagnostic purpose (close the plotting window for the 2nd one) and the decoded starting time will be output to stdin:tictacsync -p sampleFiles/canon24fps01.MOVTypical first plot produced :Typical second plot produced (note the 34FSKencoded bits0010111101001111100110000110010000):
Package: tic_tac_taco_pizza
tic_tac_taco_pizza🐍🌮🍕 Play tic tac toe, with taco and pizzaContentstic_tac_taco_pizzaInstallationUsageOptionsDemoPremiseHow it worksambitious plan 😱whenconclusionInstallationtic_tac_taco_pizzarequires Python 3.6+ andclick.It is recommended that you install tic_tac_taco_pizza using a virtualenvironment.$ python3 -m venv venv
$ source venv/bin/activate
$ pip install tic_tac_taco_pizzaUsage$ tic_tac_taco_pizza [--token TOKEN]Options--token TOKEN        specify a token, one of: `taco`, `pizza`, 🌮 , or 🍕If--tokenis not passed, you will be asked to choose a token.Demohttps://asciinema.org/a/132421PremiseLets you play Tic Tac Toe, with 🌮 and 🍕 instead of ⭕ and ❌.How it worksYou’ll be asked, 🌮 or 🍕A 👊 📃 ✂️  (rock, paper, scissor) will determine the next playerKeep playing until it ends.Exit anytime byctrl-Cambitious plan 😱make into mobile app withTogawhenv 0.1.0 was made during PyConAU 2017 sprint.conclusion🌮 is the new 🎉
Package: tictactai
tictactAIPlay against a tic tac toe AI in the shell, implemented with the minimax algorithm.Installationpip install tictactaiHow to playOpen a new terminal or cmd and run:tictactaiAlternatively, to play against a friend:tictactai --pvpStart the game and make subsequent moves by clicking on an empty position on the board.Expanding the terminal/cmd window may be needed for optimal performance.
Package: tictactoe-abhay
tictactoe-abhayInstallationpip install tictactoe-abhayExamplefrom tic_tac_toe.TicTacToe import TicTacToe
game = TicTacToe("player 1", "player 2")
game.play_turn(5)
print(game.get_board())>>>|1|2|3|
   -------
   |4|x|6|
   -------
   |7|8|9|Methods and AttributesAttributesplayer_1:str name of player 1 (Default "player_1")
    player_2:str name of player 2 (Default "player_2")
    winner:str name of player if winner (Default "")
    player_1_turn:bool priorty bit to keep track of player order(Init true)
    board:list stores the state of the boardMethodsget_winner()get the name of the winnerget_board()return a str state of the boardplay_turn(spot:int)updates the board based on the spot and return status
status(int):
   +1  : game has ended
   +0  : successful in placing the spot
   -1 : filled spot was selected
Package: tic-tac-toe-api-bot
GitHub:Usage Exampleimporttic_tac_toemap=tic_tac_toe.Field(clear_place_sign='',player_sign='x',bot_sign='o',turn='player')#default values (turn is randomed if defaut, posible ['bot','player'])bot=tic_tac_toe.Bot(map,level=100)#print(map.is_payer_turn())#>> Trueprint(map.get_map())#>> [['', '', ''], ['', '', ''], ['', '', '']]print(map.make_move(position=[0,0],skip_check=False,place_anyway=False))#position = [0-2,0-2],skip_check - if True, skips check for turn, place_anyway - skip check if place free#>> False # it prints if someone won after that (could be "bot","player","draw" (when no places free and anyone win),False)print(map.get_map())#>>[['x', '', ''], ['', '', ''], ['', '', '']]print(map.is_payer_turn())# >> Falseprint(bot.make_move())# >> Falseprint(map.get_map())#>> [['x', 'o', ''], ['', '', ''], ['', '', '']]print(map.is_payer_turn())# >> Trueprint(map.make_move(position=[0,1],skip_check=False,place_anyway=True))# Falseprint(map.get_map())#>> [['x', 'x, ''], ['', '', ''], ['', '', '']]print(map.is_payer_turn())# >> Falseprint(map.make_move(position=[0,2],skip_check=True,place_anyway=False))# playerprint(map.check_win())#player
Package: tic-tac-toe-backend
tic-tac-toe-backendSDK Installationpipinstalltic-tac-toe-backendSDK Example UsageExampleimporttic_tac_toe_backendss=tic_tac_toe_backends.TicTacToeBackends()res=s.get_()ifres.bodyisnotNone:# handle responsepassAvailable Resources and OperationsTicTacToeBackends SDKget_- Root endpoint.get_version- Root endpoint.put_games- Games endpoint. Creates the next game state from the previous game state.Error HandlingHandling errors in this SDK should largely match your expectations.  All operations return a response object or raise an error.  If Error objects are specified in your OpenAPI Spec, the SDK will raise the appropriate Error type.Error ObjectStatus CodeContent Typeerrors.SDKError4x-5xx/Exampleimporttic_tac_toe_backendsfromtic_tac_toe_backends.modelsimporterrorss=tic_tac_toe_backends.TicTacToeBackends()res=Nonetry:res=s.get_()excepterrors.SDKErrorase:# handle exceptionraise(e)ifres.bodyisnotNone:# handle responsepassServer SelectionSelect Server by IndexYou can override the default server globally by passing a server index to theserver_idx: intoptional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:#ServerVariables0http://localhost:5000/None1https://localhost:5000/NoneExampleimporttic_tac_toe_backendss=tic_tac_toe_backends.TicTacToeBackends(server_idx=1,)res=s.get_()ifres.bodyisnotNone:# handle responsepassOverride Server URL Per-ClientThe default server can also be overridden globally by passing a URL to theserver_url: stroptional parameter when initializing the SDK client instance. For example:importtic_tac_toe_backendss=tic_tac_toe_backends.TicTacToeBackends(server_url="http://localhost:5000/",)res=s.get_()ifres.bodyisnotNone:# handle responsepassCustom HTTP ClientThe Python SDK makes API calls using therequestsHTTP library.  In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with a customrequests.Sessionobject.For example, you could specify a header for every request that this sdk makes as follows:importtic_tac_toe_backendsimportrequestshttp_client=requests.Session()http_client.headers.update({'x-custom-header':'someValue'})s=tic_tac_toe_backends.TicTacToeBackends(client:http_client)MaturityThis SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage
to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally
looking for the latest version.ContributionsWhile we value open-source contributions to this SDK, this library is generated programmatically.
Feel free to open a PR or a Github issue as a proof of concept and we'll do our best to include it in a future release!SDK Created bySpeakeasy
Package: tictactoe-enhanced
TicTacToe EnhancedTicTacToeEnhanced is a Python package that provides functionality for playing the old classic Tic Tac Toe game.The library allows you to play any size 3x3 4x4 10x10 or even 100x100 if you have a big enough screenThe default size is 3x3InstallationYou can install TicTacToeEnhanced using pip:pipinstalltictactoe_enhancedUsageEncodingfromtictactoe_enhancedimportTicTacToegame=TicTacToe(size=4)game.play_game()Enjoy :)ContributingContributions are welcome! If you find any issues or have suggestions for improvement, please open an issue or submit a pull request onGitHub.LicenseThis project is licensed under theMIT LicenseYou can now copy this code and use it as your README.md file.
Package: tic-tac-toe-game
Tic Tac Toe GameFeaturesTODORequirementsTODOInstallationYou can installTic Tac Toe GameviapipfromPyPI:$pipinstalltic-tac-toe-gameUsagePlease see theCommand-line Referencefor details.ContributingContributions are very welcome.
To learn more, see theContributor Guide.LicenseDistributed under the terms of theMIT license,Tic Tac Toe Gameis free and open source software.IssuesIf you encounter any problems,
pleasefile an issuealong with a detailed description.CreditsThis project was generated from@cjolowicz'sHypermodern Python Cookiecuttertemplate.
Package: tictactoe-gpt-finetuning
Simple python implementation of Tic Tac Toe.Designed to make GPT able to recognize valid moves in Tic Tac Toe$ pip install tictactoe-gpt-finetuningExamplesGenerate a game:fromtictactoe_gpt_finetuningimporttictactoeprint(tictactoe.generate_random_game())Generate many games:fromtictactoe_gpt_finetuningimporttictactoeprint(tictactoe.generate_n_games())Initialize and use the game board to place in top left:fromtictactoe_gpt_finetuningimporttictactoeb=tictactoe.BoardState()b.make_move(0,0,'x')print(b)# output:# x - -# - - -# - - -Train a ModelWe can compare inputs to outputs of the model, and compare
predictions of the model before and after finetuning.fromtictactoeimportModel,finetune,compare_tictactoe_predictionsgpt=Model()# See what predictions look like before finetuningcompare_tictactoe_predictions(gpt)# Fine-tune the modelfinetune(gpt,n_epochs=10)# See what new predictions look like after finetuningcompare_tictactoe_predictions
Package: tictactoelib
This library allows to easily create front-ends for ultimate-tic-tac-toe game.
It takes care of game rules, validating the arguments, calling the right
functions.run.luais an example how this library can be used. To try out:tictactoelib/run.lua \
    tictactoelib/examples/dumb_player.lua \
    tictactoelib/examples/dumb_player.luaThe file takes two arguments: Lua files, which implement a player.tictactoelib/examples/dumb_player.luais a demo player which marks a first
available slot.  Command-line example above makes it fight with itself.See comments intictactoelib/examples/dumb_player.luahow to implement a
player (it could also be something that takes events from UI).For human-readable game rules, see ultimate-tic-tac-toe’swebsite.CompatibilityLibrary is written in pure Lua, is tested to be compatible with Lua5.1, Lua5.2
and luajit.
Package: tictactoetools
tictactoetoolstictactoetools is a Python package that provides functionality for building games of Tic-Tac-Toe with customizable features
and storing the data of matches in a database.InstallationTo install the tictactoetools package, you can use the following command:pip install tictactoetoolsUsageBuiltin FunctionsThe package includes several built-in functions that facilitate the gameplay and interaction with the Tic-Tac-Toe game.
These functions provide functionality for playing matches, creating new matches, prompting user input, managing player moves,
and handling rematch options. There are also builtin functions for working with the database (see "Database")The builtin play() function is an example of how all the functions can work together to make a Tic-Tac-Toe game, as well
as logging data on the database.DatabaseThe tictactoetools package includes several built-in functions that facilitate working with the database, such as logging
matches, retrieving player IDs, checking username existence, creating new users, and fetching player and match statistics.The database for this package consists of the following tables:Table: playersplayer_id: Unique identifier for each player.username: The username of the player.Table: matchesmatch_id: Unique identifier for each match.player1_id: The ID of the first player in the match.player2_id: The ID of the second player in the match.start_time: The start time of the match.end_time: The end time of the match.board: The game board data for the match.winner_id: The ID of the player who won the match.Board ClassTheBoardclass represents the internal Tic Tac Toe game board. It provides functionality to manage and display the board
state, check for a winner, mark cells with player symbols, and perform other board-related operations.Match ClassTheMatchclass is a data class responsible for storing information about the players, start and end times of a match,
the board configuration, and the winner.ContributingContributions to the tictactoetools package are welcome! If you encounter any issues or have suggestions for improvements,
please create an issue on the GitHub repository.LicenseThis package is licensed under the MIT License. See the LICENSE file for more information.