Saravanan666/pypi-org huggingface dataset:
Package: travis-emulator
Travis emulator can emulate TravisCi parsing the.travis.ymlfile in local Linux machine.
You can test your application before pushing code to github.com web site.Travis emulator can creates all the build declared in.travis.yml;
all the builds are executed in sequential way.
The directory ~/travis_log (see -l switch) keeps the logs of all builds created.
Please note that log file is a binary file with escape ANSI screen code.
If you want to see the log use one of following command:travis showless -R ~/travis_log/<build_name>.logA travis build executes the following steps:Initialize from local .travis.conf (not in travis-ci.org)Optional install packagesapt addons(emulatore makes just the check)Optional install packagescacheSet global valuesenv globalExecute codebefore_installExecute matrix initialization, included python versionExecute build codeinstallExecute build codebefore_scriptExecute build codescriptExecute buildbefore_cache(only if cache is effective, not emulated)Execute build codeafter_success(emulated) orafter_failure(not emulated)Optional codebefore_deploy(only if deployment is effective, not emulated)Optional codedeploy(not emulated)Optional codeafter_deploy(only if deployment is effective, not emulated)Execute codeafter_script(not emulated)Wep from local .travis.conf (not in travis-ci.org)Read furthermore info readtravis-ci phase
Package: travis-encrypt
Travis Encrypt is a Python command line application that provides an easy way to encrypt passwords
and environment variables for use with Travis CI. All passwords and environment variables are encrypted with the PKCS1v15 padding scheme as it’s the only padding supported by Travis CI.InstallationTo install Travis Encrypt simply run the following command in a terminal window:$  pip install travis-encryptIf you would rather install from source, run the following commands in a terminal window:$  git clone https://github.com/mandeep/Travis-Encrypt.git
$  cd Travis-Encrypt
$  python setup.py installTravis Encrypt will attempt to install the cryptography package, however the package requires
development packages for C and Python. If installation fails, please see the cryptography
installation guide:https://cryptography.io/en/latest/installation/UsageWith Travis Encrypt installed, the command line application can be invoked with the following command and arguments:usage: travis-encrypt [options] github_username repository [path]

positional arguments:
    github_username         GitHub username that houses the repository
    repository              Name of the repository whose password requires encryption
    path                    Path to the repository's .travis.yml file

optional arguments:
    --help                  Show the help message and quit
    --deploy                Encrypt a password for continuous deployment usage
    --env                   Encrypt an environment variable
    --clipboard             copy the encrypted password to the clipboard
    --env-file PATH         Path for a .env file containing variables to encrypt
    --private               Use the travis-ci.com API endpoint for private repositories
    --token TEXT            Authenticate the API request with a travis-ci token.When the command is entered, the application will issue a prompt where the user can enter
either a password or environment variable. In both cases, the prompt will print ‘Password:’.
Once the prompt is answered, Travis Encrypt will print the encrypted password to standard
output. If a path to .travis.yml is provided the encrypted password will be written to
.travis.yml instead of printing to standard output.Example of password encryption (the password is hidden when entering):$  travis-encrypt mandeep Travis-Encrypt
Password:
Please add the following to your .travis.yml:

