Saravanan666/pypi-org huggingface dataset:
Package: fabric-logging
To find out what’s new in this version of Fabric, please seethe changelog.You can also install thein-development versionusing
pip, withpip install fabric==dev.Fabric is a Python (2.5 or higher) library and command-line tool for
streamlining the use of SSH for application deployment or systems
administration tasks.It provides a basic suite of operations for executing local or remote shell
commands (normally or viasudo) and uploading/downloading files, as well as
auxiliary functionality such as prompting the running user for input, or
aborting execution.Typical use involves creating a Python module containing one or more functions,
then executing them via thefabcommand-line tool. Below is a small but
complete “fabfile” containing a single task:from fabric.api import run

def host_type():
    run('uname -s')Once a task is defined, it may be run on one or more servers, like so:$ fab -H localhost,linuxbox host_type
[localhost] run: uname -s
[localhost] out: Darwin
[linuxbox] run: uname -s
[linuxbox] out: Linux

Done.
Disconnecting from localhost... done.
Disconnecting from linuxbox... done.In addition to use via thefabtool, Fabric’s components may be imported
into other Python code, providing a Pythonic interface to the SSH protocol
suite at a higher level than that provided by e.g. thesshlibrary (which Fabric itself uses.)For more information, please see the Fabric website or executefab--help.
Package: fabric-naked
Overviewあなたの手順書をfabricで簡単に実行できるようにします。Installationfabric-naked is installed easily.easy_install fabric-nakedorpip install fabric-nakedUsage1. make your working procedure
1. execute it by fabric$ cat  your_procedure.cmds
# this is comment
    # this is comment too
$ hostname
$ date
local$ printf "SCHEDULE_HOST_CHECK;%s\n" `hostname`
sudo$ date
sudo@yuokda$ date

$ fab execute_naked_procedure:your_procedure.dslChangelog0.1.0 (2013-07-13)First releaseTravisTravis CI - Distributed build platform for the open source community
Package: fabric-package-management
# fabric-package-managementAs the name implies, fabric-package-management is a collection of [Fabric](http://www.fabfile.org/)tasks for package management. There's nothing too fancy going on here. It's aim is to simply nothave to copy and paste similar convenience functions into many a Fabfile.[![Build Status](https://travis-ci.org/andrewsomething/fabric-package-management.svg?branch=master)](https://travis-ci.org/andrewsomething/fabric-package-management) [![docs](https://readthedocs.org/projects/fabric-package-management/badge/?version=latest)](http://fabric-package-management.readthedocs.io/en/latest/) [![codecov](https://codecov.io/gh/andrewsomething/fabric-package-management/branch/master/graph/badge.svg)](https://codecov.io/gh/andrewsomething/fabric-package-management) [![PyPI](https://img.shields.io/pypi/v/nine.svg)](https://pypi.python.org/pypi/fabric-package-management)## Example:```py#!/usr/bin/pythonfrom fabric.api import task, prompt, envfrom fabric.context_managers import cdfrom fabric.operations import rebootfrom fabric_package_managment import apt@task()def run():apt.update()apt.upgrade()apt.install(['bpython', 'git'])with cd('/tmp'):apt.source("python-libcloud", download_only=True)apt.remove('bpython', purge=True)apt.autoremove()apt.autoclean()if apt.reboot_required():prompt("Reboot required. Initiate now?\nYes/No?","response",default="No",validate=r'yes|Yes|YES|no|No|NO')if env.response.lower() == "yes":reboot()```
Package: fabric-pgbackup
PostgreSQL backup/restore utilities for FabricPyPI:http://pypi.python.org/pypi/fabric-pgbackup/GitHub:https://github.com/zalew/fabric-pgbackup/BitBucket:https://bitbucket.org/zalew/fabric-pgbackup/Docs:http://fabric-pgbackup.rtfd.orgIssues:https://github.com/zalew/fabric-pgbackup/issuesLicense: MITFeaturesTODOInstallpipinstallfabric-pgbackupUsage# fabfile.pyfromfabric-pgbackupimport*# configBackupfabpg_backupRestorefabpg_restoreSee more in docs:http://fabric-pgbackup.rtfd.orgHistory0.1.0 (2013-08-23)First release on PyPI.
Package: fabric-pr2042
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: fabric-protos-python
fabric-protos-pythonHyperledger Fabric gRPC and Protocol Buffer Bindings for pythonCommunityWe welcome contributions to the Hyperledger Fabric project in many forms.
There’s always plenty to do! Check the documentation onhow to contributeto this project for the full details.Hyperledger CommunityHyperledger mailing lists and archivesHyperledger ChatHyperledger Fabric Issue Tracking (JIRA)Hyperledger Fabric WikiHyperledger WikiHyperledger Code of ConductLicenseHyperledger Project source code files are made available under the Apache License, Version 2.0 (Apache-2.0), located in theLICENSEfile. Hyperledger Project documentation files are made available under the Creative Commons Attribution 4.0 International License (CC-BY-4.0), available athttp://creativecommons.org/licenses/by/4.0/.
Package: fabric-python-helper
Fabric Python HelperCollection of useful python code for automation in Microsoft Fabric.PBI AdminIn Fabric notebook run:from fabric_python_helper import pbi_admin as pbiAccess TokensCan be initiated directly:access_token = pbi.AccessTokens().get_token_as_fabric_notebook_owner()Dataflowsaccess_token = pbi.AccessTokens().get_token_as_fabric_notebook_owner()
workspace_id = "7509f..."
dataflow_id = "46aed9..."

