Saravanan666/pypi-org huggingface dataset:
Package: zsft.recipe.cmd
ContentsUsageExamplesDifference from other recipesChange history0.4   (2017-06-21)0.3.1 (2017-06-21)0.3   (2017-06-21)0.2   (2017-06-20)0.1   (2017-06-20)This recipe allows you to run arbitrary shell and python scripts from buildout.
It’s inspired by similar recipes but has few added features.Repository:https://github.com/zartsoft/zsft.recipe.cmdTo clone:git clone https://github.com/zartsoft/zsft.recipe.cmdIssue tracker:https://github.com/zartsoft/zsft.recipe.cmd/issuesSupported Python versions: 2.7, 3.3+Supported zc.buildout versions: 1.x, 2.x.UsageinstallCommands to execute on install phase.updateCommands to execute on update phase.shellShell to run script with. If not set uses default system shell.
Special valueinternalmeans executing as python code from buildout.install-shellCan override shell for install phase.update-shellCan override shell for update phase.shell-optionsAdditional switch to shell, like-Filefor PowerShell,-ffor Awk, etc.install-shell-optionsCan override shell options for install phase.update-shell-optionsCan override shell options for update phase.envList of KEY=VALUE pairs to set environment variables.Examples[cmmi]recipe=zsft.recipe.cmdinstall=./configure --prefix=${buildout:parts-directory}/optmakemake installenv=CFLAGS=-g -Wall -O2LDFLAGS=-lmLD_RUN_PATH=$ORIGIN/../lib[pythonscript]recipe=zsft.recipe.cmdshell=internalinstall=os.chdir('${buildout:parts-directory}')if not os.path.exists('opt'):os.makedirs('opt')os.chdir('opt')check_call(['./config ; make'], shell=True)[msbuild:windows]recipe=zsft.recipe.cmdconfiguration=Releaseplatform=Win32install=msbuild.exe /t:Build /p:Configuration=${:configuration} /p:Platform=${:platform}[service-restart:windows]recipe=zsft.recipe.cmdshell=powershell.exeshell-options=-Fileservice=fooupdate=$service="${:service}"Write-Host -ForegroundColor Yellow "Restarting service '$service'"Restart-Service -Verbose $serviceDifference from other recipesUnlike other similar recipes this one allows you to specify custom shell on
Windows and environment variables.iw.recipe.cmdDoes not allow you to have different scripts for install and update.
Specifying shell is POSIX only.collective.recipe.cmdSame limitations as iniw.recipe.cmd. Hasuninstall_cmdsand python mode.plone.recipe.commandHasstop-on-erroroption and allows different scripts for install/update.
Does not seem to allow multiline commands or custom shells.Change history0.4   (2017-06-21)Fix environment parserFix conditional section syntax in exampleCleanup logging0.3.1 (2017-06-21)Fix shell options when no shell is passed.0.3   (2017-06-21)Run shell explicitly. Fixes running on POSIX.0.2   (2017-06-20)Fix for re-running install script.0.1   (2017-06-20)Initial release.
Package: zshell
shell自动化模块参数说明参数名数据类型默认值描述更新日志发布时间发布版本发布说明19-03-060.1.0发布第一版, 暂时不支持集群简单实例fromzshell.terminalimportterminala=terminal('host',22,'user','password')a.run('ll')a.close()本项目仅供所有人学习交流使用, 禁止用于商业用途
Package: zshgpt
zshgptTable of ContentsAboutInstallationAdding pluginLogoLicenseAboutHeavily inspired by the abandoned projecthttps://github.com/microsoft/Codex-CLIMade into a oh-my-zsh plugin.In your zsh console, type a question, starting with comment sign#, hitctrl+gand get an answer.# Who edited README.MD last according to git history?ChatGPT will then answer with e.g.:gitlog-1--format="%an"README.mdHitenterto execute orctrl+cto deny.If asked a question that will not resolve in a command, GPT is instructed to use#.# Who was Norways first prime minister?# Norway's first prime minister was Frederik Stang, serving from 1873 to 1880.PrerequisiteInstalling zshgptFirst install zshgpt application, thenadd the plugin.Prerequisite⚠️ Valid Openai API-key ⚠️make sure to save underOPENAI_API_KEYenv.export OPENAI_API_KEY='sk-...'With snapSnap comes preinstalled and is probalby the fastest way if you are on Linux and do not want to use pipx.PrerequisitesnapsudosnapinstallzshgptInstructions if you don't have snap.With pipxPrerequisitepython >= 3.8pipxpipxinstallzshgptWIth pipPrerequisitepython >= 3.8pippipinstallzshgptWith homebrewThis is not yet automated and you might get an older version.PrerequisiteHomebrewbrewinstallAndersSteenNilsen/zshgpt/zshgptAdding pluginWith Zshcurlhttps://raw.githubusercontent.com/AndersSteenNilsen/zshgpt/main/zshgpt.plugin.zsh-o~# Copy pluginecho"source ~/zshgpt.plugin.zsh">>~/.zshrc# Add to zshrcexeczsh# Reload zshWith Oh My ZshPrerequisiteOh My Zshmkdir$ZSH_CUSTOM/plugins/zshgpt
curlhttps://raw.githubusercontent.com/AndersSteenNilsen/zshgpt/main/zsh_plugin.zsh-o$ZSH_CUSTOM/plugins/zshgpt/zshgpt.plugin.zshThen add zshgpt in your list of plugins in~/.zshrcplugins(
    ...
    zshgpt
    ...
)omzreloadWith zplug~/.zshrc...
zplug "AndersSteenNilsen/zshgpt"
zplug loadLOGOMade with DALL-ELicensezshgptis distributed under the terms of theMITlicense.
Package: zsh-history-to-fish
Bring your ZSH history to Fish shellThis is a simple tool to ease the migration from ZSH to Fish shell, without losing your hard-earned history commands.As I was migrating myself, I've found out there's no tool to do this automatically, so I've made one for my own use.
For that, I had to search for the specifications of both history files, and ended up involved in multiple threads with the right devs to try to understand and make it work.
In the process, I've stumbled upon several people interested in a such a tool.Well, it has worked! So I've wrapped it in a python package to make it easy to use, and now I'm sharing with anyone who may need it! It's released on PyPI.Get itJust do in your zsh shell:❯pipinstallzsh-history-to-fishHow to use❯zsh-history-to-fish--help
Usage:zsh-history-to-fish[OPTIONS][INPUT_FILE]BringyourZSHhistorytoFishshell.

