Saravanan666/pypi-org huggingface dataset:
Package: virny
Virny Software Library📜 DescriptionVirnyis a Python library for in-depth profiling of model performance across overall and disparity dimensions.
In addition to its metric computation capabilities, the library provides an interactive tool calledVirnyViewto streamline responsible model selection and generate nutritional labels for ML models.
The Virny library was developed based on three fundamental principles:easy extensibility of model analysis capabilities;compatibility to user-defined/custom datasets and model types;simple composition of disparity metrics based on the context of use.Virny decouples model auditing into several stages, including:subgroup metric computation,disparity metric composition,
andmetric visualization. This gives data scientists more control and flexibility to use the library
for model development and monitoring post-deployment.For quickstart, look atuse case examples,an interactive demo, anda demonstrative Jupyter notebook.🛠 InstallationVirny supportsPython 3.8 and 3.9and can be installed withpip:pipinstallvirny📒 DocumentationIntroductionAPI ReferenceUse Case ExamplesInteractive Demo💡 FeaturesEntire pipeline for profiling model accuracy, stability, uncertainty, and fairnessAbility to analyze non-binary sensitive attributes and their intersectionsCompatibility withpre-, in-, and post-processorsfor fairness enhancement from AIF360Convenient metric computation interfaces: an interface for multiple models, an interface for multiple test sets, and an interface for saving results into a user-defined databaseAnerror_analysiscomputation mode to analyze model stability and confidence for correct and incorrect prodictions broken down by groupsMetric static and interactive visualizationsData loaders with subsampling for popular fair-ML benchmark datasetsUser-friendly parameters input via config yaml filesCheck outour documentationfor a comprehensive overview📖 Library OverviewThe software framework decouples the process of model profiling into several stages, includingsubgroup metric computation,disparity metric composition, andmetric visualization. This separation empowers data scientists with greater control and
flexibility in employing the library, both during model development and for post-deployment monitoring. The above figure demonstrates
how the library constructs a pipeline for model analysis. Inputs to a user interface are shown in green, pipeline stages are shown in blue,
and the output of each stage is shown in purple.🤗 Affiliations📝 LicenseVirnyis free and open-source software licensed under the3-clause BSD license.
Package: virsh-start-stop
virsh-start-stopI wanted to start and stop individual libvirt virtual machines with a systemd unit.Callingvirsh start %iorvirsh stop %ifrom the unit doesn't cut it.
This is because it doesn't block while shutting down so you don't know if the machine is really down unless you wrap
it all in a bash script and employ a dirty hack along the lines ofvirsh list | grep myVM.Starting a machine is also challenging becausevirsh startuses exit status 1 for multiple error conditions,
including "machine is already running".The purpose of this script is to start / stop a given virtual machine through the libvirt python bindings in a way that
is easily consumable from systemd.
This means I try to handle the "already running" case gracefully.
Shutting down happens in a blocking fashion, with the option to yank the virtual power cord from the machine in case
it ignores our polite requests.I also took the opportunity to issue shutdown requests every second until the machine is down.
This should be unnecessary when the virtual machine has the libvirt guest agent running, but it can sometimes help
to convince windows to really shut down instead of asking "really shutdown?" on the virtual console with nobody around
to click ok.Example systemd unit file:[Unit]
Description=virsh start / stop %i
Requires=libvirtd.service
After=libvirtd.service

[Service]
Type=oneshot
RemainAfterExit=true
ExecStart=/opt/vollmerhaus.net/venv/bin/virsh-start-stop --machine %i --state started
ExecStop=/opt/vollmerhaus.net/venv/bin/virsh-start-stop --machine %i --state stopped --timeout 80