secure: "oxTYla2fHNRRjD0akv1e..." (edited for brevity)Example of deployment password encryption:$  travis-encrypt --deploy mandeep Travis-Encrypt /home/user/.travis.yml
Password:
Encrypted password added to /home/user/.travis.ymlExample of encrypting the environment variable API_TOKEN=”abc123”:$  travis-encrypt --env mandeep Travis-Encrypt /home/user/.travis.yml
Password:
Encrypted password added to /home/user/.travis.ymlExample of using a .env file:$  travis-encrypt --env-file /home/user/my.env mandeep Travis-Encrypt /home/user/.travis.yml
Encrypted variables from /home/user/my.env added to /home/user/.travis.yml
Package: travis-env
Installation$[sudo]pipinstalltravis-envFeaturesadd, get, delete Travis CI environment variablesConfig$travistoken
xxx
$exportTRAVIS_TOKEN="xxx"# export TRAVIS_ENDPOINT="https://api.travis-ci.org"Examples$python-mtravis_env.setWEBHOOK_URLurl
$python-mtravis_env.vars
WEBHOOK_URLRelatedtravis-cron- travis cron managementtravis-env- travis environment variables managementtravis-exec- execute command for every travis repotravis-generator-.travis.ymlgeneratortravis-image-status- quickly get travis status from an imagereadme42.com
Package: travis-exec
Installation$[sudo]pipinstalltravis-exec$[sudo]npmi-gtravis-execFeatures{}replaced with repo nameExamples$travis-exectravisstatus-r{}$travis-execpython-mtravis_cron.add{}masterdailyno
$travis-execpython-mtravis_env.set{}WEBHOOK_URL"$WEBHOOK_URL"Relatedtravis-cron- travis cron managementtravis-env- travis environment variables managementtravis-exec- execute command for every travis repotravis-generator-.travis.ymlgeneratortravis-image-status- quickly get travis status from an imagereadme42.com
Package: travis-image-status
Installation$[sudo]pipinstalltravis-image-status$[sudo]npmi-gtravis-image-statusHow it workshttps://api.travis-ci.org/owner/repo.svg?branch=master<svg...<text>{status}</text></g></svg>Examplestravis status:$travisstatus-rowner/repo
passedtravis-image-status:$travis-image-statusowner/repo
passingoptions.--com,--org(default):$travis-image-status--comowner/repoRelatedtravis-cron- travis cron managementtravis-env- travis environment variables managementtravis-exec- execute command for every travis repotravis-generator-.travis.ymlgeneratortravis-image-status- quickly get travis status from an imagereadme42.com
Package: travislint
Disclaimer: I have no connection totravis-ciat all other than being a satisfied customer.  I wrote this utility to avoid having to install Ruby, dependencies etc in order to run thetravis-cicommand line tool which does far more than I actually needed.What It DoesThis is a Python utility that parses yourtravis-ciconfiguration file and lints whether it is valid generic YAML before passing it totravis-ci’s own linter.InstallationIt is recommended that you install the utility into eitherVirtualenvorVenvenvironment after which the following should install this utility:$ pip install travislintThe travislint application can then be run to lint yourtravis-ciconfiguration file.Usagetravislint [-h] [-v] [filename]

Lint a .travis.yml file

positional arguments:
  filename       name of the file to lint (default: .travis.yml)

optional arguments:
  -h, --help     show this help message and exit
  -v, --verbose  verbose output of progressUnder the CoversFirst of all we lint the file as generic YAML usingyamllint.It turns out that thetravis-cicommand line tool does not actually lint your file itself but hands off this task to a portion of thetravis-ciwebsite.  So it was simple to do this using the Pythonrequestspackage and save you from having to install Ruby etc.
