Saravanan666/pypi-org huggingface dataset:
Package: fabric-virt-tools
virt-toolsLibvirt based tools to tune VMs on the worker nodes. It provides CLI interface as well as Python APIs.CLIvirt-toolssupports the CLI:fabric-virt-tools-cliUsage: fabric-virt-tools-cli [OPTIONS] COMMAND [ARGS]...

Options:
  -v, --verbose
  --help         Show this message and exit.

Commands:
  cpu   CPU Pinning
  numa  Numa TuningCPU Pinning and Informationfabric-virt-tools-clisupports CPU pinning and information commands as depicted below:Usage: fabric-virt-tools-cli cpu [OPTIONS] COMMAND [ARGS]...

  CPU Pinning

Options:
  --help  Show this message and exit.

Commands:
  info  Query CPU Info for VM Guest and relevant host information as well
  pin   Pin vCPU to Host CPUNuma Pinning and Informationfabric-virt-tools-clisupports Numa pinning and information commands as depicted below:Usage: fabric-virt-tools-cli numa [OPTIONS] COMMAND [ARGS]...

  Numa Tuning

Options:
  --help  Show this message and exit.

Commands:
  info  Query Numa Info for VM Guest and relevant host information as well
  tune  Pin Numa Node to the VM GuestInstallationThis tool should be installed on the Worker nodes on each site. This CLI is used by the AMHandlers to pin CPU/Numa to the VM instances.$ p3.6 install fabric-virt-toolsNOTE: This package depends onlibvirt-python.libvirtrunning on the currently usespython3.6hencepip3.6install is recommended. This can be changed if the underlying platform i.e.libvirtuses a later version ofpython.Pre-requisitesEnsure that following are installedvirtualenv
