Saravanan666/pypi-org huggingface dataset:
Package: script
Use with Python 3.This module is mostly for folks who need to write a python script
that will be run from the command line. You know, something that can
parse command line arguments and run other external programs via the
shell. The kind of script you can call with –help. Something that
perhaps reads, copies, deletes, or otherwise manipulates files by
their pathname.If any of these apply, perhaps this module is for you!A simpleimport scriptstatement can provide your code with
convenient command line parsing, à la carte--helpdocumentation,
useful path operations, shell command invocation with optional pipe
redirection, and early run-time termination with exit status
control. Read on for more. Cheers!
Package: script2package
[![PyPI version](https://badge.fury.io/py/script2package.svg)](https://badge.fury.io/py/script2package)script2packagescript2package is a Python script which converts a single python script into a package which can then be installed viapython setup.py install.Usage:script2package script.py –base base_folderTo extend the flexibility of this package, you can enable setup options through
providingsetup.cfgif you so desire.InstallationYou can install this package viapip(pip install script2package) orpython setup.py install.ExamplesA bootstrap example has been provided by runningscript2package script2package.py, which will produce a self contained version within the folderpackage.A simple standalone example with nosetup.cfgfile is provided inExample/add/add.pywith the generated package inExample/add/package.
Package: scriptable
Scriptable is a sand-boxed scripting engine which can be used safely in an embedded environment.Its canonical abstract syntax tree model is designed to support various syntax forms.
At the moment the typescript syntax as well as the hypothesis syntax
(a typescript syntax subset used for logical reasoning) and the mustache syntax are supported.The scripting engine forbids endless loops and has a recursion guard, which detects loops in
a function call stack. In addition to that scriptable allows to define more detailed AST
restrictions. At the moment following restrictions are supported:max_precision # The max allowed number of digits in a number.max_scale     # The max allowed digits to the right of the decimal point in a number.max_loops     # The max allowed number of loop iterations.UsageTypescriptEngineengine=TypescriptEngine.parse("""function fibonacci(n:number) {if (n == 0) return 0if (n == 1) return 1if (n == 2) return 1return fibonacci(n - 1) + fibonacci(n - 2)}fibonacci(8) // returns 21""")engine.execute()HypothesisEngineengine=HypothesisEngine.parse("x > 0")engine.execute({"x":1})// returns TrueMustacheEngineengine=MustacheEngine.parse("text {{x}} text")engine.execute({"x":1})// returns "text 1 text"
Package: script-background-music
script-background-musicscript-background-music- Play elevator music in the background while your script runs.Why?Everythingis better with music!UsageIt is very simple to use the package inside your scripts ...... the entire time, until your script exitsfromscript_background_musicimportplay_music_in_backgroundplay_music_in_background()... for a specific set of instructionsfromscript_background_musicimportBackgroundMusicContextwithBackgroundMusicContext():# your instructions go herepassNotes on implementationCan it break my script?No, it should not at least. If something goes wrong playing music etc. it simply wont play music.
If you encounter the opposite feel free to create a bug report.CreditsSpecial thanks to@TaylorSMarksfor
creatingplaysoundthat I modified and ship with this package.Clker-Free-Vector-Imagesfor the
wonderfulelevator imageused as project image
Package: script-benchmark-tools
Python Script Benchmark ToolsBenchmark script run times, print tables of results and display plots.Installpip install script_benchmark_toolsSee examples folder for usage.Sample OutputProofsinsertion_sort [1, 2, 3, 4, 5, 6]
selection_sort [1, 2, 3, 4, 5, 6]BenchmarksN = 10minavgmaxfuncname0.0000081060.0000183420.000201225insertion_sortsarcoma0.0000088210.0000293610.001542091selection_sortsarcomaN = 50minavgmaxfuncname0.0000278950.0000305180.000068188insertion_sortsarcoma0.0000898840.0002142450.004812956selection_sortsarcomaN = 100minavgmaxfuncname0.0000617500.0000692650.000296116insertion_sortsarcoma0.0003316400.0003907850.000853777selection_sortsarcomaN = 500minavgmaxfuncname0.0005850790.0007743840.005968094insertion_sortsarcoma0.0089998250.0154886910.050533056selection_sortsarcomaN = 1000minavgmaxfuncname0.0017879010.0092313120.057305098insertion_sortsarcoma0.0374159810.0476633880.092668772selection_sortsarcoma
Package: scriptbox
Aboutscriptboxis a collection of small utilities for everyday tasks.
As development is still in very early stages,scriptboxhas only one utility
to introduce -screencapture, for taking screenshots. More utilities are
coming in the future, however, as I get them done.InstallationYou should installscriptboxby installing it with a specific
python interpreter, like below.python3.10-mpipinstallscriptboxUsageTo use any of the programs, you can simply invoke their name, as described below
in the sectionCommand. However, to create a keybinding to invoke any of the
utilities (in i3 config, for example), you need to provide full path to a
utility, asDefault pathdescribes. Note that the path might vary, depending
wherepipinstalls the utilities, so make sure to check it withwhich <utility name>against any of the utilities, to get the correct path.ProgramCommandDefault pathscreencapturescreencapture~/.local/bin/screencaptureRequirementsRequirementNoteCaveatPython3.10OSMacOS, LinuxNot tested on OSX (yet)
Package: scriptcheck
scriptcheckPrint a list of scripts from your Python Scripts folder for when you're like me and can't remember what you've installed or what a tool is called.InstallationInstall with:pip install scriptcheckUsage>scriptcheck -h
usage: scriptcheck [-h] [includes ...]

positional arguments:
  includes    A list of wildcard patterns to search for scripts with. i.e. >scriptcheck a* d* will only print scripts starting with an 'a' or a 'd'.

options:
  -h, --help  show this help message and exit
Package: scriptcrypt
# OVERVIEWscriptcryptis a database/notebook program for user programs and associated scripts.It provides two functions:1. A structured view of user defined program entries
1. Ability to easily install/remove listed entries via user specified script (using specified shell)Each entry of the program database consists of:Unique nameCategorySubcategoryBrief descriptionInstall scriptRemove script# INSTALLATIONTo installscriptcryptyou have to have these installed:pip3setuptoolsOn the debian-like system you may obtain those by issuing the following commands:sudo apt-get install python3-pipsudo pip3 install -U pipsudo pip3 install setuptoolsFinally, to installscriptcryptsystem-wide:sudo pip3 install scriptcryptOr for current user only:pip3 install –user scriptcryptIf you installing scriptcrypt for the specific user, you may have to modify your system$PATHvariable to add~/.local/binfolder to it.# OPTIONSscriptcryptprovides some useful options:scriptcrypt –dbsets the path to the databasescriptcrypt –editorandscriptcrypt –viewerset the TUI text editor and pagerscriptcrypt –manage-envarsallows to add custom environmental variables. These variables are set before the script execution.# –POPULATE OPTIONSscriptcrypt –populate-dbcopies a predefined database for the user usagescriptcrypt –populate-bashcopies bash-completion script to the user localbash-completionfolderscriptcrypt –populate-zshcopies zsh-completion script to the user local completion folder.Note that this function only works if you useoh-my-zshzsh settings framework as it uses ‘~/oh-my-zsh/completion’ folder.
If you want to use zsh completion without installingoh-my-zsh, you need to either copy_scriptcryptcompletion file to one of the/usr/share/zsh/functions/Completionfolders or add_scriptcryptcontaining folder to zsh$fpathvariable.# KNOWN ISSUESusingbackspaceor similar when editing entries containing Unicode characters may have unexpected results. When this happensscriptcryptfalls back to the empty strings# ADDITIONSjson2db.shanddb2json.shscripts may be useful if out want to convert database to json fine and visa-versa
Package: scriptcwl
scriptcwl is a Python package for creating workflows inCommon Workflow Language (CWL). If you give it a number of CWLCommandLineTools, you can create a workflow by writing a Python script. This can
be done interactively usingJupyter Notebooks. The full
documentation can be found onRead the Docs.Given CWLCommandLineToolsforaddandmultiply(these are available
inscriptcwl),
a CWL specification of this workflow can be written as:fromscriptcwlimportWorkflowGeneratorwithWorkflowGenerator()aswf:wf.load(steps_dir='/path_to_scriptcwl/scriptcwl/examples/')num1=wf.add_input(num1='int')num2=wf.add_input(num2='int')answer1=wf.add(x=num1,y=num2)answer2=wf.multiply(x=answer1,y=num2)wf.add_outputs(final_answer=answer2)wf.save('add_multiply_example_workflow.cwl')The workflow has two integers as inputs (num1andnum2), and first adds
these two numbers (wf.add(x=num1, y=num2)), and then multiplies the answer
with the second input (num2). The result of that processing step is the output
of the workflow. Finally, the workflow is saved to a file. The result looks like:#!/usr/bin/env cwl-runnercwlVersion:v1.0class:Workflowinputs:num1:intnum2:intoutputs:final_answer:type:intoutputSource:multiply/answersteps:add:run:add.cwlin:y:num2x:num1out:-answermultiply:run:multiply.cwlin:y:num2x:add/answerout:-answerThe Python and CWL files used in the example can be found in theexamples folder.InstallationInstall using pip:pipinstallscriptcwlFor development:gitclonegit@github.com:NLeSC/scriptcwl.gitcdscriptcwlpythonsetup.pydevelopRun tests (including coverage) with:pythonsetup.pytestUseful toolsTo use scriptcwl for creating CWL workflows, you need CWLCommandLineTools.
There are some software packages that help with generating those
for existing command line tools written in Python:argparse2tool: Generate CWL CommandLineTool wrappers (and/or Galaxy tool descriptions) from Python programs that use argparse. Also supports theclickargument parser.pypi2cwl: Automatically run argparse2cwl on any package in PyPi.python-cwlgen: Generate CommandLineTool and DockerRequirement programmaticallyLicenseCopyright (c) 2016-2018, Netherlands eScience Center, University of TwenteLicensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: scriptd
ScriptdScriptd lets you execute a set of preconfigured scripts or executables via HTTP API, securely, without exposing terminal access, and with almost no configurations.Designed for remote job automation when direct SSH is not desirable, Scriptd helps you deal with situations when your development server is behind firewalls or your corporation's security policy forbids direct SSH access. Write down your code updating / building / deployment commands as scripts and you are good to go with HTTP access only. And no, you are not exposing your server to code injections: only your preconfigured scripts are allowed to run.FeaturesSetting up preconfigured scripts as HTTP API for remote job automation.Almost zero configuration: a work directory with your scripts inside, and a secret key, that's all.No terminal exposure: scriptd does not run any code or parameters from client requests, only your preconfigured scripts. No code injection.Security: encryption & authentication with AES-256-GCM.UsageServerscriptd [-h] [-H HOST] [-p PORT] [-k KEY | --key-file KEY_FILE] [-d DIR]

optional arguments:
  -h, --help            show this help message and exit
  -H HOST, --host HOST  Host name to listen on, default: 0.0.0.0
  -p PORT, --port PORT  Port to listen on, default: 8182
  -k KEY, --key KEY     Authentication key, default: empty
  --key-file KEY_FILE   Authentication key file. Key will be derived from its hash.
  -d DIR, --dir DIR     Working directory, default: current dirClientscriptc [-h] [-H HOST] [-p PORT] [-k KEY | --key-file KEY_FILE] command

positional arguments:
  command               Name of the script to run on server

optional arguments:
  -h, --help            show this help message and exit
  -H HOST, --host HOST  Server ip or name, default: 127.0.0.1
  -p PORT, --port PORT  Server port, default: 8182
  -k KEY, --key KEY     Authentication key, default: empty
  --key-file KEY_FILE   Authentication key file. Key will be derived from its hash.Example usageOn your server, put your scripts in a directory named~/scriptd_home. It is strongly advised that you keep this directory and any file under it accessable only to yourself.Prepare an arbitrary-sized key-file that acts as the secret key. Name it~/scriptd_home/keyand put it on both client and server.Runscriptd --key-file ~/scriptd_home/key -d ~/scriptd_hometo start the server.You can now invoke scripts inscriptd_homeremotely from clients with:scriptc -H <your-server> --key-file <key-file-path> <script-name>Scripts will be invoked from~/scriptd_homeon your server. Both stdout and stderr of the invoked script will be sent to your client encrypted.InstallationTo install scriptd simply run:pipinstall-UscriptdTo install to a Unix global python environment usesudo-Hpipinstall-Uscriptd
Package: scriptedsketches
ScriptedSketchesScriptedSketches is an innovative Python package that brings the power of OpenAI's GPT-4 directly to your terminal, allowing you to generate ASCII art from textual descriptions. Designed with simplicity and ease of use in mind, ScriptedSketches opens up a world of creative possibilities for both developers and artists alike.FeaturesEase of Use: Generate art directly from the command line.Powered by GPT-4: Leverages the latest in AI technology for detailed and accurate art.Custom Artwork: Transforms your descriptions into unique ASCII art.On-the-Fly Creation: Instantly renders artwork in the terminal window.InstallationTo get started with ScriptedSketches, install the package using pip:pipinstallscriptedsketchesThis command will download and install ScriptedSketches along with its dependencies. Ensure you have Python 3.6 or newer, as this is required for the package to function correctly.ConfigurationBefore using ScriptedSketches, you must obtain an API key from OpenAI and set it as an environment variable on your system. This key enables the package to communicate with OpenAI's API to generate ASCII art scripts.Setting Up the OPENAI_API_KEYFor Linux and macOS Users:Open your terminal.Run the following command:export OPENAI_API_KEY='your_openai_api_key_here'To make this change permanent, add the export command to your shell's startup script, such as ~/.bashrc, ~/.zshrc, or ~/.profile.For Windows Users:Open Command Prompt.Run the following command:setx OPENAI_API_KEY "your_openai_api_key_here"Restart Command Prompt to apply the changes.Important: Keep your API key secure and never commit it in your version-controlled files.UsageOnce installed and configured, generate ASCII art by simply typing:scriptedsketches "describe your image here"The terminal will display the ASCII art generated based on your description.How It WorksWhen you run the scriptedsketches command, the package communicates with the OpenAI API, sending your descriptive prompt to be processed by the GPT-4 model. The model then returns a Python script tailored to your description, which is executed locally to render your ASCII art in the terminal.ContributingWe welcome contributions to ScriptedSketches! If you have suggestions for improvements or encounter any issues, please feel free to open an issue or submit a pull request.Fork the ProjectCreate your Feature Branch (git checkout -b feature/AmazingFeature)Commit your Changes (git commit -m 'Add some AmazingFeature')Push to the Branch (git push origin feature/AmazingFeature)Open a Pull RequestLicenseThis project is licensed under the MIT License - see the LICENSE file for details.AcknowledgmentsThanks to OpenAI for providing the GPT-4 API.Hat tip to all contributors who have helped shape this project.Questions or FeedbackFor any questions or feedback, please contact the project maintainer atjacobglapkin@gmail.com. Your input is valuable to us!
Package: scriptengine
ScriptEngineScriptEngine is a lightweight and extensible framework for executing scripts
written in YAML. The main purpose of ScriptEngine is to replace shell scripts
in situations where highly configurable and modular scripts are needed.
ScriptEngine relies onYAMLand makes extensive use ofJinja2templating to provide a
comprehensive scripting language. This allows users to put focus on the
description of tasks, rather than their implementation. The description of
complex tasks should be nearly as short and clear as for simpler ones.The ScriptEngine concept separates scripts (whatto do) from the
implementation of tasks (howto do things), and also from the actual
execution environment (the script engine instances). This modularity allows the
provision of different execution models (e.g. sequential or parallel; local or
remote) within the same framework.ScriptEngine provides a concise set of basic tasks that users can use to write
their scripts. However, extensibility is a fundamental principle for
ScriptEngine. Complementary task sets are provided as Python packages that can
be loaded into ScriptEngine at run time. Thus, the capabilities of ScriptEngine
scripts is only limited by available task sets.ScriptEngine tasks are simple Python classes with arun()method, which means
that it is rather easy to build new tasks sets for particular needs. And
because everything is based on Python3, there is a wide range of modules
available to get the actual work done easily and efficiently.ScriptEngine isopen sourcesoftware, hosted atGitHub. Up-to-date ScriptEngine
packages are provided atPyPIandconda-forge, so installation is
as easy aspip install scriptengineorconda install scriptengine.
Documentation, including more detailed installation instructions, is published
atReadtheDocs.
Package: scriptengine-tasks-ecearth
ScriptEngine Tasks for EC-EarthProvidesScriptEnginetasks useful for the EC-Earth climate model.This package is currently being developed. The documentation can be found onReadTheDocs.ContributingSee the documentation for hints oninstallation from source (and how to run tests).See the documentation forhints on code formatting, structure, naming schemes, etc.Have a look at issues labeled"good first issue"for a place to start! :)
Package: scriptenv
scriptenvDefine requirements inside your python code andscriptenvmakes them ready to import.Getting StartedInstallscriptenv$pipinstallscriptenvuse any package you want in your REPL or short-lived scriptsimportscriptenvscriptenv.requires('rsa==4.8')importrsaassertrsa.__version__=="4.8"rsa.newkeys(32)use a binary/entry point defined in any package$scriptenvrun-rblack==21.5b2--black--version
black,version21.5b2Why Another Venv/Package Manager ProjectThe goal of this project is to provide a way to define your dependencies in your script you want to run
and requires no extra setup steps for a virtual env.The scope is for small scripts you want to share or you only want to run from time to time.
For sharing scripts it is also not necessary anymore to also share arequirements.txtfile.
It works also within your REPL.How It Worksscriptenvinstalls every dependency it ever sees in a seperate folder
and prepends the folders for the defined dependencies in a script tosys.path.DevelopmentGetting StartedOpen ingitpod.ioGet the code$gitclonehttps://github.com/stefanhoelzl/scriptenv.git
$cdscriptenvOptionally create avenv$python-mvenvvenv
$sourcevenv/bin/activateInstall required python packages$pipinstall-rrequirements.txtInstall scriptenv from repository$pipinstall-e.Run tests and file checks$pytestTrigger a new release build$pythontools/release.pyrelease-candidateUpdate all requirements$ python tools/requirements.py update
Package: scripterminator
ScripterminatorUseful tool to terminate any Python script just using file path and nameThis package provides a small utility function callledterminate_script(file,delay)This function takes two parameters -fileanddelay(optional).file -> file path + file name
delay -> after how much time you want to terminate the processterminate_script(file,delay)returnsTrueif the script is in running state and terminated successfully.
Otherwise it returnsFalseUsage:Suppose your python script name is bar.py and located in/projects/pythonprojects/bar/folder -importscripterminatorfile='/projects/pythonprojects/bar/bar.py'terminated=scripterminator.terminate_script(file,3)ifterminated:print('script terminated')else:print('script termination failed')This project is licensed under the terms of the MIT license.
Package: script-for-create-standings
Report of Monaco 2018 RacingThis package accepts data files as input and forms the standings of the ridersGetting startedThe program receives files as input, processes them and passes them to the script.Files that the program acceptsstart = list(arguments.files.glob('start.log')).pop()
    end = list(arguments.files.glob('end.log')).pop() 
    abbreviations = list(arguments.files.glob('abbreviations.txt')).pop()Arguments for working with a scriptparser.add_argument('--files', type=pathlib.Path, required=True)
    parser.add_argument('--asc', action='store_true')
    parser.add_argument('--desc', action='store_true')
    parser.add_argument('--driver', type=str)Function parse_filesThe function reads input files, adds data to a dictionarystart, end, abbreviations - object witch is the result of parser.parse_args()Returns a dictionary with ordered data about the ridersFunction build_reportThe function reads out the lap time and sorts the riders according to it. The default is ascending time.pilots - driver data dictionaryreverse=False - default sort valueReturns an ordered list with member abbreviationsFunction print_reportForms the standings, taking into account the conditions of the problemabbr_racer - list with riders abbreviationsReturns standings with racers