Package: travis-pypi-integration
This is a very short guide to using Travis CI with your GitHub hosted code repository
to automatically deploy a python package to Pypi.
If you’re new to continuous integration or would like some more information on what Travis CI does,
readTravis CI Core Concepts for Beginnersfirst.In this guide, we will be creating a Travis CI pipeline to automatically:Start mongodb service. Requiresmongo>=4.0RunpytesttestsDistributes the package to pypiAll the code can be found onhttps://github.com/musyoka-morris/travis-pypi-integrationPrerequisitesTo proceed, make sure you have a Travis CI account.
You can easily create one by visitinghttps://travis-ci.org/and then click theSign in with Githubbutton.1. Install Travis CLIFirst we need to installTravis CLIwhich is written in Ruby and published as a gem.
We will be using this tool to encrypt the Pypi password.To install the gem:sudo gem install travisERROR: can’t find header files for ruby …If you run into the errorcan’t find header files for ruby,
then you also need to have the ruby headers installed.Thestack overflow answersaved me. In summary, you need to install ruby development headers as follows:For Debian, and other distributions using Debian style packaging:sudo apt-get install ruby-devFor Ubuntu:sudo apt-get install ruby-all-dev2. Create a .travis.yml file.travis.ymllanguage:python# We are using Python languageinstall:pip install -r requirements.txt# Install requirementsscript:pytest# Run pytest testsMongoDB serviceAdd instructions to start mongodb service.This section is optional if you are not interested in MongoDB service.
I simply left it here to serve as a guide for other services of interest....services:-mongodbbefore_script:-sleep 15# Sleep for 15 seconds to ensure the service is started before we issue any commandsBy default, travis loadsmongo v2.4. We instruct travis to load mongo v4.0...dist:xenialaddons:apt:sources:-mongodb-4.0-xenial# As defined on Travis Source safelistPypi DeploymentAdd instruction for deployment to pypi...deploy:provider:pypiuser:musyoka-morris# Replace this with your pypi username. Password will be provided laterdistributions:sdist bdist_wheelskip_existing:true3. Add encrypted pypi passwordNotice that so far we have not specified our pypi password.
The easiest way to add the password encrypted with the public key is to use Travis CLI:travis encrypt Your-Password-Here –add deploy.passwordNote: This assumes you are running the command in your project directory. If not, add-rowner/project.The command automatically adds your encrypted password on the .travis.yml file.
your .travis.yml file should look like this:...deploy:...user:musyoka-morrispassword:secure:YourEncryptedPasswordHere4. Push to GITTravis configuration is ready.
Simply push the code to the master branch and Travis will take care of the rest.The complete.travis.ymlfile can be found on Githubhttps://github.com/musyoka-morris/travis-pypi-integration
Package: travistomek
GeneralUtilsThis package contains some comon general utilisations modulesFree software: MIT licenseDocumentation:https://generalutils.readthedocs.io.FeaturesTODOHilollCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2019-06-17)First release on PyPI.Guard method to check whether a path exists
Package: travis-wait-improved
travis-wait-improved 👷🏻‍⏲👍travis-wait-improvedis a tool to prevent Travis-CI from thinking a
long-running process has stalled.  It will start a child process,
and pass its output through along with keep-alive messages.For example, if you wanted to run a packer build that could take up
to 30 minutes, you would add the following to your.travis.ymlfile:before_deploy:
  - pip install travis-wait-improved

deploy:
  - provider: script
    script: travis-wait-improved --timeout 30m packer build packer.jsonRequirementsPython versions 3.6 and above.  Note that Python 2is notsupported.ContributingWe welcome contributions!  Please seeherefor
