Saravanan666/pypi-org huggingface dataset:
Package: tmux-helper-filetransfer
tmux-helper-filetransferTransfer files to filesystem of host accessible via tmux.UsageIntmux.conf:bind-key Q run-shell " \
    /path/to/.venv/bin/python \
    -m tmux_helper_filetransfer \
    --pane-id '#{pane_id}' \
    --tmux-exe /proc/#{pid}/exe \
    --tmux-socket '#{socket_path}' \
    --quiet \
    /path/to/dotfiles"This transfers/path/to/dotfilesto the current directory in the remote
shell. To take other actions (likecding to a specific directory before
transferring files), then run a shell script that executes the
helper inside.RequirementsThe target pane can be hosting a terminal on the local host or on a remote
host (accessed via e.g. ssh).The target pane's shell must be able to successfully executeuudecode | gunzip -c - | tar xf -.The target pane's shell must be in insert mode (not vi-command mode).LimitationsSome or all of these may be possible to overcome.Currently the local file processing requires that the entire file be held in
memory at the same time, plus extra when both the tar and compressed objects
are in scope - we would need streaming for the tar creation the compression
and uuencoding.uuencodeexpands the compressed bytes at least 33%.Tmux itself is not responsive while executing the subprocess. - we could run
a background process instead of blocking.No progress indication - a periodicdisplay-messagewould be the first
thing to try.No ability to cancel an in-progress transfer - if spawning a background
process then giving the cli the ability to communicate via e.g. unix socket
could be a good way to go.Releasingpython setup.py sdist
# for testing
twine upload --repository testpypi dist/*
twine upload --repository pypi dist/*
Package: tmuxipy
Manage Tmux sessions legitlyFree software: BSD licenseDocumentation:https://tmuxipy.readthedocs.org.Installationpip install tmuxipyFeaturesSetup simple and complex tmux configurations for your projects.Supports only Json config currently.Usagetmuxipy -c <path_to_your_config.json>or justtmuxipySample Confighttps://github.com/milin/tmuxipy/blob/master/examples/three_pane.jsonHistory0.1.0 (2015-4-14)First release on PyPI.
Package: tmux-list-learner
tmux-list-learnerPurposeThis is a tool to help you learn lists during day-to-day software development. When creating new tmux windows, each will be given the name of a list item, such as wonders of the ancient world. For each session, the list will be randomly chosen, but each window name (once you create it) within a list will appear in a consistent ordering.Note that spaces are not currently supported.InstallTo use this, installtmux-list-learnerso it can be accessed in your path:python3 setup.py install --userNext, add the lines intmux.conf.appendto your~/.tmux.confA default set of things to learn is created in your user config directory on first run. On Linux, this is~/.config/tmux-list-learner/list.yaml
Package: tmuxp-combine
A tool for combining tmuxp configs.Why?tmuxis a great tool. In some cases, you would like to start it with
preconfigured windows instead of creating them manually each time.tmuxpis a great tool for doing that.I found out that in some cases I wanted to load only a subset of
particular windows, so I wrote simple tool which combines the configs
and callstmuxpwith combined config.Sample config~/.tmuxp-combine/mysession/base.yml:session_name:mysessionstart_directory:~/projects/myproject~/.tmuxp-combine/mysession/windows/docker.yml:window_name:dockerlayout:main-verticalpanes:-shell_command:-cd .focus:true-shell_command:-docker-compose up~/.tmuxp-combine/mysession/windows/nodejs.yml:window_name:nodejslayout:main-verticalpanes:-shell_command:-cd .focus:true-shell_command:-npm run serveRunning themysessionintmuxonly withnodejswindow:tmuxp-combineloadmysession-wnodejsRunning themysessionintmuxonly withnodejsanddockerwindows:tmuxp-combineloadmysession-wnodejs-wdockerRunning themysessionintmuxwith all windows:tmuxp-combineloadmysession
Package: tmuxprocess
If you’re prototyping with multiple processes all trying to send debug prints to
the same terminal, things can get very confusing.TmuxProcessis an extension of themultiprocessingProcessclass which
automatically sets up a tmux session with a separate tmux window for each
process created. With standard output for each process linked to a separate window,
it’s much easier to keep track of what each individual process is doing.
(Standard input can also be tied to each separate window, so you can also send
different commands to different processes.)Requirementstmux, and that’s it!Installationpip install tmuxprocessUsageIf you only care about standard output being redirected:from tmuxprocess import TmuxProcess
import time

def f(name):
    print("{} running".format(name))
    while True:
        print("{} sleeping".format(name))
        time.sleep(1)

p1 = TmuxProcess(target=f, args=("f1", ))
print("Run")
print("  tmux attach -t {}".format(p1.tmux_sess))
print("to interact with each process.")
p1.start()
p2 = TmuxProcess(target=f, args=("f2", ))
p2.start()Input and output from the main process will remain on the launching terminal.
When the first process is created, a new tmux session will be launched in the
background, a new tmux window created in that session, and standard output
redirected to that window. When the second process is created, a second tmux
window will be created in the same session, and its standard output similarly
redirected.If you also want standard input redirection, initialise withmode='inout':from tmuxprocess import TmuxProcess

def f(name):
    print("{} running".format(name))
    while True:
        s = input()
        print("{} read:".format(name), s)

p1 = TmuxProcess(target=f, mode='inout', args=("f1", ))
print("Run")
print("  tmux attach -t {}".format(p1.tmux_sess))
print("to interact with each process.")
p1.start()
p2 = TmuxProcess(target=f, mode='inout', args=("f2", ))
p2.start()However, with this mode, because of the way that standard input redirection
is implemented, note that you will have to manually kill the session
once done.
Package: tmux-res
$_tmux-resurrect-utilCLI utility for handling routine tasks with tmux-resurrect»tmux-res--help
Usage:tmux-res[OPTIONS]COMMAND[ARGS]...TMUXResurrectutility,simplifiesandautomatescommontasks

Options:--versionShowtheversionandexit.-v,--verboseEnablesverbosemode--helpShowthismessageandexit.

Commands:cleanArchivetmuxstatefilesolderthenonemonthlink-lastLinklasttonewesttmuxresurrectfileInstallIn below examples I use unopionatedpipfor installation. I recommend installing it into a virtualenv, there are multiple tools to achive this.RequirementsTo use this utility you need Python 3.7. Seeapp.pyfor specifics.»python--version
Python3.7.0
»pip--version
pip10.0.1from/…/lib/python3.7/site-packages/pip(python3.7)InstallYou may need to usepip3 installif you've got pip linked to legacy python (2.x)gitclonegit@github.com:Hultner/tmux-resurrect-util.git
pipinstall./tmux-resurrect-utilInstall via pipYou may also install this package through pip via PyPIpipinstalltmux-resurrect-utilDevelopment & contributionsFork and send a PR!For formatting I useblackto keep diffs small, use pylint/flake8 for linting and pytest for testing.
Code is currently in prototype-phase, simplifications, refactoring and other quality improvements are welcome.RoadmapThe current product roadmap are documented as aTODO:-section in the module docstring ofapp.py. Highlevel test psuedo code are found intest.py.Get startedI use pipenv for development. Make sure you update thePipfileandPipefile.lockif you add or update dependencies.
Avoid adding external packages if they aren't needed, especially low activity ones.
Consult with me if you're planning to create a PR where you want to pull in something new and fancy.»gitclonegit@github.com:Hultner/tmux-resurrect-util.git
...
»cdtmux-resurrect-util
»pipenvinstall-e.
...
»vi.Enjoy!”Inpsiring qoutes aren't for everyone”— SomeOne, Somewhere (sometime)..
..:
Package: tmux-restore
tmux-restoreOverviewWorks withtmuxto save and restore sessions across reboots. Sessions are stored at~/.tmux-restore.FeaturesSave session windows, panes, and layouts automatically on detach/exitAutomatically restore sessions on rebootRestores windows, panes, and layoutRestores running processes for select programs:emacs/vi/vim/nvimRestores cursor locationmanless/moretailtop/htopirssi/weechat/muttsshpsql/mysql/sqlite3To DoSave environment variablesAdd configuration option for session fileAdd configuration option for adding running programs to saveSet UpTo installtmux-restore, run the following:pipinstalltmux-restoreThen, to restore your saved sessions on reboot, edit your.bashrcfile with the following content:# colors...# tmux-restore triggerif!tmuxinfo&>/dev/null;thenif!tmuxls&>/dev/null;then(python3-mtmux-restore&)fifi# aliases...It is important that this is done above alias definition to avoid conflicts.
Finally, add the following content to either where the other aliases are defined in your.bashrcfile or to your.bash_aliasesfile:tmux(){commandtmux$*(python3-mtmux-restoresave&)}This will ensure that your sessions save after you exit or detach from atmuxsession. Restart your shell to apply the effects.
Your tmux sessions will now restore themselves across reboots!UsageIf you would like to save or restore yourtmuxsessions manually:# Savepython3-mtmux-restoresave# Restorepython3-mtmux-restore# ORpython3-mtmux-restorerestore
Package: tmuxssh
ssh into several hosts at once using tmuxInstallationpip install tmuxsshUsageUsage:
  tmuxssh [--template=<template>] <host>...
  tmuxssh --version
  tmuxssh -h | --help

Options:
  --template=<template>  ssh command template
  --version              show version
  -h --help              show this screenExamplestmuxssh --template 'ssh -i ~/.ssh/my.pem -l ubuntu {}' 10.64.93.208 10.64.93.207
tmuxssh --template 'ssh -ti ~/.ssh/jump.pem 10.1.1.1 "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i ~/.ssh/another.pem -l ubuntu {}"' 10.64.93.208 10.64.93.207
Package: tmux-utils
tmux_utilsHelper scripts for working with tmux more efficiently.project status badges:version badges:Installation 🗹Usingpipxto Install (preferred)This packagecouldbe installed using pip like any other Python package (in
fact, see the section below this one for instructions on how to do just that).
Given that we only need this package's entry points, however, we recommend thatpipxbe used instead:# install and setup pipxpython3-mpipinstall--userpipx
python3-mpipxensurepath# install tmux_utilspipxinstalltmux_utilsUsingpipto InstallTo installtmux_utilsusingpip, run the following
commands in your terminal:python3-mpipinstall--usertmux_utils# install tmux_utilsIf you don't have pip installed, thisPython installation guidecan guide
you through the process.Useful Links 🔗API Reference: A developer's reference of the API exposed by this
project.cc-python: Thecookiecutterthat was used to generate this project.
Changes made to this cookiecutter are periodically synced with this project
usingcruft.CHANGELOG.md: We use this file to document all notable changes made to
this project.CONTRIBUTING.md: This document contains guidelines for developers
interested in contributing to this project.Create a New Issue: Create a new GitHub issue for this project.Documentation: This project's full documentation.
Package: tmux-xargs
targstmux + xargs = targsInstallpipinstallgit+https://github.com/ucchiee/targs.git# orpipinstalltmux-xargsUsagetargsreads newline delimited strings from the standard input and executes utility with the strings as arguments.e.g.:$cat./etc/domains.txt# google.com# apple.com# facebook.com# amazon.com$tmux
$cat./etc/domains.txt|targs-I{}--ping{}
Package: tmw-callcount
To use the callcount script you will need to define your own runnable
Python script. In that script will setup your callables.Command Line Optionstm_callcount includes a default_args that you will need to use for your Python
script. You can see the options by running–help.Creating CountCasesThis example assumes you have defined a custom TimerMiddleware for your
application and that you have set a stats.sample_rate config value.
See:http://pythonhosted.org/TimerMiddleware/quickstart.htmlWe do our extra setup outside of ourcount_methods. This ensures
that any setup we do is not included in the counts.from myapp import db
from myapp.tests import TestControllerfrom twm_callcount import (default_args,
CountRunner,
CountCase,
)class CountAppURL(CountCase):def setUp(self):self.test = TestController()
self.create_test_data()def tearDown(self):self.test.tearDown()def create_test_data(self):db.add_page(‘Test Wiki’, ‘content’)
db.add_ticket(‘Test Ticket’, ‘content’)def count_wiki_page(self):self.test.app.get(‘wiki’, extra_environ=self.environ)def count_ticket_page(self):self.test.app.get(‘ticket’, extra_environ=self.environ)def main(args):runner = CountRunner(args)
runner([CountAppURL])if __name__ == ‘__main__’:main(default_args())
Package: tmx2dataframe
tmx2dataframeA python package to convert a tmx translation file into a pandas dataframe. Please note that this is very early stages and is certainly not ready for production use.Getting StartedPrerequisitesPython 3InstallingPackage can be installed using pip.pip install tmx2dataframeUsageimport tmx2dataframe

metadata, df = tmx2dataframe.read("/path/to/tmxfile.tmx")Running the testsWe use pytest for our tests.pip install pytest
cd navigate/to/project/folder
pytestContributingPlease readCONTRIBUTING.mdfor details on our code of conduct, and the process for submitting pull requests to us.VersioningWe useSemVerfor versioning. For the versions available, see thetags on this repository.AuthorsJade Abbott-Initial work-jaderabbitSee also the list ofcontributorswho participated in this project.LicenseThis project is licensed under the MIT License - see theLICENSE.mdfile for details
Package: tmx2txt
A script to convert tmx files to tab-delimited txt filesThis is a tmx-to-txt converter. It accepts one bilingual tmx file and
one optional argument containing language codes separated by the # symbol.
Examples: en-US#ar-SA; EN-US#RU-RU. All characters are case sensitive.
The default codes are en-US and ru-RU. The script extracts TU text only.
No fields are extracted. The output is a bilingual tab-delimited txt file.How to install on Windows in Windows PowerShell$ python3 -m venv .venv
$ .\.venv\Scripts\Activate.ps1
$ python3 -m pip install --upgrade pip
$ python3 -m pip install tmx2txtHow to useIn Windows PowerShell:$ python3 -m tmx2txt \path\file.tmx -c en-US#ar-SAIn Google Colab:!pip install tmx2txt
!tmx2txt file.tmx -c en-US#ar-SA
Package: tmxconverter
TMX Convertertmxconverter reads tmx-files from an input folder and saves the outcome eitheras csv-files to an output folder orstores them into a database tableThe language code is mapped to the 2-character code based on the given file 'language_code_mapping.csv' (specified in 'config.yaml')The application is using a yaml-configuration fileconfig.yamlto control the behaviour read from the working directory.Command line options``tmxconverter -log [loglevel]``` with 'warning','info' and 'debug'Mapping<tmx><header srclang="en-US">: source_lang<body><tu creationdate: created<body><tu creationid: creation_id<body><tu changeid: change_id<body><tu changedate: changed<body><tu lastusagedate: lastusageFrom filename substring until '_' : domainFilename : origin<body><tu><tuv xml:lang: target_lang if different from source_lang using the language mapping<body><tu><tuv><seg>: source_text or target_text depending lang-attribute`Regular ExpressionAs a first basic filter a list of regular expressions separated by a 'line separator' can be passed that are stored
in a text-file.Examples:\s*$\s*\d+\s*$\s*\d*\.\d+\s*$Files OutputIf the parameter FILES_OUTPUT istrue alltmx-files are written to the OUTPUT_FOLDER taking the same filename but replacing the suffix.
The output is using a comma-separator and double quotes strings (pandas.to_csv used)Database OutputIf the parameter HDB_OUTPUT isTruethen the data is stored to the HANA Database for which the details are given in the
config.yaml-file.The current table structure:CREATE COLUMN TABLE "TMX"."DATA"(
	"SOURCE_LANG" NVARCHAR(2),
	"SOURCE_TEXT" NVARCHAR(5000),
	"TARGET_LANG" NVARCHAR(2),
	"TARGET_TEXT" NVARCHAR(5000),
	"DOMAIN" NVARCHAR(15),
	"ORIGIN" NVARCHAR(30),
	"CREATION_ID" NVARCHAR(30),
	"CREATED" LONGDATE,
	"CHANGE_ID" NVARCHAR(30),
	"CHANGED" LONGDATE,
	"LAST_USAGE" LONGDATE,
	"USAGE_COUNT" INTEGER
)Example Config.YAML# input folder
input_folder : /Users/Shared/data/tmx/input

#language coding map
lang_map_file : language_code_mapping.csv

# output files
OUTPUT_FILES : true # save to output folder
OUTPUT_FOLDER : /Users/Shared/data/tmx/output

# HANA DB
OUTPUT_HDB : false  # Save to db
HDB_HOST : 'xxx.com'
HDB_USER : 'TMXUSER'
HDB_PWD : 'PassWord'
HDB_PORT : 111

# Test Parameter
TEST : true
MAX_NUMBER_FILES : 100  # max number of files processed. NOT used when EXCLUSIVE_FILE given
EXCLUSIVE_FILE : reviews.tmx  # If not used leave empty
#EXCLUSIVE_FILE :
Package: tmx-nano-2040-wifi-aio
Tmx-Nano-2040-WiFi-AIOTmx-nano-2040-wifi-aio is a member of theTelemetrixfamily and is a Python asyncio client
specifically tailored to remotely control and monitor
the Arduino Nano RP2040 Connect using Python scripts running on your PC.When paired with theTelemetrix4Connect2040custom Arduino server sketch, control and
monitoring of the Arduino Nano RP2040 Connect accomplished using a Wi-Fi link between the
PC and the Arduino.This library supports the following features:Analog and Digital InputDigital Outputs including PWMOnboard devices:IMUMicrophoneRGB LEDI2C device communications.SPI device communications.HC-SR04 Type distance sensors.DHT Type humidity/temperature sensors.Servo motors.NeoPixel strips.AUser's Guideexplaining
installation and use is available online.The Python API for may be foundhere.Here is a sample project that blinks the Arduino Board LED:import asyncio
import sys

from tmx_nano2040_wifi_aio import tmx_nano2040_wifi_aio

"""
Setup a pin for digital output and output a signal
and toggle the pin. Do this 4 times.
"""

# some globals
DIGITAL_PIN = 13  # arduino pin number


async def blink(my_board, pin):
    """
    This function toggles a digital pin.

    :param my_board: an tmx_nano2040_wifi_aio instance
    :param pin: pin to be controlled
    """

    # set the pin mode
    await my_board.set_pin_mode_digital_output(pin)

    # toggle the pin 4 times and exit
    for x in range(4):
        print('ON')
        await my_board.digital_write(pin, 0)
        await asyncio.sleep(1)
        print('OFF')
        await my_board.digital_write(pin, 1)
        await asyncio.sleep(1)


# get the event loop
loop = asyncio.get_event_loop()

# instantiate tmx_nano2040_wifi_aio
board = tmx_nano2040_wifi_aio.TmxNano2040WifiAio(ip_address='192.168.2.246')

try:
    # start the main function
    loop.run_until_complete(blink(board, DIGITAL_PIN))
    loop.run_until_complete(board.shutdown())

except KeyboardInterrupt:
    loop.run_until_complete(board.shutdown())
    sys.exit(0)
Package: tmx-pico-aio
Tmx-Pico-AioInteract and monitor  a Raspberry  Pi Pico remotely  from your PC
using Python asyncio.A full User's Guide isavailable online.Python API documentation  may be foundhere.The Pico server code may be viewedhere.The following functionality is implemented in this release:Analog InputDigital Input, Digital Input Pullup, Digital Input PulldownPWM outputLoopback (for client/server link debugging)I2C SupportNeoPixel SupportServo SupportHC-SR04 Type Sonar Distance Sensor SupportDHT 11 and 22 Humidity/Temperature Sensor SupportAutodetect PICO device over USB Serial.Automatic board reset of the PICO using the watchdog timer when application exits.Board will blink twice upon reset.Retrieval of the PICO's unique ID.To install The Client Library:Linux/macOS:sudopip3installtmx-pico-aioWindows:pipinstalltmx-pico-aioIf you are upgrading from a previously installed version:Linux/macOS:sudopip3installtmx-pico-aio--upgradeWindows:pipinstalltmx-pico-aio--upgradeTo Install The Pico Server ApplicationDownloadand save the .uf2 file.Place the Pico in file upload mode:A. Press and hold the BOOTSEL button while applying power.B. Release the BOOTSEL button.C. In your file explorer, you should see a new folder appear called: RPI-RP2.D. Drag the .uf2 file into this folder to upload the code.Download And Run The ExamplesDownload,save, and uncompress the teletmetrix-rpi-pico Github repository.Open theexamplesdirectory and run any of the examples. You may
modify them to suit your needs.
Package: tmxpy
TMXpyA Python library for reading and writing TMX files.This library is fairly computer intensive, especially when rendering large maps. It is recommended to use a computer with decent specs when using this library.Please note: This library only supports files saved with the CSV encoding, though XML-encoded files can be converted withtmxpy.XMLtoCSVFeaturesRendering of TMX files to imagesReplacing specific warps with other warpsChanging tiles of a TMX fileAdding tilesets to a TMX fileInstallationpipinstalltmxpyUsage and ExamplesfromtmxpyimportTMXpyfrompathlibimportPathtmx=TMXpy(sheets=[Path("path/to/tilesheet/directory")],path=Path("path/to/tmx/file"))tmx.generateGIDDict()tmx.renderAllLayers().save("path/to/output/image.png")tmx.parseWarps()tmx.replace_warp(0,{"map_x":23,"map_y":17,"destination":"Town","dest_x":10,"dest_y":8,})tmx.setTile(23,17,"129",layerName="Buildings")Further examples can be found in thetestsdirectory.Development/TestingInstall dependencies withpip install -r requirements.txtTests can be added to tests/name_of_test.py and run withpy -m tests.name_of_testIt can be built withpy -m build
Package: tmxt
tmxtNOTE:
This is an fork of the original 'https://github.com/sortiz/tmxt' repo. Only modifications are for easier use with pip.To install executepip3 install tmxtThis tool consists on two scripts:tmxplore.py, a script to determine the language codes available inside a particular TMX file by looking to an excerpt or even the whole file.tmxt.py, to effectively transform a TMX to a tab-separated text file using the language code list provided in the commandRequirementsRequires python3 and the libraries included in requirements.txtExamples of usagetmxplore.py$python3tmxplore.pyfile.tmx
enesor$catfile.tmx|python3tmxplore.py
enestmxt.py$python3tmxt.py--codelisten,frtm.fr-en.tmxen-fr.txtOther$zcatlargefile.tmx.gz|python3tmxt.py--codelisten,es|gzip>bitext.en-es.gz
Package: tmxtagger
This package allows you to add certain tags to tmx filesHow to install on Windows (no admin rights required)Step 1. Get Python 3 from Microsoft StoreStep 2. Get PowerShell from Microsoft StoreStep 3. Create a new folder in your file system on WindowsStep 4. Right-click on that folder and select Open in TerminalStep 5. Write the following in the command line of the open Terminal window:> python3 -m venv .venv
> .\.venv\Scripts\Activate.ps1
> python3 -m pip install tmxtaggerHow to useIf you've just finished the installation, just type in in the command line:> python3 -m tmxtaggerThis will open a Folder Selection dialogue window. Use it to select the folder
containing your tmx files. After you click on Select, the program will
create a new folder called\tmx-trados-stylewithin that selected
folder.The name of each original tmx file will becomes an attribute
of each  element so that when you import such tmx files into Trados
Studio's TM, each imported segment will have a property whose value is
the name of the tmx file from which that segment originated. It  will also
modify the tmx file header to conform to Trados Studio style.If you already closed PowerShell, use Windows Explorer to find the folder
that you created in Step 3 (or simply repeat Steps 3 to 5 if you can't find it).
Open that folder in PowerShell Terminal. Then type in the following
commands in the PowerShell window:> .\.venv\Scripts\Activate.ps1
> python3 -m tmxtagger