dataflow = pbi.Dataflows(workspace_id, dataflow_id, access_token)
dataflow.refresh_dataflow(expected_duration=60, loop_interval=20, wait_for_completion=True)Semantic Modelsaccess_token = pbi.AccessTokens().get_token_as_fabric_notebook_owner()
semantic_model_id = "d0c24..."

semantic_model = pbi.SemanticModels(semantic_model_id, access_token)
semantic_model.refresh_semantic_model(expected_duration=60, loop_interval=20, wait_for_completion=True)GraphAPIRequires an app registration with delegated User.Read, Mail.ReadWrite, Mail.Send and offline_access scopes. The public client flow must also be enabled.
Requires an azure key vault which the notebook owner has permissions to update and read secrets on.In Fabric notebook run:from fabric_python_helper import graph_api as grEmailsCreate an instance for an email account:tennant_id = "23...."
client_id = "00df..."
akv_url = "https://name.vault.azure.net/"
refresh_secret_name = "Secret Name"

email_account = gr.Emails(tennant_id, client_id, akv_url, refresh_secret_name)Initial AuthenticationOn first run you will need to authenticate, this is using device flow authentication:email_account.get_initial_tokens()It will give you a link and device code which you need to follow and authenticate with.Connect to Graph APIemail_account.connect()This retrieves an access token for the current session (lasts an hour) and replaces the refresh token in the key vault. Currently unclear as to whether this resets the expiry period.Find the message id (currently returns first email only)message_id = email_account.search_message_by_subject_and_sender("Attachment Test", "email@address.com")Get list of attachment ids:attachments = email_account.get_attachment_ids_and_names(message_id)Get attachments:(You can loop through the list of attachments if required)attachment = email_account.download_attachment(message_id = message_id, attachment_id = attachments[0][0], is_binary=False, encoding="utf-8")Save to onelake:Assuming it's a text file eg you're here because you're grabbing a csv from an email you can just usemssparkutils.fs.put(file_path, attachment, overwrite=True)If you returned a binary other methods would be required.Delete the email:email_account.delete_email(message_id)Send an emailemail_addresses = ["email1@address.co.uk", "email2@address.co.uk"]

subject = "Test Email"

content = """
Hi,
I'm the content of the email.
I'm on my own line.

    From Ben               
"""

email_account.send_email(subject, content, email_addresses)Building a Wheel FileIn order to build I had to add to create a pip.ini file inC:\ProgramData\pip\Which contained:[global]
trusted-host = files.pythonhosted.org
               pypi.orgYou can then build with:pip install buildpython -m build