details.LicenseThis project is in the worldwidepublic domain.This project is in the public domain within the United States, and
copyright and related rights in the work worldwide are waived through
theCC0 1.0 Universal public domain
dedication.All contributions to this project will be released under the CC0
dedication. By submitting a pull request, you are agreeing to comply
with this waiver of copyright interest.
Package: travitia-talk
Travitia TalkAsync ChatBot API wrapper forhttps://public-api.travitia.xyz/talkInstallationTravitia Talk is available on PyPipipinstalltravitia_talkGetting API keyJoin Travitia API Discord athttps://discord.gg/C98nsXtTODOUsageInteractive sessionpython-mtravitia_talkBasic usageimporttravitia_talkasttAPI_KEY="SECRET_KEY"chatbot=tt.ChatBot(API_KEY)response=awaitchatbot.ask("How are you?")print(response)# I'm doing okay, you?awaitchatbot.close()EmotionsTravitia Talk supports multiple emotionsimportrandomemotion=random.choice(list(tt.Emotion))response=awaitchatbot.ask("How are you?",emotion=emotion)ContextsIt is possible to add context to query for more accurate answers (up to 2 answers currently).
By default library uses in-memory context, but it is possible to define your own by usingtravitia_talk.Context.Context looks up previous queries using an identifier. In case of discord bot this could be user id.
Example:@bot.commandasyncdefcb(self,ctx,*,text:str):response=awaitctx.bot.chatbot.ask(text,id=ctx.author.id)awaitctx.send(response.text)Custom sessionIt is possible to use custom aiohttp session with configured timeouts and other settings.fromaiohttpimportClientSession,ClientTimeoutimporttravitia_talkasttAPI_KEY="SECRET_KEY"chatbot=tt.ChatBot(API_KEY,session=ClientSession(timeout=ClientTimeout))Custom API URLIn case URL gets changed for some reason or library adds support for other backends it is possible to overwrite API URL:importtravitia_talkasttAPI_KEY="SECRET_KEY"chatbot=tt.ChatBot(API_KEY,api_url="https://paid-api.travitia.xyz/talk")
Package: trawa
Watch directories to trigger transmission downloads.Trawa is a small python script to monitor watch directories, each having a specific configuration.
Any matching file dropped in these directories is sent to a transmission instance using rpcxml.You can define for each directory to watch, a file mask and a set of rpc parameters to send to transmission. The following example
will watch 2 directories and set a specific download_dir for each of the two categories:dirs:
    - watch_path:   /home/lke/torrents/linux/images
      file_mask:    '*.torrent'
      descrip:      Linux images
      rpc_params:
        download_dir:   /downloads/linux_images

    - watch_path:   /home/lke/torrents/audio/samples
      file_mask:    '*.torrent'
      descrip:      Audio samples
      rpc_params:
        download_dir:   /mnt/ext4/audio/samplesOnly newly created torrent files are watched. Torrent files are never removed.
