Saravanan666/pypi-org huggingface dataset:
Package: basher
basherCLI tool that acts as a basic package manager for shell libraries.Badges 📛project status badges:version badges:tools / frameworks used by test suite (i.e. used bymake test):linters used to maintain code quality (i.e. used bymake lint):tools / frameworks used to render documentation (i.e used bymake build-docs):miscellaneous tools used to maintain this project: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 basherpipxinstallbasherUsingpipto InstallTo installbasherusingpip, run the following
commands in your terminal:python3-mpipinstall--userbasher# install basherIf 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: bashgpt
Bash GPTThis is a simple bash script that uses OpenAI's GPT-4 to write bash commands to answer your questions. For instance see the below screenshots of the tool in action:You can also pass the --explain parameter to give a reason why that command was chosen and what the output means:InstallationYou can either install from source or install direct from PyPi using:pipinstallbash-gptDeploymentGive deploy.sh execution permissions with chmod +x deploy.sh, and then run it with ./deploy.sh.
Package: bashify
Use:from bashify import bashify

lines = ["test=$(service mongod status)", "echo 'test'", "echo $test"]
name = "test"

b = bashify(name, lines)
b.runExecutable()

b2 = bashify()

b2.printBashFile(name, lines)
b2.makeExecutable(name)
b2.runExecutable(name)Allows you to create and execute shell scripts with a list of lines to add to the shell script. Can make intefacing with a system feel more natural and requires less knowledge of the nuances of python's system interfaces. Output is returned to the calling shell, so, you will need to echo your output to a file and read from there. Support for this will be added in future versions.https://pypi.org/project/bashify/https://github.com/UniWrighte/bashify
Package: bash_kernel
A Jupyter kernel for bashInstallationThis requires IPython 3.pipinstallbash_kernelpython-mbash_kernel.installTo use it, run one of:jupyternotebook# In the notebook interface, select Bash from the 'New' menujupyterqtconsole--kernelbashjupyterconsole--kernelbashDisplaying Rich ContentTo use specialized content (images, html, etc) this file defines (inbuild_cmds()) bash functions
that take the contents as standard input. Currently,display(images),displayHTML(html)
anddisplayJS(javascript) are supported.Example:catdog.png|displayecho"<b>Dog</b>, not a cat."|displayHTMLecho"alert('It is known khaleesi\!');"|displayJSUpdating Rich Content CellsIf one is doing something that requires dynamic updates, one can specify a unique display_id,
should be a string name (downstream documentation is not clear on this), and the contents
will be replaced by the new value. Example:display_id="id_${RANDOM}"((ii=0))while((ii<10));doecho"<div>${ii}</div>"|displayHTML$display_id((ii=ii+1))sleep1doneThe same works for images or even javascript content.Remember to create always a new id(random ids works perfect) each time the cell is executed, otherwise
it will try to display on an HTML element that no longer exists (they are erased each time a cell is re-run).Programmatically Generating Rich ContentAlternatively one can simply generate the rich content to a file in /tmp (or $TMPDIR)
and then output the corresponding (to the mimetype) context prefix “_TEXT_SAVED_*”
constant. So one can write programs (C++, Go, Rust, etc.) that generates rich content
appropriately, when within a notebook.The environment variable “NOTEBOOK_BASH_KERNEL_CAPABILITIES” will be set with a comma
separated list of the supported types (currently “image,html,javascript”) that a program
can check for.To output to a particular “display_id”, to allow update of content (e.g: dynamically
updating/generating a plot from a command line program), prefix the filename
with “(<display_id>)”. E.g: a line to display the contents of /tmp/myHTML.html to
a display id “id_12345” would look like:bash_kernel: saved html data to: (id_12345) /tmp/myHTML.htmlMore InformationFor details of how this works, see the Jupyter docs onwrapper kernels, and
Pexpect’s docs on thereplwrap module.
Package: bashkirtagger
This module contains a utility for part-of-speech tagging of Bashkir text.
The tool based on LSTM neural network and takes a word order into account.InstallationThe tool could be installed with pippip3 install bashkirtaggerNote:the model for the utility must be downloaded separately.
Due to limitations on the size of the project, I could not place it
on a github or PiPy. After launching the program it will download
and unpack the model. No action is necessary on your part. But you
will need an Internet connection and about 150 megabytes of incoming
traffic.Usage exampleTagging one sentence at a time>>> from bashkirtagger import Tagger
>>> t = Tagger()
>>> sentence = "Бер кеше йәшәй."
>>> tagged_sentence = t.predict_pos(sentence)
>>> print(tagged_sentence)
[('бер', 'NUM'), ('кеше', 'S'), ('йәшәй', 'V')]Tagging a text of several sentences>>> from bashkirtagger import Tagger
>>> t = Tagger()
>>> text = "Бер кеше йәшәй. Кем белә."
>>> tagged_text = t.text_prc(text)
>>> print(tagged_text)
[[('бер', 'NUM'), ('кеше', 'S'), ('йәшәй', 'V')], [("кем", "SPRO"), ("белә", "V")]]TagsetTagset based onBashmorph morphological analyzerfor Bashkir language
by Boris Orekhov.S: substantiveV: verbADJ: adjectiveNUM: numeralSPRO: pronounPART: particleINTJ: interjunctionPOST: postpositionCONJ: conjunctionSee thepaperfor the details.DataThe model trained on collected from the webBashkir text corpuswhich
was marked up by Bashmorph.This tool can be used for disambiguation of rule-based markup.You can make your own wrap of the trained model.Model’s evaluation: loss: 0.0015 - acc: 0.9996 - val_loss: 0.0975 - val_acc: 0.9847.ContactsYou can contact the contriutor of the project via email:Boris Orekhov(nevmenandr)@ gmail
Package: bash-like
bash_likeA small utility library to handle arguments and read/write text to files using bash-like syntaxInstallationRequirespython3.6+To install with pip, run:pip install bash_likeThis creates small helper function/symbols to handle some common patterns when creating python scriptsTo use, include the following imports at the top:frombash_likeimportS,SO# (Shell, ShellOperations)DescriptionBashbash_like (python)Write a string to a fileecho hello > file.txtS("hello\n") > "file.txt"Append to fileecho hello >> file.txtS("hello\n") >> "file.txt"Print to STDERR (2)echo error 1>&2S("error\n") > 2Print to STDOUT (1)echo helloS("hello\n") > 1Read text from a file<input.txtSO < "input.txt"Read lines from a file (strips, and ignores empty lines)while read line; do echo line; done <input.txtSO << "input.txt"Get Environment or CLI argument, If not present, print error and exitFILE="${1:?Provide file as first CLI arg}" ;VAL="${CONFIG_VAR:?Error - CONFIG_VAR is not set}"file = SO | (1, "Provide file as first CLI arg"); val = SO | ("CONFIG_VAR", "Error - CONFIG_VAR is not set")Get Environment or CLI argument, If not present, use defaultFILE="${1:-output.txt}"; VAL="${DIFFERENCE:-5}"file = SO - (1, "output.txt"); val = SO - ("DIFFERENCE", 5)Of course, you don't have to usehellofor the strings, wrapping any python string inSallows you to quickly redirect it to a file, without having to do thewithblock:As a more complete example, this takes a file as input, and writes the contents of that file in lower case to${APP_DATA:-$HOME/.local/share}/..... It:uses the first CLI argument as the input file, else prints an error and exitsuses the second CLI argument as basename, else defaults tooutput.txtusesAPP_DATA(some environment variable for your application) if present, else defaults to~/.local/shareAPP_DATA=~/.local/appdata python3 main.py input.txt fout.txtwould write to~/.local/appdata/fout.txtfromosimportpath,environfromtimeimporttimefrombash_likeimportS,SO# the 1 and 2 correspond to sys.argv[1] and sys.argv[2], if they're presentinp=SO|(1,"Error: no input file provided as first argument")out=SO-(2,"output.txt")app_data=SO-("APP_DATA",path.join(environ["HOME"],".local","share"))# read file, casefold (lowercase), and write to fileS((SO<inp).casefold())>path.join(app_data,out)# append current time to a temporary logfileS(f"{time()}\n")>>"/tmp/time.log"
Package: bashlint
Simple Bash linting tool written in Python.Installationbashlintcan be installed via the Python Package Index or from source.Usingpipto installbashlint:$ pip install bashlintYou can download the source tarball and installbashlintas follows:$ python setup.py installor in development mode:$ python setup.py developRules listW201 Trailing whitespace: Trailing whitespaces are superfluous:Okay: echo Test#
W201: echo Test #W202 Blank line contains whitespace: Trailing whitespaces on blank lines
are superfluous:Okay: #
W202:  #W203 Trailing semicolon: Trailing semicolons are superfluous:Okay: echo Test#
W203: echo Test;#
Package: bashlist
Bashlist :memo:Your Terminal To-Do managerSetup your To-Do task directly from your terminalPyPI DocumentationwebsiteRequirementsPython >= (3.6)Package Installer for Python(PIP) >= 22.3InstallationTo installBashlistrun:pip install typerpip install bashlistUsageInitializing your databasebashlist_cli initHit Enter or Set your custom location for your databasePriority level1: High2: Medium3: LowCreate taskbashlist_cli add [Task name] -p [priority level]View all your ToDo listbashlist_cli listMark Task as completedbashlist_cli complete [ID]NOTE: You can check the task ID by listing itRemove task from ToDo listbashlist_cli remove [ID]Clear ToDo listbashlist_cli clearHelpbashlist_cli --helpCooking ......Version 0.2.0Online database and syncingUser SignUp and LoginChefAuthor: Oluwaseun
You cam reach out to me onTwitter
Package: bash-menu-builder
Bash Menu BuilderThis package help you build menu for yours console scriptsInstallation|Usage|Draw menu|How it worksInstallationFor install package to your project use this command:pip3installbash-menu-builderUsageScript give opportunity use two type views of menu:Input MenuSelect MenuThe Input type Menufrombash_menu_builderimportInputMenu,MenuItemDtodefbanner_text()->str:return'I\'m Banner Text'deffunction_one()->None:print('Script One')deffunction_two()->None:print('Script Two')deffunction_three()->None:print('Script Three')if__name__=="__main__":InputMenu(menu=[MenuItemDto(title='Test',option='one',handler=function_one),MenuItemDto(title='Test2',option='two',handler=function_two),MenuItemDto(title='Test3',option='three',handler=function_three),],banner=banner_text())View MenuThe Select type Menufrombash_menu_builderimportSelectMenu,MenuItemDtodefbanner_text()->str:return'I\'m Banner Text'deffunction_one()->None:print('Script One')deffunction_two()->None:print('Script Two')deffunction_three()->None:print('Script Three')if__name__=="__main__":SelectMenu(menu=[MenuItemDto(title='Menu Item One',option='one',handler=function_one),MenuItemDto(title='Menu Item Two',option='two',handler=function_two),MenuItemDto(title='Menu Item Three',option='three',handler=function_three),],banner=banner_text())View MenuDraw menuThe menu draw via classViewwhich get params of array with DTOs and text of banner (optional)
The MenuItemDto have 3 paramsdef __init__(self, title: str, option_name: str, handler: object):title: str- the title of menu itemoption_name: str- the option name for call menu via consolehandler: object- the handler of menu item. What exactly script do after select this menu item.How it worksAfter select menu number and press Enter will run script in function. When script finish process menu will draw again.Also you can call script without drawing menu. Just set option when call python script file, ex.python3 main.py --threeIn this case will run script for menu'Menu Item Three'. When script finish process menu will not draw again and program will close.
Package: basho-erlastic
UsageErlastic allows you to serialize/deserialize python objects intoerlang
binary term.Basic usage is :import erlastic
py_struct = erlastic.decode(binary_term)
binary = erlastic.encode(py_struct)Erlang Port communication usageThe library contains also a function to use python with erlastic in an
erlang port to communicate erlang binary term :port_communication()which return(mailbox,port). They are both python coroutines
(executed generator) so you can communicate with erlang coroutine using
python abstractions :mailboxwaits for port message in stdin, iterating over messages
decoded from binary erlang term format.portwaits forsend(python_struct)(http://docs.python.org/3.3/reference/expressions.html#generator.send)
then encodepython_structinto binary term format and send it to
the erlang port via stdout.So for instance, if you want to create a Python server which receives
the tuple {A,B} and return {ok,A/B} of {error,divisionbyzero} you can
use at the python side :from erlastic import port_connection,Atom as A
mailbox,port = port_connection()

for (a,b) in mailbox:
  port.send((A("ok"),a/b) if b!=0 else (A("error"),A("divisionbyzero")))and at the erlang side, use-upython parameter to prevent python
output buffering, use 4 bytes packet length because it is the
configuration used by the python generators.Port = open_port({spawn,"python3 -u add_server.py"},[binary,{packet,4}]),
Div = fun(A,B)->
  Port ! {self(),{command,term_to_binary({A,B})}},
  receive {Port,{data,Bin}}->binary_to_term(Bin) after 1000->{error,timeout} end
end,
io:format("send {A,B}=~p, python result : ~p~n",[{32,10},Div(32,10)]),
io:format("send {A,B}=~p, python result : ~p~n",[{2,0},Div(2,0)]),
io:format("send {A,B}=~p, python result : ~p~n",[{1,1},Div(1,1)])or in elixir :port = Port.open({:spawn,'python3 -u add_server.py'},[:binary|[packet: 4]])
div = fn(a,b)->
  port <- {self,{:command,term_to_binary({a,b})}}
  receive do {_,{:data,b}} -> binary_to_term(b) after 100->{:error,:timeout} end
end
IO.puts "send {a,b}={32,10}, python result : #{inspect div.(32,10)}"
IO.puts "send {a,b}={2,0}, python result : #{inspect div.(2,0)}"
IO.puts "send {a,b}={1,1}, python result : #{inspect div.(1,1)}"
Package: bashplotlib
plotting in the terminalwhat is it?bashplotlib is a python package and command line tool for making basic
plots in the terminal. It’s a quick way to visualize data when you don’t
have a GUI. It’s written in pure python and can quickly be installed
anywhere using pip.installationinstall with pip$ pip install bashplotlibinstall from source$ git clone git@github.com:glamp/bashplotlib.git
$ cd bashplotlib
$ python setup.py installEither method will install the bashplotlib python package and will also
add hist and scatter to your python scripts folder. This folder should
be on your path (add it if it’s not).featuresquick plotting from the command linecustomize the color, size, title, and shape of plotspipe data into plots with stdinusagecommand linehist takes input from either stdin or specified using the -f parameter.
Input should be a single column of numbers. scatter takes x and y
coordinates as input form either a comma delimited file using -f or from
2 different files using -x and -y.in pythonIf you want to use bashplotlib from python, just import histogram and
scatterplot.from bashplotlib.scatterplot import plot_scatterfrom bashplotlib.histogram import plot_histexamples$ scatter --file data/texas.txt --pch .$ hist --file data/exp.txt$ scatter -x data/x_test.txt -y data/y_test.txttodosideways numbers for x-axis of histogramscolors for individual pointsline chartstrendlines
Package: bashquote
This is a Python library for accessing and printing quotes from bash.org, a
quote database on the Internet from various chat sources. It is NOT made by
bash.org, or endorsed by them in any way. Note that it merely uses HTML
parsing to filter through the site’s contentThe BashQuote object can be created directly (BashQuote(8)) or it can be
created using various functions. getQuoteSafe and getQuote take a quote
number and return a quote object- getQuoteSafe checks to verify the quote
exists. Then, getLatestQuote and getRandomQuote will both do HTML parsing to
find the quote numbers.These BashQuote objects then have various helper functions which can return
various data about a quote. So, for instance, to get the text of a random
quote, BashQuote.getText() will print out all the text. Or to check if a
quote is pending, isPending() will return true if the quote has yet to be
processed for approval, and so on.
Package: bash_quote
Browse quotes on bash.org from the comfort of your shell.Free software: BSD licenseDocumentation:http://bash_quote.rtfd.org.InstallationIf you have pip installed all you have to do is:pip install bash_quoteUsageIf you have bash_quote installed in your environment you can view quotes
by running the command:bashquote [-h] [-n [NUM_QUOTES]] [-t [{random,r,top,t,latest,l}]]To use bash quote viewer in a project:import bash_quote

# get a list of 10 random quotes with rating > 0
bash_quote.get_quotes(option='r', num_quotes=10)

# get the latest quote
bash_quote.get_quotes(option='l', num_quotes=1)

# get the top 100 quotes
bash_quote.get_quotes(option='t', num_quotes=100)FeaturesView the latest, top or random quotes on bash.org from the comfort of your
shellReturn a single quote or return up to 100 quotes if you really need to
procrastinateHistory1.0.1 (27-01-2014)Fixed sorting bugFirst release on PyPI.
Package: bashrange
# bashrangeBash range expression evaluator for your cli application# Install`bash pip install bashrange `# UseImport and callexpand_args`python import argparse from bashrange import expand_args parser =argparse.ArgumentParser(prog="copy.py")parser.add_argument("src",nargs='+')parser.add_argument("dst")args =parser.parse_args(expand_args())`And you can use bash range and list expressions outiside bash shell, for example in cmd on windows`bash python copy.pyimage{1..10}.jpgfolder python copy.pyfile.txt{,.bak}`You can test expression expansion in cmd like this`bash python-mbashrange-v{1..10..2}`## AuthorStanislav Doronin <mugisbrows@gmail.com>## Licensebashrangeis distributed under the terms of MIT license, checkLICENSEfile.
Package: bashsmash
BashSmashA tool for obfuscating bash shell codeInstallationTo install BashSmash, make surepython3.7andpython3-pipare installed on your computer, then run:pip3 install bashsmashBashSmash is now installed!UsageBashSmash can be used in two ways. First, by passing your script as an argument:# The result will be sent to stdoutbashsmash"echo Hello, World\!"Or, by piping through stdin:# The result will be sent to stdoutecho"echo Hello, World\!"|bashsmash-
Package: bashsnakegame
terminal_snakeA cli for snake game in python using graph algo and vanilla python without using no gui libraries nothing only logic and python.InstallationYou can just install from pypi.pipinstallbashsnakegameQuick Startcreate a python file and paste thisfrom bashsnakegame.game import SnakeGame

def main():
    #width will be the first arg and height will be the second arg based on that i will draw the cells in the terminal
    game = SnakeGame(10,20)
    game.start_game()
main()

Commands:
  shell  run the python file and your game starts.DemoLicenseThis project is licensed under theMITLicense.
Package: bashtalk
bashtalkThis is a command-line interface application that records voice input, converts the voice input into text, and uses an OpenAI LLM (language model) to generate a bash script corresponding to the converted text. It provides options to customize the actions, such as skipping the LLM model, automatically running the generated script, and providing verbose output.RequirementsPython 3.6 or aboveSoXOpenAI Python clientLLMInstallationPip InstallationYou can now installbashtalkdirectly from PyPI:pipinstallbashtalkManual InstallationMake sure you have Python 3.6 or above installed. You can check your Python version using the following command in the terminal:python --versionInstall the SoX fromhttp://sox.sourceforge.net/.Clone the repository and navigate to its root directory.Install the package dependencies:pip install .Setup and authenticate the OpenAI Python client. For more details, checkoutOpenAI Python client setup.Download and setup the LLM.UsageAfter installation, you can runbashtalkdirectly from the command line:bashtalk-d~/Documents-faudio.mp3-mgpt-3.5-turbo-vHere's a description of the various arguments:-d,--dir_path(default:/tmp): Directory to save files-f,--file_name(default:audio_record.mp3): Name of the audio file-m,--model_name(default:gpt-3.5-turbo): LLM model name-s,--skip_llm: Skip running the LLM model-y,--auto_run: Automatically run the script without asking for confirmation-v,--verbose: Verbose output-c,--context_file: Context file for LLM promptNotesThis is a basic version of bashtalk. It uses external dependencies such as SoX, OpenAI, and LLM models. Please make sure that all dependencies are properly installed and setup. For more advanced usage, consider integrating it with other systems or extending it with more utility functions.LicenseThis project is licensed under the terms of the MIT license.
Package: bashtest
Author:Pahaz BlinovRepo:https://github.com/pahaz/bashtest/BashTest is a UNIX command-line tool for the testing bash/shell utilites.This is a simplest way to write simple bash tests.requirements: Python2 or Python3keywords: bash unittest, unittesting, bash tesing, sh unit testingInstallationbashtestis on PyPI, so simply run:pip install bashtestoreasy_install bashtestto have it installed in your environment.For installing from source, clone therepoand run:python setup.py installIf you don`t havepipyou caninstall itTypical use caseYou have a command line util or bash/sh script and you want to test it.For example, we want to testlsutil.All of we need is to create text file with execution log../test_ls.bashtest$ ls ./testsuit/list-directory
file1
file2.txt
file3.py
file4.shRun this tests$ bashtest test_ls.bashtest
1 items passed all tests:
   1 tests in test_ls.bashtest
1 tests in 1 items.
1 passed and 0 failed.
Test passed.Test README examplesYou have a some open source project like this. And of course, as in any good
open source project, you have examples. You can automatically check this
examples. Just addbashtest README.rstin your CI tests.More examplesYou can finde some examples in this project. Please checktest_*.bashtestfileschangelog** 0.0.8 **add#skipbashtestsupport** 0.0.7 **fix! remove ugly and useless optionsfeat! Test README.rst#4feat! find *.bashtest by default#3** 0.0.6 **fix! bad command escaping bug#5HELP$ bashtest --help
usage: bashtest [-h] [--exitcode] [-v] [-q] [--debug] [--version]
                [file [file ...]]

BashTest is a UNIX command-line tool for running text-based bash tests.

positional arguments:
  file           Input file (by default uses *.bashtest)

optional arguments:
  -h, --help     show this help message and exit
  --exitcode     Print exitcode after command end of output
  -v, --verbose  Verbose output mode
  -q, --quiet    Silent output mode
  --debug        Print the debug information
  --version      Print the version string