Package: fabric-recipes
# Fabric Recipesa quick solution to perform deploy a Django app using nginx and gunicorn## How to Use:install the app in your enviroment:```bash$ pip install git+https://github.com/petry/fabric-recipes.git```create a git repository to your project with `manage.py` and `requirements.txt` on root folder download our `fabfile.py`:```bash$ wget https://raw.github.com/petry/fabric-recipes-example/master/fabfile.py```If you like, change some fabric variables such as `env.user` and `env.password` on `fabfile.py`then, run the commands to deploy your app on your server:```bash$ fab deploy```and this command to check if everything is working```bash$ fab status```orfork [these example project](https://github.com/petry/fabric-recipes-example) with this structure :)https://github.com/petry/fabric-recipes-example*****NOTE**```I tested this script using a virtual machine with ubuntu 10.04, feel free to create a versionfor your distribution of choice :)```
Package: fabric_rundeck
Provides helpers for integration betweenFabricandRundeck, viarundeck-fabric.CronYou can add scheduled execution to a fabric task using thecronhelper:from fabric.api import task
from fabric_rundeck import cron

@cron('0 12 * * *')
@task
def mytask():
    passThere are also helpers forhourly,daily, andmonthly:from fabric.api import task
from fabric_rundeck import daily

@daily
@task
def mytask():
    passFabfile InformationRun this module (python-mfabric_rundeck) to print information about the
local fabfile to stdout in JSON format:$ python -m fabric_rundeck
[
  {
    "cron": null,
    "path": [],
    "argspec": {
      "keywords": null,
      "args": [],
      "defaults": null,
      "varargs": null
    },
    "name": "mytask",
    "doc": null
  }
]You can also pass a path to a fabfile explicitly:$ python -m fabric_rundeck path/to/fabfile.py
...
Package: fabric-taskset
Fabrichas class-based tasks but they are
limited: Task class represents a single task.This module make it possible to have class-based Fabric task sets.Installationpip install fabric-tasksetUsageTaskSetis a class that can expose its methods as Fabric tasks.Example:# fabfile.py
from fabric.api import local
from taskset import TaskSet, task_method

class SayBase(TaskSet):
    def say(self, what):
        raise NotImplementedError()

    @task_method(default=True, alias='hi')
    def hello(self):
        self.say('hello')

    @task_method
    def bye(self):
        self.say('goodbye')

class EchoSay(SayBase):
    def say(self, what):
        local('echo ' + what)

say = EchoSay().expose_as_module('say')and then:$ fab -l
Available commands:

    say
    say.bye
    say.hello
    say.hi

$ fab say.hi
hellotaskset.task_methodis a decorator declaring the wrapped method to be task.
It acceps the same arguments asfabric.decorators.taskso
use it on methods just like fabric’s decorator is used on functions.You can also create an “on-disk” Python module and populate it with tasks:# my_lib/say.py
from taskset import TaskSet, task_method

class SayBase(TaskSet):
    def say(self, what):
        raise NotImplementedError()

    @task_method(default=True, alias='hi')
    def hello(self):
        self.say('hello')

class EchoSay(SayBase):
    def say(self, what):
        local('echo ' + what)

instance = EchoSay()
instance.expose_to_current_module()