When a new torrent is detected for any of the watch_path, the processing is done sequentially and will stop at the first match for file_mask.Note:For the complete list of rpc parameters, seeTransmission RPC proto spec <https://github.com/transmission/transmission/wiki/RPC-Protocol-Specification>.INSTALL / USEYou can install by cloning the repository or if you have pip:pip install trawaTo run:trawa
Package: trax-extra-activation
Trax Extra Activation FunctionsExtra activation functions forTraxpip install trax-extra-activationHow to useYou can use activation functions in the same way as that ones implemented in Trax.fromtrax_extra_activationimportTanhExpmodel=tl.Serial(tl.Embedding(vocab_size=8192,d_feature=256),tl.Mean(axis=1),tl.Dense(2),TanhExp())ActivationsHardShrinkHardShrink(lmbda:float=0.5)->PureLayerPyTorch DocumentHardSwishHardSwish()->PureLayerPyTorch DocumentLogSigmoidLogSigmoid()->PureLayerPyTorch DocumentRelu6Relu6()->PureLayerPyTorch DoumentCeluCelu(a:float=1.0)->PureLayerPyTorch DocumentSiluSilu()->PureLayerPyTorch DocumentMishMish()->PureLayerPyTorch DocumentSoftShrinkSoftShrink(lmbda:float=0.5)->PureLayerPyTorch DocumentSoftSignSoftSign()->PureLayerPyTorch DocumentTanhShrinkTanhShrink()->PureLayerPyTorch DocumentTanhExpTanhExp()->PureLayerPaper
Package: traxis
traxisA Digital Framework for Analysis of Particle Bubble Chamber Tracks. Used in the
High Energy Physics experiment in UofT Advanced Labs.DescriptionPython-based toolkit with GUI that computes track momentum and optical density
of tracks in digitized bubble chamber images.Installing and RunningTraxis can now be installed with pip:pip install traxis
# Then run the command
traxisAfter installation, traxis can be run in one of 3 ways:from the shell as a modulepython -m traxisas a standalone executabletraxis(for backwards compatibility) using theruntraxisscriptWithout installationOr, from source without installation,
on Linux, UNIX, Mac:tar xzvf traxis-*.tar.gz
cd traxis
python -m traxisOnWindows:Extract traxis.zipGo to extracted traxis folder with a command promptexecute the traxis module:python3 -m traxisDependenciesPython (3.3+)numpyscipyPyQt5 (5.3+)AuthorsSyed Haider Abidi, Nooruddin Ahmed and Christopher Dydula
Package: traxix.trixli
trixli is a bunch of cli script to help on a daily basis.Installpip install traxix.trixliUsageAll the command have cli--helpcommand.againMatch the given pattern against bash_history. A like "Ctrl-r" but with multiple patterns.again export PATH
again my complicated commandfFind paths matching the given patterns.Args:
p: path from where to begin
e: file extensionExample:findequivalents:f foo bar
find . |grep foo |grep barf -p /tmp -e py hello world
find /tmp -name "*.py" |grep hello |grep worldfrLikegrep -rwith multiple patternsfr -e py from foo
find . -name "*.py" -exec grep from '{}' \; |grep foofeLikefbut offers to open it withemacsclientpexor.pyIndexes imports from python file. Helpful to find code exampls using a certain package.pexor.py --output=imports.jsonWill generate a dict in a json file. Keys been modules or functions and values files where to find them.
Package: traxtor
TractorTractor is core app which lets user to setup a proxy with Onion Routing via TOR and optionally obfs4proxy in their user space. The goal is to ease the proccess of connecting to TOR and prevent messing up with system files.InstallTractor is natively packaged for some distros:If you are any other distribution or OS, Tractor team welcomes you to make build recepie of yours.You can also use use global package mangers likeGNU GUIXorPython PypiRunyou can run Tractor by command line or use one of the graphical interfaces which are packaged separately.For command line interface, read manual provided with the package or availableonline.ContributeContibuting is always appreciated. SeeCONTRIBUTINGfor more information.
Package: tra-yan
tra-yanawesome free asynchronous translator for pythonInstallationpip install -U tra-yanUsageasyncdefuse():fromtrayanimport(TraYan,AsyncTraYan,detect,translate,async_detect,async_translate,get_supported_langs)fromtrayan.models.translatorimportLanguageru='РєСЂР°СЃРёРІС‹Р№ РјСѓР¶С‡РёРЅР° РІ РѕС‚Р»РёС‡РЅС‹С… С‚СЂСѓСЃР°С…'en='a handsome man in great underpants'proxy=None# 'scheme://login:password@ip:port'withTraYan()ast:print(f'{ru}вЂ”{t.detect(ru,Language.RU)}')print(f'ru-en вЂ”{t.translate(ru,Language.RU,Language.EN)}')print(f'{en}вЂ”{detect(en)}')print(f'en-ru вЂ”{translate(en)}')asyncwithAsyncTraYan(proxy=proxy)ast:print(f'{en}вЂ”{awaitt.detect(en,(Language.RU,))}')print(f'en-ru вЂ”{awaitt.translate(en,Language.EN,Language.RU)}')print(f'{ru}вЂ”{awaitasync_detect(ru,proxy=proxy)}')print(f'ru-en вЂ”{awaitasync_translate(ru,proxy=proxy)}')print(f'РїРѕРґРґРµСЂР¶РёРІР°РµРјС‹Рµ СЏР·С‹РєРё:{TraYan.supported_langs}')print(f'supported langs:{get_supported_langs()}')if__name__=='__main__':importasyncioasyncio.run(use())
Package: trayapp
TrayAppbased on Moses PalmÃ©r'spystraylibrary!Simple library for creating system tray applications.Usagewith TrayApp(name='Test',  # the little tooltip, seen when hovering over the icon
             icon_path=Path('../path/to/the/image.png'),  # anything that can be transformed into a PIL.Image
             icon_size=(256, 256,)  # size to create the thumbnail
             ) as app:

    # create the menu shown when icon gets right-clicked here

    app.add_button(text='hello world',
                   action=print,  # method to call when clicked
                   args=('hello world',),  # arguments, optional, in a tuple
                   # determines wheter the function gets called when the icon is left-clicked
                   # optional, default to False, can be obviously only used once per app
                   default=True  
                   )

    app.add_separator()  # well...

    with app.add_submenu(text='SubMenu') as submenu:  # submenues can be created by using a context manager within

        with submenu.add_submenu(text='first subsub') as first_sub_sub:  # and recursivly as well
            first_sub_sub.add_button(text='1.1', action=print, args=('1.1',))
            first_sub_sub.add_button(text='1.2', action=print, args=('1.2',))

        with submenu.add_submenu(text='second susub') as second_sub_sub:
            second_sub_sub.add_button(text='2.1', action=print, args=('2.1',))
            second_sub_sub.add_button(text='2.2', action=print, args=('2.2',))

        # any add_button(), add_separator(), add_submenu(), add_radiobuttongroup() can be used here
        # just remember to add them to the right submenu        

    app.add_separator()

    # a RadioButtonGroup is a group of buttons which can be used to select something
    # trying it out might be the best way to understand it
    with app.add_radiobuttongroup() as rbg:  # used with a contextmanager as well
        rbg.add(text='hello')
        rbg.add(text='world', selected=True)  # selected determines the item which is selected on creationRadioButtonGroup example:items = (
        'hello',
        'world',
        'this',
        'is',
        'just',
        'an',
        'example',
    )