[Install]
WantedBy=default.target
Package: virtapi
VirtAPI [![Build Status](https://travis-ci.org/spiperac/virtapi.svg?branch=master)](https://travis-ci.org/spiperac/virtapi)-----VirtAPI is awrapper and CLI tool(vatool) for automation of KVM/Libvirt machines.It can be used to create/delete/{start,stop,restart}/clone/migrate virtual machines(domains) on local/remote KVM servers.* It's also working in nested envinroments, you can try it by creating VM inside digitalocean droplet for example."Instalation-----You will need few more dependencies before installing actual virtapi package.I'll give an example for Ubuntu here:sudo apt install libvirt-bin libvirt-dev openssl libssl-dev -yAfter dependencies are satistfied, you can then install package from this reposutiry by running:sudo python setup.py installOr by installing it directly from PyPI ( for stable versions go with this):sudo pip install virtapiFeatures & TODO-----Futures:- Connect to the KVM local or remote host ( get host data/info/metrics)- Create new domain(virtual machine) from predefined templates in QCOW2 format or image, and based on selected plan size.- Delete domain and all of it resources ( disks attached etc...)- Clone/Migrate existing domain and it specifications.- Add/Delete templates for domain(VM) creation.- Add/Delete Plans for domain(vm), think of them as a digitalocean, aws plans. For example small plan is: 512MB for ram, 1 VCPU, and 15GB hdd drive space.- Manage additional disks and drives. You can "hot plug" them too.You can use it as a CLI tool (vatool binary), but also you can plug it in your application as an API.After installing it as a package you will have vatool binary in your path.TODO:- Add more options for managing KVM/Libvirt Host.- Add ansible for provision of the hosts.- Better error handling.- Better logging.- In the future cover few more cloud APIs.Demo-----[![asciicast](https://asciinema.org/a/bBVzd6jvwVKTj8efqg6v83VEq.png)](https://asciinema.org/a/bBVzd6jvwVKTj8efqg6v83VEq)Development-----There are always things to be fixed or added, or simply forgoten things. So any suggestions/pull requests/issues are welcome, since i'm developing thisin my free time.Requirements for development are in requirements.txt file inside package.Contact-----You can find me on twitter @0xbadargor you can hit me an email at spiperac@denkei.org
Package: virt-back
A backup utility for QEMU, KVM, XEN, and Virtualbox guests.
Virt-back is a python application that uses the libvirt api to safely
shutdown, gzip, and restart guests.  The backup process logs to syslog
for auditing and virt-back works great with cron for scheduling outages.
Virt-back has been placed in the public domain and
the latest version may be downloaded here:https://bitbucket.org/russellballestrini/virt-back
Package: virtbulk
VirtBulkDescriptionvirtbulkis a CLI to apply basic operations on multiple libvirt virtual
machines (so called "domains") matched with globs.Installationpip3installvirtbulkUsagevirtbulkFLAGSCOMMANDTARGET[TARGET...]Most useful flags:-c,--urito set alternative libvirt URI-n,--dry-runto show assumed changes and exit-f,--formatto change output format-h,--helpto show comprehensive options and commans list...Most useful commands:stateshows current states of machinesstartturns machines onshutdownsends command to shutdown...Some commands providesSTATE_1 -> STATE_2output format.->means a state change-Xmeans the requested change can not be commit-!means error while applying the changeTODOUnit testshelpcommandman pageLinksvirshlibvirt Python API
Package: virtcoilphase
Virtual Reference CoilPython implementation of the algorithm described in[1]for finding
optimal phase map estimates using a constructed virtual coil.InstallationShould be as easy as a pip install:pipinstallvirtcoilphaseUsageExamples can be called from the command line, for example:python-mvirtcoilphase.examples.simpleGiven a number of coil images, you can find the absolute phase
estimate like this:fromvirtcoilphaseimportvirtcoilphasephase=virtcoilphase(x,coil_axis=-1)References[1]Parker, Dennis L., et al. “Phase reconstruction from
multiple coil data using a virtual reference coil.”
Magnetic resonance in medicine 72.2 (2014): 563-569.
Package: virtdc
virtdc : virtual machine management CLIvirtdcA high-level Python CLI for virtual machine placement and scaling which provides a way to create, manage and monitor virtual machines effectively.Pre-requisitelibvirt api is a required pre requisite for this package
Use yum or apt-get:$ sudo yum install libvirtSetupUse easy_install or pip:$ sudo mkdir /var/lib/virtdc
$ sudo pip install -t /var/lib/virtdc virtdc
$ sudo cp /var/lib/virtdc/usr_bin/virtdc.py /usr/bin/virtdcCommandsThe following are the core functionalities of the virtdc apicreate - creates new domain from the base image:$virtdc create -h
usage: virtdc create [-h] vmid cpu memory maxmemory io

positional arguments:
  vmid        get the vmid
  cpu         get the cpu
  memory      get memory in KiB
  maxmemory   get maximum memory in KiB
  io          get the io in KiBterminate-terminates the running domain:$virtdc terminate -h
usage: virtdc terminate [-h] vmid

positional arguments:
  vmid        get the vmidlist-lists running domain in all hosts:$virtdc list -h
usage: virtdc list [-h]dominfo gives the domain information:$virtdc dominfo -h
usage: virtdc dominfo [-h] vmid

positional arguments:
  vmid        get the domain idhostinfo gives the host information:$virtdc hostinfo -h
usage: virtdc hostinfo [-h] hostname

positional arguments:
  hostname    get the hostforce-migrate migrates domain from source host to dest host:$virtdc force-migrate -h
usage: virtdc force-migrate [-h] vmid sourcehost desthost

positional arguments:
  vmid        get the domain
  sourcehost  get the source host
  desthost    get the dest hostremovehost-removes the host from the cluster:$virtdc removehost -h
usage: virtdc removehost [-h] hostname

positional arguments:
  hostname    get the hostaddhost-adds new host to the cluster:$virtdc addhost  -h
usage: virtdc addhost [-h] hostname cpu memory io

positional arguments:
  hostname    get the host
  cpu         get the cpu
  memory      get memory in KiB
  io          get the io in KiBgetip-gets domain ip:$virtdc getip  -h
usage: virtdc getip [-h] vmid

positional arguments:
  vmid        get the domain idmonitorgraph-monitors cpu, memory, io usage:$virtdc monitorgraph  -h
usage: virtdc monitorgraph [-h]FeaturesCLI for virtual machine placement and resource scaling based on usage comparison effectively.RequirementsPython 2.6, 2.7, 3.2, 3.3, 3.4setuptoolsLicenseMIT
Package: virtenv
A simple script to encapsulate venv and virtualenv creation in one. venv is
always used if possible; if it’s not, virtualenv will be used (if specified)
as the fallback option.This file can be used either as a standalone script, or a module to import.Python APIcreate(python, env_dir, system, prompt, bare, virtualenv_py=None)pythonshould be an absolute path pointing to a Python executable. If
this is notNone, and does not matchsys.executable, that interpreter
is launched as a subprocess to run this script. Otherwise, the creation is
done in-process (subprocesses may still be run in steps during the creation).env_dirpoints to the directory to create the new virtual environment.systemspecifies whether system site packages will be available for
the created virtual environment.promptspecifies the prompt prefix used in the created virtual
environment’s activate scripts.bare, if True, prevents any third-party libraries from being installed.
This means you will not have Setuptools, pip, and Wheel available inside the
created virtual environment.virtualenv_pyshould be an absolute path pointing to avirtualenv.pyscript. This is optional; if missing, virtualenv will not be used to create
a virtual environment.Command line APIvirtenv env_dir --python PYTHON [--system] [--prompt PROMPT]Meanings of arguments are similar to the Python API.Thepythonargument is required, and can be a version, such as3.7.
A suitable Python executable will be looked up automatically if possible.When is venv usedAs mentioned above, venv is always preferredif possible. virtualenv is used
for the following scenarios:When the modulevenvis not available in the target Python.When the moduleensurepipis not available in the target Python. This
generally happens for Python 3.3, or distributions such as Debian that don’t
like to bundleensurepip. Without it, pip wouldn’t be available, and we
don’t want that.Whensys.real_prefixis set. This usually means the target Python is
managed by a virtualenv, and venv is known to have problems working in this
situation. See discussion inbpo-30811andpypa/virtualenv#1095for
more information.
Package: virtenviro
# Virtenviro - Your VIRTual ENVIROmentOpen source content management system (CMS) based on the django framework.## What is virtenviro[it’s simple to start](#start)it’s simple to useit’s simple to extend## Packages required‘Django 1.7+’,‘django-mptt’,‘pytils’,‘lxml’,‘Pillow’,‘sorl-thumbnail’,‘django-filebrowser-no-grappelli’,## How to install`sh pip installgit+git://github.com/Haikson/virtenviro.git#virtenviro`## <a name=”start”></a>START## ToDoCreate smart-forms application: smart forms constructorGallery applicationAdd User registration and authorisationBlogging functionalityE-commerce applicationCreate portfolio functionality as standalone app## SHOP### importing goodssimple xml format for virtenviro.shop . [Link]do not forget set uwsgi_read_timeout longer. Improting is a long process/## USES
[django-picklefield](https://github.com/shrubberysoft/django-picklefield) in project
Package: virt-firmware
Tools for ovmf / armvirt firmware volumesThis is a small collection of tools for edk2 firmware images.  They
support decoding and printing the content of firmware volumes.
Variable stores (OVMF_VARS.fd) can be modified, for example to enroll
secure boot certificates.virt-fw-dumpDecodes and prints the content of firmware volumes.Usage:virt-fw-dump -i <file>.Tryvirt-fw-dump --helpfor more info, there are some options to
filter output.virt-fw-varsPrint and edit variable store volumes.
Currently focused on enrolling certificates and enabling secure boot.Print variables:virt-fw-vars -i <file> --print.Enroll certificates:virt-fw-vars \
    --input <template> \
    --output <vars> \
    --enroll-redhat \
    --secure-bootTryvirt-fw-vars --helpfor more usage information.virt-fw-vars can handle edk2 variable stores (which are flash firmware
volumes) and AWS uefi variable stores.  The input format is detected
automatically and the same format is used for output.Working with edk2 variable stores requires a firmware volume as input.
Typically the OVMF_VARS.fd file created when building OVMF is used for
that (it is an empty variable store).aws variable stores can also be created from scratch and written to a
file with using the--output-awsoption.virt-fw-sigdbPrint and edit efi signature database files, example:virt-fw-sigdb -i /etc/pki/ca-trust/extracted/edk2/cacerts.bin --printTryvirt-fw-sigdb --helpfor more usage information.host-efi-varsRead efi variables from linux efivarfs and decode/print them.kernel-bootcfgManage efi boot configuration for UKIs (unified kernel images) when
using direkt boot (without boot loader like grub or systemd-boot).pe-dumpinfoInformation dump for pe (the format used by efi) binaries.pe-listsigsList signatures and certificate chain for pe binaries.
Can also extract certificates & signatures.using the python modulesThere isn't much documentation yet, sorry.  Best code reads to get
started are probably the test cases (seetests/tests.py) and the
code for the virt-fw-vars utility (seevirt/firmware/vars.py).installRelease:pip3 install virt-firmwareSnapshot:pip3 install git+https://gitlab.com/kraxel/virt-firmware.gitTODO listAdd more documentation.
Package: virt-linked-clone
Create a Shallow Clone of a QCOW2-Backed LibVirt Virtual Machinepipinstallvirt-linked-cloneusage:virt-linked-clone[-h][--zsh-completion][--version][-cCONNECTION]sourcetarget

positionalarguments:sourceVirtualmachinefromwhichtocreateaclonewhereallwritableqcow2-backeddrivesarelinkedusingcopy-on-write.Itmustbedefinedwithlibvirtandaccessibleviavirshcommands.targetNameofthenewvirtualmachinetodefine.Mostofthesettingsofthesourceimagewillbecopiedintothenewlibvirtdomain.Defaultstoadding"-clone"tothesourcedomainname.

options:-h,--helpshowthishelpmessageandexit--zsh-completionPrintoutthezshautocompletioncodeforthisutilityandexit.--versionshowprogram'sversionnumberandexit-cCONNECTION,--connectionCONNECTIONLibVirtURItouseforconnectingtothedomaincontroller.WillhonorthevalueoftheVIRSH_DEFAULT_CONNECT_URIenvironmentvariable.(default:qemu:///session)
Package: virtool-core
virtool-coreCore utilities for Virtool and associated packages.ContributingCommitsAll commits must follow theConventional Commitsspecification.These standardized commit messages are used to automatically publish releases usingsemantic-releaseafter commits are merged tomainfrom successful PRs.Examplefeat: add API support for assigning labels to existing samplesDescriptive bodies and footers are required where necessary to describe the impact of the commit. Use bullets where appropriate.Additional RequirementsWrite in the imperative. For example,"fix bug", not"fixed bug"or"fixes bug".Don't refer to issues or code reviews. For example, don't write something like this:"make style changes requested in review".
Instead,"update styles to improve accessibility".Commits are not your personal journal. For example, don't write something like this:"got server running again"or"oops. fixed my code smell".From Tim Pope:A Note About Git Commit MessagesTestsInstall Toxtoxis used to run the tests in a fresh virtual environment with all of the test dependencies. To install it use;pipinstalltoxtox-poetryRun TeststoxAny arguments given to tox after a--token will be supplied to pytest:tox----log-cli-level=DEBUGDocumentationFor docstrings, use theSphinxdocstring format.Build the documentation with:cdsphinx&&makehtmlThe rendered HTML files are found undersphinx/build/html
Package: virtool-workflow
Virtool WorkflowA framework for developing bioinformatic workflows in Python.fromvirtool_workflowimportstep@stepdefstep_function():...@stepdefstep_function_2():...DocumentationWebsiteContributingCommitsAll commits must follow theConventional Commitsspecification.These standardized commit messages are used to automatically publish releases usingsemantic-releaseafter commits are merged tomainfrom successful PRs.Examplefeat: add API support for assigning labels to existing samplesDescriptive bodies and footers are required where necessary to describe the impact of the commit. Use bullets where appropriate.Additional RequirementsWrite in the imperative. For example,"fix bug", not"fixed bug"or"fixes bug".Don't refer to issues or code reviews. For example, don't write something like this:"make style changes requested in review".
Instead,"update styles to improve accessibility".Commits are not your personal journal. For example, don't write something like this:"got server running again"or"oops. fixed my code smell".From Tim Pope:A Note About Git Commit MessagesPoetryDependencies & virtual environments are managed withPoetryTo installpoetry:sudopipinstallpoetryTo install dependencies, and thevirtool-workflowpackage, into a virtual environment:gitclonehttps://github.com/virtool/virtool-workflowcdvirtool-workflow

poetryinstallTo run commands in the virtual environment:poetryrun<<command>>TestsPytestis used to implement unit
and integration tests.A pytest plugin,pytest-docker-composehandles starting and stopping any required external services for integration
tests.docker-composewill need to be
installed on your system for this to work. It might also be necessary to setup adockeruser group on your system, so you canuse docker without
sudo.virtool-workflowdepends on some external bioinformatics tools such asBowtie
2,FastQC, andSkewer. Installation of these tools can be
somewhat involved, so it's best to run the test suite usingdocker. Thevirtool/workflow-toolsimage
provides a base with all of the external dependencies pre-installed../tests/docker-compose.ymlwill run the test suite
inside a container based onvirtool/workflow-toolsand mount
the local docker socket so thatpytest, running inside the container, can
manage the other services required by the integration tests.To run the entire test suite:cdtests
docker-composeup--exit-code-frompytestTo run a subset of the tests,tests/integrationonly for example:cdtestsTEST_PATH=tests/integrationdocker-composeup--exit-code-frompytest:warning: TheTEST_PATHis a relative path from the repository root, not thetestsdirectory.
Package: virtru-sdk
Virtru TDF3 SDKLicenseThe following files are covered under the MIT license:virtru_sample.pyinit.pysetup.pyThe following binaries / minified libraries are subject to use under the "Virtru Data Protection Subscription Agreement"
found here:https://www.virtru.com/terms-of-service/virtru_tdf3_python.pydvirtru_tdf3_python.soAll 3rd party packages used in this software are covered by their respective
licenses, which are detailed in the LICENSE file.Obtaining a Virtru AppIdA VirtruAppIdtoken is required to use the TDF3 SDK.This is how you obtain itThe Virtru TDF3 Python SampleFor more information on how to use the TDF3 Python module, see theonline documentation.GeneralPythonThis module is built with Python3 libraries so it will ONLY work
with python3.The module works on Linux, Windows and OSX.Installing the moduleOS X And LinuxNavigate tocd liband runsudo python3 setup.py install. The Virtru SDK module will build and install the module tosite-packages.$ sudo python3 setup.py install
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/virtru_tdf3_python
copying virtru_tdf3_python/__init__.py -> build/lib/virtru_tdf3_python
copying virtru_tdf3_python/virtru_tdf3_python.so -> build/lib/virtru_tdf3_python
running install_lib
copying build/lib/virtru_tdf3_python/__init__.py -> /usr/local/lib/python3.7/site-packages/virtru_tdf3_python
copying build/lib/virtru_tdf3_python/virtru_tdf3_python.so -> /usr/local/lib/python3.7/site-packages/virtru_tdf3_python
byte-compiling /usr/local/lib/python3.7/site-packages/virtru_tdf3_python/__init__.py to __init__.cpython-37.pyc
running install_egg_info
Writing /usr/local/lib/python3.7/site-packages/virtru_tdf3_python-1.0.11-py3.7.egg-infoWindowsMake sure the Python installed on your windows machine is 64-bit.Navigate tocd liband runpython setup.py installand will build and install the module tosite-packages.PS C:\Users\..\lib> python setup.py install
running install
running build
running build_py
creating build
creating build\lib
creating build\lib\virtru_tdf3_python
copying virtru_tdf3_python\__init__.py -> build\lib\virtru_tdf3_python
copying virtru_tdf3_python\virtru_tdf3_python.pyd -> build\lib\virtru_tdf3_python
running install_lib
copying build\lib\virtru_tdf3_python\virtru_tdf3_python.pyd -> C:\Users\sujan\AppData\Local\Programs\Python\Python37\Lib\site-packages\virtru_tdf3_python
copying build\lib\virtru_tdf3_python\__init__.py -> C:\Users\sujan\AppData\Local\Programs\Python\Python37\Lib\site-packages\virtru_tdf3_python
byte-compiling C:\Users\sujan\AppData\Local\Programs\Python\Python37\Lib\site-packages\virtru_tdf3_python\__init__.py to __init__.cpython-37.pyc
running install_egg_info
Writing C:\Users\sujan\AppData\Local\Programs\Python\Python37\Lib\site-packages\virtru_tdf3_python-1.0.10-py3.7.egg-infoRunning the sampleNavigate to thesampledirectory and updatevirtru_sample.pyscript with yourAppIdRunpython3 virtru_sample.pyto see how the files in the sample directory get encrypted and how to apply controls.