# fabfile.py
from mylib import sayAcknowledgementshttps://github.com/ramusus/fabriclassedis a very similar app.
At the time of writing it is focused on old-style Fabric tasks
and has a small deployment framework included.In order to feed my NIH syndrome I create Fabric-taskset which
exposes new-style Fabric tasks, provides slightly different API and doesn’t
have extra goodies.This library then evolved to support exposing tasks without creating dummy
on-disk modules (thanks to Denis Untevskiy).Changes0.2.1 (2012-09-21)private_expose_tomethod now returns list, not generator.0.2 (2012-08-28)@taskdecorator is deprecated and replaced with@task_method.
This was a bad name because of@fabric.taskdecorator
(thanks Denis Untevskiy);Taskset.expose_as_modulemethod that allows to use TaskSet instances
from command line without creating dummy modules on disk
(thanks Denis Untevskiy).0.1 (2012-03-03)Initial release.
Package: fabric-tb
----Fabric is a Python (2.5-2.7) library and command-line tool forstreamlining the use of SSH for application deployment or systemsadministration tasks.It provides a basic suite of operations for executing local or remote shellcommands (normally or via ``sudo``) and uploading/downloading files, as well asauxiliary functionality such as prompting the running user for input, oraborting execution.Typical use involves creating a Python module containing one or more functions,then executing them via the ``fab`` command-line tool. Below is a small butcomplete "fabfile" containing a single task:.. code-block:: pythonfrom fabric.api import rundef host_type():run('uname -s')If you save the above as ``fabfile.py`` (the default module that``fab`` loads), you can run the tasks defined in it on one or moreservers, like so::$ fab -H localhost,linuxbox host_type[localhost] run: uname -s[localhost] out: Darwin[linuxbox] run: uname -s[linuxbox] out: LinuxDone.Disconnecting from localhost... done.Disconnecting from linuxbox... done.In addition to use via the ``fab`` tool, Fabric's components may be importedinto other Python code, providing a Pythonic interface to the SSH protocolsuite at a higher level than that provided by e.g. the ``Paramiko`` library(which Fabric itself uses.)----
Package: fabrictestbed-extensions
fabrictestbed-extensionsThis is the implementation of a Python library, otherwise known as
"FABlib", for intereacting withFABRICtestbed.Your first encounter with FABlib might be through FABRIC project'sJupyterHub instance, where FABlib is pre-installed
for you. You will be presented with many examples of interacting with
FABRIC testbed and FABlib usage when you log in there. Thosenotebook
sourcescan be found on GitHub as well.If you want to interact with FABRIC from Jupyter or a Python project
on your local development environment, that is possible too.  SeeInstall the FABRIC Python APIand the notes below
for details.FABlib API docs can be foundhere.  If you have
questions about FABRIC or FABlib usage, please ask them in FABRICforums.Installing FABlibYou can install released versions of FABlib from PyPI:$pipinstallfabrictestbed-extensionsIf you need the current development version of FABlib, install it from
the git repository:$pipinstallgit+https://github.com/fabric-testbed/fabrictestbed-extensions@mainNote that installing FABlib using either methods will also install a
number of dependencies, so you might want to install FABlib in a
virtual environment. Your favorite tool for managing virtual
environments (venv,virtualenv, orvirtualenvwrapper) should
work. FABRIC team tends to favor virtualenvwrapper.Using FABlibOnce installed, you can use FABlib in your Python projects:fromfabrictestbed_extensions.fablib.fablibimportFablibManagerasfablib_managertry:fablib=fablib_manager()fablib.show_config()exceptExceptionase:print(f"Exception:{e}")Please note that someconfigurationis required for this to work.Contributing to FABlibWe welcome contributions in the form of bug reports, feature requests,
code patches, documentation updates, etc.  If you have ideas that can
help FABlib, please review theguidelinesfirst.
Package: fabrictestbed-fablib
fabrictestbed-extensionsThis repository contains implementation of a Python API, otherwise
known as "FABlib", for intereacting withFABRICtestbed.Installing FABlibYou can install released versions of FABlib from PyPI:$pipinstallfabrictestbed-extensionsIf you need the current development version of FABlib, install it from
the git repository:$pipinstallgit+https://github.com/fabric-testbed/fabrictestbed-extensions@mainNote that installing FABlib using either methods will also install a
number of dependencies, so you might want to install FABlib in a
virtual environment. Your favorite tool for managing virtual
environments (venv,virtualenv, orvirtualenvwrapper) should
work. FABRIC team tends to favor virtualenvwrapper.Using FABlibOnce installed, you can use FABlib in your Python projects:fromfabrictestbed_extensions.fablib.fablibimportFablibManagerasfablib_managertry:fablib=fablib_manager()fablib.show_config()exceptExceptionase:print(f"Exception:{e}")Your first encounter with FABlib however might be through FABRIC
project'sJupyterHubinstance. You will be presented
with many examples on FABlib usage when you log in there. Thenotebook sourcescan be found on GitHub as
well.Since FABlib 1.4, API docs can be foundhere. Older
API docs arehere.If you want to interact with FABRIC from Jupyter installed on your
computer, see:Install the FABRIC Python API.Contributing to FABlibContributions to FABlib are made with GitHub Pull Requests. When you
submit a pull request, some tests will run against it:Code formatting will be checked usingblack.  Be sure that your
code is formatted with black, using its defaults.CHANGELOG.md will be checked for updates.Packages will be built.Unit tests will be run.You can run tests in your environment, like so, usingpytest:$pipinstall-e.[test]$pytestPackaging FABlibFABlib usesflitas the build backend.  To build source and wheel
packages, do this:$pipinstallflit$flitbuildWhile using flit as the build backend, continuing to usebuildas
the build frontend should work too:$ pip install build
$ python -m buildReleasing FABlibWhen it is time to release a new version of FABlib, remember to: (1)
update the package version in top-level__init__.py, (2) build the
source and wheel packages, and (3) upload packages to PyPI:$flitpublishContinuing to use twine to publish packages is an option too:$twineuploaddist/*For details about publishing to PyPI, see flit documentation aboutpackage uploads.
Package: fabrictestbed-mflib
MFLIB Measurement Framework LibraryWelcome to the FABRIC Measurement Framework Library. MFLib makes it easy to install monitoring systems to a FABRIC experimenter's slice. The monitoring system makes extensive use of industry standards such as Prometheus, Grafana, Elastic Search and Kibana while adding customized monitoring tools and dashboards for quick setup and visualization.Documentation ResourcesFor more information about FABRIC vistfabric-testbed.netExample Jupyter NotebooksFABRIC Jupyter ExamplesGitHub repository contains many examples for using FABRIC from simple slice setup to advanced networking setups. Look for the MFLib section. These notebooks are designed to be easily used on theFABRIC JupyterHubFABRIC Learn SiteFABRIC Knowledge BaseMFLib Python Package DocumentationDocumentation for the package is presented in serveral different forms (and maybe include later in this document):ReadTheDocsMFLib.pdfin the source code/GitHub.Or you may build the documentation from the source code. See Sphinx Documentation later in this document.MFLib InstallationInstaling via PIPMFLib may be installed using PIP and PyPIfabrictestbed-mflibpip install --user fabrictestbed-mflibInstalling via Source CodeIf you need a development version, clone the git repo, then use pip to install.git clone https://github.com/fabric-testbed/mflib.git
cd mflib
pip install --user .Building & DeployingSpinx DocumentationThis package is documented using sphinx. Thesourcedirectories are already created and populated with reStructuredText ( .rst ) files. Thebuilddirectories are deleted and/or are not included in the repository,API documentation can also be found athttps://fabrictestbed-mflib.readthedocs.io/.Build HTML DocumentsInstall the extra packages required to build API docs: (sphinx, furo theme, and myst-parser for parsing markdown files):pip install -r docs/requirements.txtBuild the documentation by running the following command from the root directory of the repo../create_html_doc.shThe completed documentation may be accessed by clicking on/docs/build/html/index.html. Note that the HTML docs are not saved to the repository.Build PDF DocumentLatex must be installed. For Debian use:sudo apt install texlive-latex-extra 
sudo apt install latexmkRun the bash script to create the MFLIB.pdf documentation. MFLIB.pdf will be placed in the root directory of the repository../create_pdf_doc.shDistribution PackageMFLib package is created usingFlitBe sure to create and commit the PDF documentation to GitHub before building and publishing to PyPi. The MFLib.pdf is included in the distributition.To build python package for PyPi run./create_release.shUploading to PyPIFirst test the package by uploading to test.pypi.org then test the install.flit publish --repository testpypiOnce install is good, upload to PiPyflit publishNote that Flit places a .pypirc file in your home directory if you do not already have one. Flit may also store your password in the keyring which may break if the password is changed. seeFlit Controlling package uploads. The password can also be added to the .pypirc file. If password contains % signs it will break the .pypirc file.
Package: fabric-utils
### IntroductionThis python package allows me to manage deployments of Django application into
Apachemod_wsgiserver. Also it brings to me utils for local tasks.### How to upload python package`shell python setup.py sdist upload `### Install package from source`shell pip install <PYTHON PACKAGEDIR>/dist/fabric-utils-0.0.2.tar.gz`### Todo[ ] Refactoring to remove references to own projects[ ] Document available tasks[ ] Add tests through travis`shell fab compress_static-c.fabricrc `### RequirementsInstallpandoc### Changelog0.0.3: Repackaging tasks in a more concise way.
Package: fabric-verbose
At a glancefabfile.pyfromfabric_verboseimportverbose# ...defdeploy():withverbose("Discarding local changes")asv:v.run('git reset HEAD; git clean -fd; git checkout .')withverbose("Pulling source code")asv:v.run('git pull')withverbose("Installing requirements")asv:v.run('pip install -r requirements.txt')withverbose("Starting")asv:v.run('fab start')Output* Discarding local changes... Done
* Pulling source code... Done
* Installing requirements... Done
* Starting... Failed

Fatal error: /bin/sh: uwsgi: command not found

Aborting.Installation$pipinstallfabric-verbose