virtualenvwrapperNOTE: Any of the virtual environment tools (venv,virtualenv, orvirtualenvwrapper) should work.
Package: fabric-virtualenv
fabric-virtualenv provides Fabric functions for creating virtualenvs on remote
servers, as well as installing packages to them, and running other Fabric
operations in the context of the virtualenv.fabvenv.virtualenv(path)A context manager that performs all nested operations in the context of the
virtualenvpath.For example:>>> from fabvenv import virtualenv
>>> with virtualenv('/home/me/venv/'):
...     run('python foo')It is highly recommended to use an absolute path, as Fabric’scd()contextmanager is always applied BEFOREvirtualenv(), regardless of how
they are nested.fabvenv.make_virtualenv(path,dependencies=[],eggs=[],system_site_packages=True)Create or update a virtualenv in path, installing the given packages and eggs.path- The path to the virtualenv. This path will be created if it does not already exist.dependencies- a list of paths or URLs to Python packages to install withpip.eggs- a list of paths or URLs to eggs to install witheasy_install. Eggs can be used to speed up deployments that require libraries to be compiled.system_site_packages- If True, the newly-created virtualenv will expose the system site package. If False, these will be hidden.python_binary- If not None, should be the path to python binary that will be used to create the virtualenv.fabvenv.prepare_virtualenv()Ensure a version of thevirtualenvcommand is available on the remote
server. If none exists, a standalone virtualenv.py script will be
downloaded from the virtualenv github and saved as~/virtualenv.py.The virtualenv command that is prepared is available asenv.virtualenv.Changelog0.2.1- Fix bug in make_virtualenv with virtualenv.py installed by prepare_virtualenv.0.2.0- make_virtualenv now updatessystem_site_packagesflag on previously-created virtualenvs.
Package: fabric_vms
An addon for managing OpenVMS hosts withfabric.
It wraps some of the methods available in Fabric enabling a user to execute
commands on an OpenVMS (tested with OVMS 7.3 and 8.x releases) host.Installfabric_vmsis on PyPI, so run:pipinstallfabric_vmsCompatibilityThere are no special requirements for the managed hosts, in particularGNV,vmspythonarenot required.Only a subset offabric’s commands are ported, pull requests are more than
welcome.As an additional feature, an extra module allows to run arbitrary commands onXura’s v5 SMSC platformPMLinterpreter if
imported as follows:fromfabric_vmsimportpmlUsage examplesAn example offabfileusingfabric_vms.safe_run()wrapper:fabfile.pyfromfabric.apiimportenv,taskfromfabric.utilsimportputsfromfabric_vmsimport*fromfabric_vmsimportsafe_runasrun# override fabric_vms.run# Environmental settingsenv.use_ssh_config=Trueenv.colorize_errors=Trueenv.hosts=['menta']env.user='SYSTEM'@task(default=True)deftest():run('show device dsa /size /units=bytes')withcd('DSA0:[DELIVERABLES]'):run('md5sum packed_file.zip')@taskdefrestart_snmp():run_clusterwide(['@SYS$STARTUP:TCPIP$SNMP_SHUTDOWN','@SYS$STARTUP:TCPIP$SNMP_STARTUP'])@taskdefstop_custom_services():run_clusterwide(['@SYS$STARTUP:STOP_SERVICES'])run('@T4$SYS:T4$STOP ALL')my_job=queue_job('HOUSEKEEPER')watchdog=queue_job('WATCHDOG')my_job.stop_queued_job()watchdog.stop_queued_job()# Check open files in DSA2, DSA3:forshadow_setin['DSA2','DSA3']:open_files=lsof(shadow_set)ifopen_files:for_fileinopen_files:puts(_file)0.2.4 - Fixes for get and put, add ls0.2.3 - Add some minor methods and refactor0.2.2 - Add documentation example0.2.1 - Add safe_run, get_shadowset_members0.2.0 - Add PML addon, refactor0.1.3 - Add queue job stop/start0.1.2 - Add lsof wrapper0.1.1 - Add put, get wrappers0.1.0 - Initial version
Package: fabrik_cli
[![Build Status](https://travis-ci.org/Frojd/Fabrik-CLI.svg?branch=master)](https://travis-ci.org/Frojd/Fabrik-CLI)[![PyPI version](https://badge.fury.io/py/fabrik-cli.svg)](http://badge.fury.io/py/fabrik-cli)# Fabrik-CliThis is a Cli tool for Fabrik that will generate files and supply base settings.## RequirementsTo install Fabrik you need Python 2.7, virtualenv and pip.## Installation### Stable- `pip install fabrik_cli`### Unstable- `pip install git+git://github.com/Frojd/Fabrik-CLI.git@develop`### For development- `git clone git@github.com:Frojd/Fabrik-CLI.git`- `virtualenv venv`- `source venv/bin/activate`- `pip install --editable .`## Getting started### Walkthrough1. First go to your project folder.`cd myproject`2. Setup a virtual environment`virtualenv venv`3. Activate it`source venv/bin/activate`4. Now time to install`pip install fabrik_cli`5. **(Optional)** Now is a good time to setup git, the cli will auto detect this if present`git init ...`6. Time to run the script. lets create a deploy environment that concist of two servers using a wordpress recipe.`fabrik --stages=stage,prod --recipe=wordpress`This command will create the following files.```/fabfile.py/stages/__init__.pystage.pyprod.py```This script will create the necessary files and add git repro setting (if present) and recipe import. Once generated, you'll need to add SSH settings and recipe unique settings by editing the files.### Commands#### SetupGenerates deploy files```fabrik-cli--stages=local,stage,prod (Your deploy stages)--path=/tmp/ (Path to the project, optional)--recipe=wordpress (The recipe you will be use, optional)```#### CleanupRemoves deploy files```cleanup--path=/tmp/ (Path to the project, optional)--force (Override prompt)```## Roadmap### Implemented- Generate stage folder- __init__ in stage folder- Individual stage files- Cli interface- Repro url### Not yet implemented- Additional stage file config data- A way of auto generating fabricrc / stage config depending on recipe- Merged back into Fabrik## Developing- Coverage- `coverage run runtests.py`- `coverage report -m`- `coverage html`- `open htmlcov/index.html`- `coverage erase`- Test- `python runtests.py`## Code guide- Pep8- TDD## ContributingWant to contribute? Awesome. Just send a pull request.## LicenceFabrik-Cli is released under the [MIT License](http://www.opensource.org/licenses/MIT).
Package: fabrique-nodes-core
fabrique-nodes-corefabrique nodes sdkInstall this libpip3 installfabrique-nodes-coreUI ports generatorclassUIPortGroupParams:id_:str=''# port_group_idshow_ports:bool=True# show port panelscan_add:bool=False# can add new port to groupcan_delete:bool=False# can add delete port from groupcan_move:bool=False# can move port inside groupcan_hide:bool=False# can hide portcan_set_type:bool=True# can set porttype to porthas_code:bool=False# has editable code fieldhas_special:bool=False# has special binary switchhas_required:bool=False# has required binary switchcopy_name_from_code:bool=True# copy port name from code field when code edtinggroup_title:str|None=None# visual title for port groupspecial_title:str|None=None# title|tooltip for specialcode_title:str|None=None# title|tooltip for codecopy_from_group:str|None=None# port group nameportgenerator_callback_name:str|None=Nonevalid_types:List[str]=[]UI config forms generatortypical configfrompydanticimportBaseModel,Field,constrfromtypingimportLiteralurls_type=constr(regex=r'[A-Za-z0-9]+://[A-Za-z0-9%-_]+(/[A-Za-z0-9%-_])*(#|\\?)[A-Za-z0-9%-_&=]*')classConfig(BaseModel):port:int=Field(80,title='DB Port',description='ClickHouse Port',ge=0,le=65535)url:urls_type=Field('',title='url',description='ClickHouse URL')agg:Literal['MAX','MIN','SUM']=Field('SUM',title='Aggregator',description='Aggregator method')ThenConfig().schema()could be validatedhereFieldfor defaults, titles, descriptions and constraintsLiteralstring enums supportedgeandlefor numbers (>= and <=)
Package: fabrlce
To find out what’s new in this version of Fabric, please seethe changelog.Welcome to Fabric!Fabric is a high level Python (2.7, 3.4+) library designed to execute shell
commands remotely over SSH, yielding useful Python objects in return. It builds
on top ofInvoke(subprocess command execution and
command-line features) andParamiko(SSH protocol
implementation), extending their APIs to complement one another and provide
additional functionality.For a high level introduction, including example code, please seeour main project website; or for detailed API docs, seethe versioned API website.
Package: fabsetup
Welcome to Fabsetup!Set up and maintain configurations, software installations and other
things on a local or remote linux system.Source:https://github.com/theno/fabsetupDocumentation:https://fabsetup.readthedocs.ioFeatures:Fabsetup'stasksdo the things:tasks execute commands commented and comprehensibletasks produce output formatted in Markdown or HTMLrun a task local or on a remote hostAddons:only install the tasks you needcreate Your own addon with Your taskThe Commandfabsetup, based onFabric,
is a pimpedfabcommandwith the sameoptions and
arguments. And some more:Control markdown formatted output:--hide-code-block--hide-command-line--hide-command-output--hide-docstring--hide-header--hide-print--unnumbered--pandoc-add-tocWrite output to file:--outfile--pandoc-html-fileControl ANSI color codes:--color-off--color-keepControl execution of commands:--interactiveLoad fabfiles and invoke tasks:--load-fab--load-invShow effective config:--show-configList known Fabsetup addons:--known-addonsAPI:for Your own Fabsetup addonuse Fabsetup in Your ownFabric tasksandInvoke tasksInstallationInstall fabsetup the same way likefabric, best viapip:pipinstallfabsetupUsageRun taskinfo:fabsetupinfoImportant options:# Show versionsfabsetup--version# Helpfabsetup-h# List tasksfabsetup-l# Show task helpfabsetupinfo--help
fabsetupnew--helpTab CompletionInvokesshell tab completionalso works
with fabsetup:fabsetup-h|grep-A1"completion"Apply this simple setup of tab completion in bash:echo'source <(fabsetup --print-completion-script bash)'>>~/.bashrcsource~/.bashrcNow You are able to "tab" through the available fabsetup tasks and options:fabsetup--h<TAB><TAB>->--help--hide--hosts
fabsetup--he<TAB>->fabsetup--help
fabsetup--helpi<TAB>->fabsetup--helpinfoMore features:Advanced UsageAddonsFabsetup itself only comes with two tasks,infoandnew.  The tasks
that "really do things" reside in separate fabsetup addons.They will be installed the same way like fabsetup and fabric, best via pip.
For example:pipinstallfabsetup-theno-termdownNow You are able to run the tasktheno.termdown.  This task sets uptermdown, locally or on a remote
host:# localfabsetuptheno.termdown# remotefabsetup-Huser@hosttheno.termdownMore infos:Fabsetup AddonsYour AddonCreate Your own fabsetup addon doing great things! Start now:fabsetupnewMore infos:Create a Fabsetup Addon
Package: fabsetup-theno-termdown
Install or update termdown.With thisfabsetupaddon you can
install or updatetermdown, a“[c]ountdown timer and stopwatch in your terminal”.It installs termdown viapip install--usertermdown. Also, it
installs a bash-wrapper script at~/bin/termdownwhich is convenient
to timepomodoro
sessionsand pops
up a notification when the timer finishes:termdown25mTouched files, dirs, and installed packages:~/bin/termdown
pip-package termdown (`--user` install)Usage# task infofabsetup-dtheno.termdown# run taskfabsetuptheno.termdownInstallationAs apypi
packagewith
commandpip(recommended way):pipinstallfabsetup-theno-termdownDevelopmenthttps://github.com/theno/fabsetup/blob/master/howtos/fabsetup-addon.mdDevel commands:# save changesgitcommit-am'I describe my changes'# upload to githubgitpushoriginmaster# update version number in fabsetup_theno_termdown/_version.py# create and publish package at pypifab-ffabfile-dev.pypypi# clean upfab-ffabfile-dev.pycleanClone thegithub
repository:mkdir-p~/.fabsetup-addon-reposgitclonehttps://github.com/theno/fabsetup-theno-termdown.git~/.fabsetup-addon-repos/fabsetup-theno-termdown# install fabsetup if not done alreadypipinstallfabsetup# fabsetup now finds the addon bcause it is located at ~/.fabsetup-addon-reposfabsetup-dtheno.termdownMore ways to run the task:# you also can run the task directlycd~/.fabsetup-addon-repos/fabsetup-theno-termdownfab-dtheno.termdown# or from a cloned fabsetup repositorygitclonehttps://github.com/theno/fabsetup.git~/.fabsetupcd~/.fabsetupfab-dtheno.termdown# run directly, fabsetup from cloned repocd~/.fabsetup-addon-repos/fabsetup-theno-termdownPYTHONPATH=~/.fabsetupfab-dtheno.termdown
Package: fabsible
FabsibleFabsible is ansible framework which is object-oriented.Getting startedInstallation
############Create python virtual envpython3 -m venv venv
. venv/bin/activateInstall fabsiblepip install fabsibleConfigurationTODO: creating inventory fileInit new projectfabsible-init -i libvirt-inventory.pyCreate provisioning tasks and place them infiles/providers/<name>.yml. Ex.cat files/providers/libvirt.yml
- name: libvirt
  debug:
    msg: "Jeste provisione libvirte"

- include_role:
    name: exphost.create_user
  vars:
    ansible_user: root
    ansible_password: super_password
  loop: "{{ users }}"
  loop_control:
    loop_var: userCreate userscat group_vars/all/users_admins.yml
users_admins:
  - user: torgiren
    group: wheel
    password: "XXX" #Password hash
    home: "/home/torgiren"and add ssh-keys tofiles/ssh-keys/<username>/<keyname>.pubadd become password (TODO: this should be per user not per project)cat become.yml
ansible_become_pass: anotherpasswordRunfabsible-play
Package: fabtest
Fabtest is a set of utilities and base TestCases that aid testing Fabric
scripts against VirtualBox VMs. License is MIT.VM is rolled back to initial state before each test so tests can do anything
with target system; Fabric commands can be run from Python.Installationpip install fabtestVMsIn order to run tests you’ll needVirtualBox4.x and an OS image.
Image should have ssh server installed.Example VMs (they can be imported to VirtualBox via File->Import Appliance):Lenny.ova (312M)Squeeze.ova (436M)Ubuntu-10.10.ova (277M)Ubuntu-10.04.ova (375M)Due to bugs in VirtualBox it is better to convert imported .vmdk disk images
to .vdi images, e.g.:VBoxManage clonehd Ubuntu-10.10-disk1.vmdk Ubuntu-10.10-disk.vdi --format VDIThen detach (and remove) vmdk disk from the VM and attach the vdi image.After you get the image, make sure it is not running and execute thefabtest-preparevmscript (pass your VM name or uid to it):fabtest-preparevm LennyThis command configures port forwarding (127.0.0.1:2222 to guest 22 port,
127.0.0.1:8888 to guest 80 port) and takes ‘fabtest-initial’ snapshot
used for test rollbacks (it is taken from booted machine in order to
speedup tests).Writing testsSubclass fabtest.VirtualBoxTest or fabtest.FabTest and use fabtest.fab for
fabric commands execution:from fabric.api import run
from fabtest import FabTest, fab

def whoami():
    return run('whoami')

class MyTestCase(FabTest):
    def test_root_login(self):
        output = fab(whoami)
        self.assertEqual(output, 'root')Look at source code (and example/runtests.py) for more.CHANGES0.1.5 (2012-04-19)Improved workaround for a VirtualBox bug.0.1.4 (2012-04-19)Workaround for a VirtualBox bug under Windows.0.1.3 (2012-04-14)Packaging fixes.0.1.1 (2012-03-02)Better exception handling (the original traceback is preserved).0.1 (2012-03-01)Fabric >= 1.4 is supported (and required);more reliable virtualbox snapshot handling;fabfunction now wraps fabric’sexecuteand
returns single value, not a list of values.0.0.8 (2011-03-22)Many tweaks & bug fixes.0.0.1 (2011-02-16)Initial experimental release (extracted from django-fab-deploy).
Package: fabular
fabularA command-line chat app for secure communication between you and your friends!Key features:hybrid encryption scheme for connection handshakesession-randomized Fernet (AES-128-CBC) encryption for all messagesusername-specific colorsRequirementspython3pipenv(for dev features)a server with an open portat least two command-line machines to chatInstallSimply typepip install fabular.To install from source, you may typemake prereq && make dev, which
installspipenvand executespipenv install --dev
pipenv install -e .UsageFor more information type[pipenv run] fabular -hRun fabular in server-mode (set up a fabular server for clients to connect to):[pipenv run] fabular -s --host 127.0.0.1 --port 50120Run fabular in client-mode (connecting to a chat server):[pipenv run] fabular -c --host 127.0.0.1 --port 50120Run fabular in test-mode:[pipenv run] fabular -tor withpytest:[pipenv run] pytest -v --cov=fabular --cov-report=html
Package: fabulaws
FabulAWSbegan as a tool to create
ephemeral EC2 instances using Python, like so:from fabulaws.ec2 import MicroLucidInstance

with MicroLucidInstance():
    run('uname -a')FabulAWS is now a fully-featured tool for deploying Python web applications
to autoscaling-enabled AWS EC2 environments.Please refer to thedocumentationfor
details.Pre-commitThis repo usespre-committo keep the code nicely
formatted. Be sure to install the commit hook locally to get these benefits:$ pip install -r requirements.txt
$ pre-commit installDevelopment byCaktus Consulting Group.
Package: fabuloso
FABulosois a python tool to easily organize and deploy anOpenStackarchitecture usingFabric.FABulosomanages configuration withcomponentswithincatalogs. For a more deeper insight about whatFABulosodoes and how it does, take a look at the documentationintroduction.DocumentationTheFABulosodocs are hostedhere.InstallationFrom the source code you can just run:$ python setup.py installTestsAlthough we have not tests yet, you can execute therun_tests.shscript in order to check the code withflake8:$ ./run_tests.shLicenseFABulosois released under theApache 2.0license.
Package: fabulous-paths
fabulous-pathsTools to integrate OpenPathSampling and FABULOUS.fabulous-pathsis a set of tools that bridge betweenOpenPathSampling, especially theOpenPathSampling CLI, and the
analysis tools provided byFABULOUS.To learn more about FABULOUS, read the original paper here:F. Hooft, A. Pérez de Alba Ortíz, B. Ensing. "Discovering Collective
Variables of Molecular Transitions via Genetic Algorithms and Neural
Networks." J. Chem. Theory Comput.17, 2294
(2021).Installationfabulous-pathscan be installed ... (eventually this will givepipandcondainstructions). Installingfabulous-pathswill automatically also
install OpenPathSampling, the OpenPathSampling CLI, and FABULOUS, if you do not
already have these installed.CitingWhen usingfabulous-paths, please cite the following papers (for various
functionality included):FABULOUS:https://doi.org/10.1021/acs.jctc.0c00981OpenPathSampling:https://doi.org/10.1021/acs.jctc.8b00626Support and Developmentfabulous-pathsis an open source project, released under the GNU LGPL,
version 3.0 or (at your option) any later version. Development takes place in
public athttp://github.com/openpathsampling/paths-fabulous.As this package is mostly a thin adapter, problems are more likely to arise
through either OpenPathSampling or FABULOUS. Please first contact those
packages through their help forums:Getting help with OpenPathSamplingGetting help with FABULOUS
Package: fabvenv
# fabvenvA fabric utility for creating remote virtual environments, and installing andupdating packages.The basic use case this covers is logging into a remote host, downloadingvirtualenv.py, using it to create a virtual environment for a project,including installing `pip`, and then installing packages, based on a"requirements.txt" file.## Installation```pip install fabvenv```## UsageHere is how I define Fabric tasks to create a virtual environment, installpackages, add a directory to the `sys.path` of the python executable, etc.:```@taskdef venv_create():require('configured')venv = fabvenv.Venv(config.venv, config.requirements)if not venv.exists():venv.create(config.system_python)@taskdef venv_install():require('configured')fabvenv.Venv(config.venv, config.requirements).install()@taskdef venv_upgrade():require('configured')fabvenv.Venv(config.venv, config.requirements).upgrade()@taskdef venv_freeze():require('configured')fabvenv.Venv(config.venv, config.requirements).freeze()@taskdef venv_remove():require('configured')venv = fabvenv.Venv(config.venv, config.requirements)if venv.exists():venv.remove()@taskdef venv_pth():'''Add the code directory to the virtualenv sys.path.'''require('configured')fabvenv.Venv(config.venv, config.requirements).venv_pth([config.code])```## ContributePull requests and issues are welcomed.## TestingThe file `tests/fabfile.py` is a basic test of using fabric and fabvenv tocreate a virtual environment, install a package, upgrade a package, and removethe virtual environment.This tests uses an installed version of `fabric` and `fabvenv`.  To avoidhaving the test conflict with any other installation of `fabvenv`, use avirtual environment for testing.Clone fabvenv:git clone git@github.com:todddeluca/fabvenv.gitcd fabvenvInstall fabric and fabvenv into a virtual environment:virtualenv ~/tmp/venv~/tmp/venv/bin/pip install fabric~/tmp/venv/bin/pip install -e .The test also assumes that you can do passwordless (keypair) ssh into localhostas `$USER`.Run the tests as follows:cd tests/~/tmp/venv/bin/fab test_fabvenv
Package: facadedevice
This python package provide a descriptive interface for reactive high-level
Tango devices.RequirementsThe library requires:python>= 2.7 or >= 3.4pytango>= 9.2.1InstallationInstall the library by running:$ python setup.py install # Or
$ pip install .DocumentationThe documentation is hosted onReadTheDocs.Generating the documentation requires:sphinxsphinx.ext.autodocsphinx.ext.napoleonBuild the documentation using:$ python setup.py build_sphinx
$ sensible-browser build/sphinx/html/index.htmlUnit testingThe tests run onTravisCIand the coverage report is updated onCoverallsRun the tests using:$ python setup.py testThe following libraries will be downloaded if necessary:pytestpytest-runnerpytest-mockpytest-xdistpytest-coverageContactVincent Michel:vincent.michel@esrf.fr