# you NEED to provide the group itself since just state would be by value
def print_selected(rbg): print(items[rbg.state])

selected_item = 3  # saved outside and updated when the app is closed

with TrayApp(name='Test',
             icon_path=Path(r'C:\Users\robin\Documents\Private\Python\trayPy\data\test.png'),
             icon_size=(256, 256,)) as app:

    with app.add_radiobuttongroup() as rbg:
        for index, item in enumerate(items):
            rbg.add(text=item, selected=index == selected_item)

    # to check if it works
    app.add_button(text='print the selected', action=print_selected, args=(rbg,), default=False)LicenseMIT, see the LICENSE file
Package: tray-launcher
tray-launcherA launcher for Windows that resides in the taskbar for managing .bat scripts.InstallationInstalltray-launcherwithpip install tray-launcher.Usagetray-launchercomes with a command-line interface. Uselauncher -hto learn more.To get started, runlauncher run, and a small icon will show on the taskbar.Before running any scripts fromtray-launcher, they need to be loaded. This can be done by clicking the optionLoad New Script(s)in the context menu. Alternatively, runlauncher load [full path to the script]. Only.batfiles are accepted.To run a script, select it in theStart a Scriptsubmenu from the context menu, or click[View in Directory]to see all loaded scripts from a file dialogue, or runlauncher start [script name].tray-launcherlistens to port127.0.0.1:7686. If this port is not available, create the environment variableTRAY_LAUNCHER_PORTand set its value to an available port number.A log for the tray-launcher and associated.batscripts will be saved under%USERPROFILE%\.tray_launcher\logs.Iftray-launchercrashes, scripts started withtray-launcherwillnotterminate.There is an expected delay when executinglauncher run.When thetray-launcheris run in acondaenvironment, scripts started withtray-launcherwill run in the samecondaenvironment. When avenvenvironment is used, scripts may not inherit the environment, and the user may need to add the activate command in a script if it should be run in thevenv.
Package: traymenu
System Tray Menu for Windows - no dependenciespip install traymenuTested against Windows 10 / Python 3.10 / AnacondafromtraymenuimportTrayMenu,quitsystrayif__name__=="__main__":# Adapted from: https://gist.github.com/jasonbot/5759510 (Python 2)tm=TrayMenu(icon=r"C:\Users\hansc\Downloads\pinpng.com-anime-girl-face-png-6144106.ico",functions=(("Men1",lambda:print(331)),("Men2",False),# not clickable("!Default",lambda:print(22)),# default [bold]"--",# Separator("Men3",lambda:print(str(1))),("Quit",lambda:quitsystray()),),)tm.letsgo()