Options:--versionShowtheversionandexit.-o,--output_filePATHOptionaloutput,willappendtofishhistorybydefault-d,--dry-runDonotwriteanythingtofilesystem-n,--no-convertDonotnaivelyconvertcommands--helpShowthismessageandexit.A successful run looks like:❯zsh-history-to-fish-dn
ZSHhistorytoFish===================input:/Users/rogerio/.zsh_history(naive-convert=False)output:dryrunmode
.......
Processed6515commands.
Nofilehasbeenwritten.Changelog highlights:0.3.0: fix for empty history lines, and general command output improvements0.2.0: use actualzshprocess to import history, since it does not use utf-80.1.0: initial versionLicenseThis software is licensed under the MIT License. See the LICENSE file in the top distribution directory for the full license text.Did you like it?Thank you for your interest!I've put much ❤️ and effort into this.If you appreciate my work you can sponsor me, buy me a coffee! The button is on the top right of the page (the big orange one, it's hard to miss 😊)
Package: zsh-jupyter-kernel
zsh kernel for jupytera simple z shell jupyter kernel powered by python 3, pexpect and enthusiasm.i love experimentation and tinkering, but usual shell terminals does not allow developing multiple different code snippets at once conveniently.
with shell kernels you can turn your scripts into notebooks!if you find this product useful, please consider supporting me with a one-time tip.installationinstall the python package frompypi.install the jupyter kernel spec using python scriptinstallin thezsh_jupyter_kernelmodule.
checkpython -m zsh_jupyter_kernel.install -hfor possible installation options.
default installation will install the kernel in the user location.
use--sys-prefixoption if you want to install the kernel in your current virtual environment.see some common installation examples below.pipenvpipenv--python3.10installnotebookzsh_jupyter_kernel
pipenvrunpython-mzsh_jupyter_kernel.install--sys-prefixpippython-mpipinstallnotebookzsh_jupyter_kernel
python-mzsh_jupyter_kernel.install--sys-prefixtechnical overviewthe kernel launches zsh as if it was a regular process launched from your terminal with a few minor settings to make sure it works with jupyter. there is slight chance it wont work with super complicated zshrc setups, but it works with majority of configs including oh-my-zsh.how does code execution workthe kernel configures zsh prompt string to its own custom value.
when a user requests a cell execution, the code is sent to the kernel.
then the kernel puts the frontend on hold, sends the code to zsh process, and waits for the prompt string to release the frontend and let the user request more code execution.code completioncode completion is powered by quite a non-trivial script that involves multiple steps, including spawning another temporary zsh process and capturing completion options into a data structure that jupyter frontend understands.code inspectioncode inspection is done byman --pager ulwhich sends the whole man page to the frontend.code completenesscode completeness is checked with the temporary zsh process and help ofEXECzsh option, which allows switching off code execution and simply check if the code is complete using the exit code of the zsh process itself.stderrstderr content is just sent to the front-end as regular stdout.stdinstdin is not supported because of the execution system when a process spawned by a user waits for stdin, there is no way to detect it.missing featureshistoryrich html output for things like images and tablesstdin. might be possible with or without the current systempagers. might be possible or notstored and referenceable outputs
Package: zshpower
ZSHPoweris a theme for ZSH; especially for thePythondeveloper. Pleasant to look at, theZSHPowercomforts you with its colors and icons vibrant.InstallingZSHPoweris the easiest thing you will see in any existing theme forZSH, because there is a manager.The changes in the theme become more dynamic through a configuration file, where the user can make various combinations for the style ofZSHPower.TheZSHPowersupports installation along withOh My ZSH, where changes to:enableanddisableanOh My ZSHtheme are easier, all in a simplified command line, without opening any files or creating symbolic links.In addition, theZSHPowermanager downloadsOh My Zshand thezsh-autosuggestionsandzsh-syntax-highlightingplugins automatically, everything to make your ZSH very power.RequirementsTo work correctly, you will first need:git(v2.25 or recent) must be installed.zsh(v5.2 or recent) must be installed.python(v3.9 or recent) must be installed.sqlite3(v3.35 or recent) must be installed.pip(v21.0.1 or recent) must be installed.nerd fontsmust be installed.FeaturesOh My Zshinstallation automatically;*Automatically installzsh-autosuggestionsandzsh-syntax-highlighting;Automated installation and uninstallation;Enable and disableZSHPoweranytime;UpgradeZSHPowereffortlessly;Reset the settings with one command only;Personalized directory with truncate option;Current Git branch and rich repo status:— untracked changes;— new files added;— deleted files;— new modified files;— commits made;— and more.Application versions shown withnerd fonts, they are:CMake, Crystal, Dart, Deno, Docker, Docker, Dotnet, Elixir, Erlang, Go, Gulp, Helm, Java, Julia, Kotlin, Nim, NodeJS, Ocaml, Perl, Php, Python, Ruby, Rust, Scala, Vagrant, ZigPackage versions such as Crystal, Helm, NodeJS, Python, Rust shown;Shows the time in the upper right corner;and, many other dynamic settings in$HOME/.zshpower/config/zshpower.toml.* features if used withOh My ZSH.Installing$python3-mpipinstallzshpower--userNOTE: It is recommended that you install for user rather than global.UsingRun the command below to setZSHPoweron your ZSH:$zshpowerinitIf you want to use ZSHPower withOh My Zsh, use the–omzflag:$zshpowerinit--omzFor more command information, run:$zshpower--helpMore information:https://github.com/snakypy/zshpowerDonationClick on the image below to be redirected the donation forms:LicenseThe gem is available as open source under the terms of theMIT License©CreditsSee,AUTHORS.LinksCode:https://github.com/snakypy/zshpowerDocumentation:https://github.com/snakypy/zshpower/blob/main/README.mdReleases:https://pypi.org/project/zshpower/#historyIssue tracker:https://github.com/snakypy/zshpower/issues
Package: zsh-startify
zsh-startifyYou can also use it in a more minimal configuration, like this:This is a fancy start screen forzsh. After starting a terminal session, it will:Start atmuxserver if it's not already runningAllow you to easily attach to anytmuxsessionsAllow you to easily create new tmux sessionsAllow you to quickly launch azshsession, byCtrl-C'ing orCtrl-D'ing out of the prompt.InstallationThe recommended installation method is throughPyPi:$pip3installzsh-startify
$echo"zsh-startify">>~/.zshrcBut, if you'd like to install it manually:$gitclonegit@github.com:alichtman/zsh-startify.git&&cdzsh-startify
$python3setup.pyinstall
$echo"zsh-startify">>~/.zshrcNote: This tool depends onPython 3.6+. You can check what version you have with:$python3--version
Python3.7.4ConfigurationThis tool comes with sensible defaults. No configuration is necessary, however, the following settings may be changed in your~/.zshrcfile:ZSH_STARTIFY_HEADER_FONTThis is the Figlet font that the header text will be printed in.Default:univers. Accepts anyFiglet font.ZSH_STARTIFY_HEADER_TEXTThis string will be printed as the header.Default:zsh. Accepts any string.ZSH_STARTIFY_NO_SPLASHSet this environment variable to not print the splash screen.Default: Not set. If set to anything, the splash screen will not be printed.ZSH_STARTIFY_NON_INTERACTIVESet this environment variable to not display the action picking menu.Default: Not set. If set to anything, the interactive menu will not be displayed.An example of this could be:exportZSH_STARTIFY_HEADER_TEXT="custom-header"exportZSH_STARTIFY_HEADER_FONT="slant"My configuration is:exportZSH_STARTIFY_NO_SPLASH=trueexportZSH_STARTIFY_NON_INTERACTIVE=truetmuxIntegrationThis works best when used with these twotmuxplugins:tmux-resurrecttmux-continuumInspirationI've usedvim-startifya lot. I figured it was time forzshandtmuxto have a similar tool.
Package: zsi-lxml
ZSI, the Zolera SOAP Infrastructure, is a pure-Python module that
provides an implementation of SOAP messaging, as described in SOAP 1.1
Specification (seehttp://www.w3.org/TR/soap).  It can also be used to
build applications using SOAP Messages with Attachments (seehttp://www.w3.org/TR/SOAP-attachments).  ZSI is intended to make it
easier to write web services in Python.In particular, ZSI parses and generates SOAP messages, and converts
between native Python datatypes and SOAP syntax. Simple dispatch and
invocation methods are supported.  There are no known bugs.  It’s only
known limitation is that it cannot handle multi-dimensional arrays.ZSI is built on top of DOM.  It requires Python 2.3 or later, and PyXML
0.8.3 or later.  It is open source.  We hope you find it useful.The ZSI.twisted package will only be built if you’re using Python >= 2.4,
and in order to use it you’ll need twisted >= 2.0 and twistedWeb >= 0.5.0The documentation (in PDF and HTML) is accurate.  We should probably
restructure the document as a HOWTO.  You probably can’t usefully edit
the docs without having the Python2.0 sources and some other utilities
(TeX, pdfLaTeX, latex2html) on a Unix or Cygwin installation.  If you
want to format or revise the docs, see “Documentation Tools” in the
file RELEASE./rich $alzrsalz@datapower.comThings To DoAny volunteers?Use isinstance() for types.Update to SOAPv1.2.
Package: zsl_jwt
JWT implementation for ZSL framework. This modules adds security
possibilities to ZSL.Free software: BSD licenseInstallationJust addzsl_jwtto your requirements or usepip install zsl-jwtUsageAddzsl_jwt.module.JWTModuleto the modules in yourIoCContainerand provide azsl_jwt.configuration.JWTConfigurationin your
configuration underJWTvariable.DocumentationSee more inhttps://zsl_jwt.readthedocs.io/DevelopmentTo run the all tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append toxChangelog0.1.3 (2017-07-19)Algorithm setting is moved to JWTProfile.0.1.2 (2017-07-18)Forgotten unit tests are added.0.1.1 (2017-07-18)A first version able to encode and decode.0.1.0 (2017-06-20)First release on PyPI.
Package: zsl_openapi
Generate OpenAPI specification for your models and API out of your ZSL service. This module scans the given packages
for the persistent models and generates model definitions out of them.The full API (paths) may be declared manually.Free software: BSD licenseInstallationpip install zsl-openapiHow to useDefine container with thezsl_openapi.module.OpenAPIModule.class MyContainer(WebContainer):
    open_api = OpenAPIModuleThen you may use CLIopen_apicommand.python app.py \
    open_api generate \
    --package storage.models.persistent \
    --output api/openapi_spec_full.yml \
    --description api/openapi_spec.ymlSee more in the documentation mentioned below.Documentationhttps://zsl_openapi.readthedocs.io/DevelopmentSetup a virtualenv using Python 2.7 and activate it. To install all the development requirements run:pip install -r requirements.txtTo run the all tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append toxChangelog0.1.0 (2017-06-09)First release on PyPI.
Package: zsocket
网络连接socket封装支持心跳包, 支持长连接, 断线检测, 不粘包测试代码:if __name__ == '__main__':import threadingfrom zsocket.commonlib.data_pack import data_packfrom zsocket.tcp.server import Serverfrom zsocket.tcp.client import Clientdef server_client_connect_fun(client):print('服务端收到连接', client.remote_addr)server.close_listen()threading.Thread(target=send_data, args=(client,)).start()def server_client_close_fun(client, close_state):print('服务端断开连接', client.remote_addr, close_state)def send_data(client):while client.is_connect:text = input('请输入要发送的数据:')if not client.is_connect:returnif not text or text.lower() == 'q':client.close()returnclient.send(text.encode())client.send_text(text)client.send_pack_arg(text, 1, 2, 3)def client_connect_fun(client):print('客户端连接', client.local_addr)def client_close_fun(client, close_state):print('客户端断开连接', client.local_addr, close_state)def client_get_data_fun(client, data):print('客户端收到数据', data)def client_get_text_fun(client, text):print('客户端收到文字', text)def client_get_pack_fun(client, pack):print('客户端收到包', pack.data, pack.a1, pack.a2, pack.a3)server = Server()server.password = '123'server.set_client_connect_callback(server_client_connect_fun)server.set_client_close_callback(server_client_close_fun)server.listen(7777)client = Client()client.password = '123'client.set_connect_callback(client_connect_fun)client.set_close_callback(client_close_fun)client.set_get_data_callback(client_get_data_fun)client.set_get_text_callback(client_get_text_fun)client.set_get_pack_callback(client_get_pack_fun)client.connect('localhost', 7777)
Package: zspell
ZSpellPython bindings for the Rust zspell library: a simple yet fast spellchecker.To use this library, you will need a dictionary in the language of your choice.
Many are available at the following repository:https://github.com/wooorm/dictionariesThe full Python API documentation is available athttps://zspell.readthedocs.iofromzspellimportDictionarywithopen("dictionaries/en_US.aff","r")asf:config_str=f.read()withopen("dictionaries/en_US.dic","r")asf:dict_str=f.read()d=Dictionary(config_str,dict_str)assert(d.check("Apples are good! Don't you think?"))assert(notd.check("Apples are baaaad"))
Package: zs-postinstall-test
A set of small tests to ensure your ZeroStack cluster is running properly.DependenciesIn order to run the post install tests download the cloud admin RC and certificate files out of the admin.local BU.Zerostack rc fileZerostack certificate fileRC and Cert FilesPull the RC file from the newly installed ZeroStack cluster.LogIn -> Click on BU List -> Click on admin.local BU -> Click on Project -> zs_default -> More tab -> APIWhen you get the RC file, make sure to specify your password and the fully qualified path to the cert file.Run Tests$ source ~/zsrc.txt$ zs-post-installIf you have already run the test, and would like to run it again, delete the PostInstall BU tat was created.OS RequiermentsCentOS 7$ yum install -y epel-release,python-pip,hdparmUbuntu 14.04 / 16.04 / 18.04$ apt install -y python-pipPre-flight PrerequisitesPIP will install all of the packages needed to run the ZS-Post-Install test, if they are not present.$ pip install urllib3==1.24.1InstallingTo install the preflight check on the system, follow these steps. Make sure all of the pre-requisite packages have been installed.$ pip install zs-postinstall-testRunning the testsRun the post install test with the following command.$ zs-post-installBuild and SubmitGIT - development / nightlygit clonehttps://github.com/Zerostack-open/post-install-test.gitcd zs-post-install-testpython setup.py bdist_wheelPIP - Developmentsudo python -m pip install –upgrade pip setuptools wheelsudo python -m pip install tqdmsudo python -m pip install –user –upgrade twineAuthorsJonathan Arrance-Initial work- [Zerostack-open](https://github.com/Zerostack-open)See also the list of [contributors](https://github.com/JonathanArrance) who participated in this project.LicenseThis project is licensed under the MIT License - see the [LICENSE.md](https://github.com/Zerostack-open/zs-post-install-test/blob/master/LICENSE) file for details
Package: zs-preflight
The ZeroStack pre-flight system check can be used by an administrator or ZeroStack SE to determine if the hardware in question is compatible with the ZeroStack cloud operating system.The preflight check will ensure that your physical server will work with the Zerostack ZCOS. Once this script is run, and
all of the checks are varified, you will be able to install the ZCOS.The preflight check will make sure the hardware adhears to the Zerostack minimal viable hardware spec.Overall system configurationCPU architectureStorage requiermentsNetworkingPlease check the Ubuntu HCL to verify your results.
[Ubuntu Server HCL](https://certification.ubuntu.com/server/)Once all of the results have been verified, please send them to your SE.Getting StartedIn order to get the preflight check working, you will need to make sure python 2.7 or 3.x is installed on the system the preflight check will run on.PIP will also be requierd in order to install zs-preflight and the supporting packages.OS RequiermentsCentOS 7$ yum install -y epel-release,python-pip,hdparmUbuntu 14.04 / 16.04 / 18.04$ apt install -y python-pipPre-flight PrerequisitesIn order to get the zspreflight system working you will need to install the following packages on the sytstem you are running the preflight check from.PIP will install all of the packages needed to run the ZS-Preflight system, if they are not present.$ pip install paramiko$ pip install gspread$ pip install oauth2clientInstallingTo install the preflight check on the system, follow these steps. Make sure all of the pre-requisite packages have been installed.$ pip install zs-preflightRunning the testsRun the pre-flight check with the following command.$ preflightBuild and submitGIT - development / nightlygit clonehttps://github.com/Zerostack-open/zs-preflight.gitcd zspreflightpython setup.py bdist_wheelPIP - Developmentsudo python -m pip install –upgrade pip setuptools wheelsudo python -m pip install tqdmsudo python -m pip install –user –upgrade twineTODOUpload data to GsheetFire off preflight from zspreflight on a remote systemAuthorsJonathan Arrance-Initial work- [Zerostack-open](https://github.com/Zerostack-open)See also the list of [contributors](https://github.com/JonathanArrance) who participated in this project.LicenseThis project is licensed under the MIT License - see the [LICENSE.md](https://github.com/Zerostack-open/zs-preflight/blob/master/LICENSE) file for details