Saravanan666/pypi-org huggingface dataset:
Package: fabric
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.To find out what’s new in this version of Fabric, please seethe changelog.The project maintainer keeps aroadmapon his website.
Package: fabric2
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.To find out what’s new in this version of Fabric, please seethe changelog.The project maintainer keeps aroadmapon his website.
Package: fabrica-de-bere
Fabrica de bereThe library is a wrapper for the Punk API.Installationpipinstallfabrica_de_bereFunctionalitiesGet a beer by IDGet a random beerGet all beersGet beersCreate a new objectpunk_api=FabricaDeBere("https://api.punkapi.com/v2/")Parameters:url: string, optional. If not given, it will try to use the environment variable PUNK_API_URLGet a beer by IDReturns a Beer object with the given ID.punk_api.get_beer_by_id(id)Parameters:id: intGet a random beerReturns a Beer object with a random beer.punk_api.get_random_beer()Get all beersReturns an iterator that stores all the beers from the API as Beer objects.punk_api.get_all_beers()Get a beer by IDReturns an iterator that stores the beers from the API as Beer objects, filtered base on the given parameters.beers=punk_api.get_beers(abv_gt=5,abv_lt=9,ibu_gt=55,ibu_lt=90,ebc_gt=18,ebc_lt=25,beer_name="Buzz",yeast="American_Ale",brewed_before=datetime.datetime(2014,9,5),brewed_after=datetime.datetime(2011,3,12),hops="Fuggles",malt="Caramalt",food="chicken",ids=[1,2,9],)Parameters:abv_gt: intabv_lt: intibu_gt: intibu_lt: intebc_gt: intebc_lt: intbeer_name: stringyeast: stringbrewed_before: datetime; only looks at the month and yearbrewed_after: datetime; only looks at the month and yearhops: stringmalt: stringfood: stringids: list of int
Package: fabricauthenticator
Fabric Authenticator for JupyterhubThe authenticator for Fabric Testbed Jupyterhub
Based on CILogon authentication, in addition it checks if user belongs to Fabric JUPYTERHUB COU groupUsageIf using dockerspawner:In jupyter_config.py:import fabricauthenticator
   c.JupyterHub.authenticator_class = 'fabricauthenticator.FabricAuthenticator'
   c.Authenticator.enable_auth_state = True

   # set the OIDC client info in following CILogon configuration
   c.CILogonOAuthenticator.client_id = ""
   c.CILogonOAuthenticator.client_secret = ""
   c.CILogonOAuthenticator.oauth_callback_url = "<host>/hub/oauth_callback"if using KubeSpawnerin config.yaml:hub:
  extraConfig:
    authconfig: |
      c.Authenticator.enable_auth_state = True
      c.CILogonOAuthenticator.client_id = ""
      c.CILogonOAuthenticator.client_secret = ""
      c.CILogonOAuthenticator.oauth_callback_url = "<host>/hub/oauth_callback"
auth:
  type: custom
  custom:
      className: fabricauthenticator.FabricAuthenticator
Package: fabric-bolt
tl;drA web interface for fabric deployments.Fabric Bolt is a Python/Django project that allows you to deploy code stored in source control (a project) to a target server (host).
Fabric Bolt provides convenient web interfaces to configure both the projects and the hosts. Additionally, deployment history and
logs are stored so that you know who, what, where, when, and why something was deployed.Documentation found athttp://fabric-bolt.readthedocs.org/en/latest/QuickstartThese steps are designed to get you rolling quickly, but more complete install/setup information is provided in ourdocumentation.Install:pip install fabric-boltInitialize settings file. (To specify file location, enter as the second argument.):fabric-bolt init [~/.fabric-bolt/settings.py]Modify generated settings file to enter database settings.Migrate db:fabric-bolt migrateCreate admin user, then follow the prompts to create an email and password:fabric-bolt [--config=~/.fabric-bolt/settings.py] createsuperuserRun:fabric-bolt runserverNote:If you have created a settings file at a different location than the default, you can use the –config option on any
command (besides the init command) to specify the custom file path. Alternatively, you can set an env variable: FABRIC_BOLT_CONF.AuthorsDan Dietz (paperreduction)Jared Proffitt (jproffitt)Nathaniel Pardington (npardington)Bolting web applications to servers since 2013 :: Deploy Happy!
Package: fabric.buildout_recipe
ContentsIntroductionContributorsChangelogIntroductionfrom fabric.buildout_recipe import BuildoutRecipeimport fabric.apiclass Recipe(BuildoutRecipe):“””zc.buildout recipe”””def execute(self):“””override this.”””fabric.api.run(“uname -a”)ContributorsImagawa Yakata, AuthorChangelog0.1-dev (unreleased)Package created using templer
[Imagawa Yakata]
Package: fabric_cf
Control FrameworkThis repository contains Fabric Control Framework and Actor implementations.OverviewFabric Control Framework has 3 actorsControllerBrokerAggregate ManagerBrokerBroker is an agent of CF that collects resource availability information from multiple aggregate managers and can make resource promises on their behalf. More details can be foundhereAggregate ManagerAM is a CF agent responsible for managing aggregate resources. Is under the control of the owner of the aggregate. Provides promises of resources to brokers and controllers/ orchestrators. More details can be foundhereOrchestratorOrchestrator is an agent of CF that makes allocation decisions (embedding) of user requests into available resources. Communicates with user to collect slice requests, communicates with broker or aggregate managers to collect resource promises, communicates with aggregate managers to provision promised resources. Creates slices, configures resources, maintains their state, modifies slices and slivers. More details can be foundhereArchitectureThe following diagram depicts an overall architecture for the Control Framework.RequirementsPython 3.9+Build Docker ImagesAuthority Docker Imagedocker build -f Dockerfile-auth -t authority .Broker Docker Imagedocker build -f Dockerfile-broker -t broker .Orchestrator Docker Imagedocker build -f Dockerfile-orchestrator -t orchestrator .Configuration pre-requisitesKafka ConfigurationRequest topic, consumer and producer credentials for each Actor fromSongRequest Hosts running the Actors to be added to Kafka Brokers and Schema Registry FirewallMake sure to configure consumer.group.id different for each actor
Package: fabric_components
This package contains some common tasks for fabric.Including:install mysql# db_env will prompt for root password and database user password
db_env(database=”databasename”, database_user=”databaseuser”)# Now install the mysql server or client by setting flags
install_mysql(server=True, client=True)# Then create database and user
create_database()
create_user()install apache2from fabric-components/apache import *# This will install apache and mod wsgi
install_apache(mods=[‘list’, ‘of’, ‘enabled’, ‘mod’], disable_sites=[‘default’])
Package: fabric-contrib.xfiles
This package contains the xfiles -Fabricextension. The module adds the support to work with XML files in Fabric.Read the official documentation for installation, usage and examples:http://packages.python.org/fabric-contrib.xfilesUsageBrief introduction for xfiles -extension usage:Create Fabric configuration filefabfile.py, for example with following
contents:from fabric.api import env, run
from fabric.contrib import xfiles

def test():
  for elem in xfiles.query('~/document.xml', '/root/item[id=test*]'):
    # List all the elements having the attribute 'id'·
    # and it with value 'test', or something that starts with it
    print elem.textIn this example, it is expected you have XML -document in your home
directory (onremotehost-server), for example:<root>
  <item id="foo">value1</item>
  <item id="testing">value2</item>
  <item id="test">value3</item>
</root>To see the outcome, run the command:fab --username hostaccount -H remotehost testUnless you have SSH private key provided for the remotehost, it’ll
prompt for the password. After successful login, the XML file is read and
text from all/root/item-elements is listed.TipIf thehostparameter is not provided, or it is localhost, no SSH
connection is needed/created and the file path is expected to be found
from local filesystem. For example, following query reads the XML from·
same directory where thefabfile.pyis:for elem in xfiles.query('test.xml', '/root/sub'):
  print elemSee more examples and detailed information from official documentation:http://packages.python.org/fabric-contrib.xfiles
Package: fabric-credmgr-client
Fabric Credential Manager ClientThis is Fabric Credential Manager APIThis Python package is automatically generated by theSwagger Codegenproject:API version: 1.0.1Package version: 1.0.0Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegenRequirements.Python 3.9+Installation & Usagepip installIf the python package is hosted on Github, you can install directly from Githubpipinstallgit+https://github.com/fabric-testbed/fabric_credmgr.git(you may need to runpipwith root permission:sudo pip install git+https://github.com/fabric-testbed/fabric_credmgr.git)Then import the package:importfabric_cm.credmgr.credmgr_proxySetuptoolsInstall viaSetuptools.pythonsetup.pyinstall--user(orsudo python setup.py installto install the package for all users)Then import the package:fromfabric_cm.credmgr.credmgr_proxyimportCredmgrProxyGetting StartedPlease follow theinstallation procedureand then run the following:fromfabric_cm.credmgr.credmgr_proxyimportCredmgrProxyfromfabric_cm.credmgr.swagger_client.restimportApiExceptioncredmgr_proxy=CredmgrProxy(credmgr_host="https://dev-2.fabric-testbed.net/")try:version=credmgr_proxy.version_get()print(version)exceptApiExceptionase:print("Exception when calling CredmgrProxy->version_get:%s\n"%e)try:version=credmgr_proxy.certs_get()print(version)exceptApiExceptionase:print("Exception when calling CredmgrProxy->certs_get:%s\n"%e)try:version=credmgr_proxy.refresh(project_id='12345',scope='all',refresh_token='TOKEN')print(version)exceptApiExceptionase:print("Exception when calling CredmgrProxy->refresh:%s\n"%e)try:version=credmgr_proxy.revoke(refresh_token='TOKEN')print(version)exceptApiExceptionase:print("Exception when calling CredmgrProxy->revoke:%s\n"%e)Documentation for API EndpointsAll URIs are relative tohttp://127.0.0.1:7000/credmgr/ClassMethodHTTP requestDescriptionDefaultApicerts_getGET/certsReturn Public Keys to verify signature of the tokensTokensApitokens_create_postPOST/tokens/createGenerate tokens for an userTokensApitokens_getGET/tokensGet tokensTokensApitokens_refresh_postPOST/tokens/refreshRefresh tokens for an userTokensApitokens_revoke_list_getGET/tokens/revoke_listGet token revoke list i.e. list of revoked identity token hashesTokensApitokens_revoke_postPOST/tokens/revokeRevoke a token for an userTokensApitokens_revokes_postPOST/tokens/revokesRevoke a tokenTokensApitokens_validate_postPOST/tokens/validateValidate an identity token issued by Credential ManagerVersionApiversion_getGET/versionVersionDocumentation For ModelsDecodedTokenJwksJwksKeysRequestRevokeListStatus200OkNoContentStatus200OkNoContentDataStatus200OkPaginatedStatus200OkSingleStatus400BadRequestStatus400BadRequestErrorsStatus401UnauthorizedStatus401UnauthorizedErrorsStatus403ForbiddenStatus403ForbiddenErrorsStatus404NotFoundStatus404NotFoundErrorsStatus500InternalServerErrorStatus500InternalServerErrorErrorsTokenTokenPostTokensVersionVersionDataDocumentation For AuthorizationAll endpoints do not require authorization.Authorkthare10@unc.edu
Package: fabric_deploy
# fabric_deploy## OverviewCapistrano like deploy recipe for Fabric.## Requirements* Fabric## UsageThis recipe is just a template for basic deploy procedures.You may need to override your own tasks in your fabfile.py.Initialize directory structure for "development" stage.% fab development deploy.setupDeploy application to "development" stage.% fab development deployRollback to previously deployed application.% fab development deploy.rollbackClean up old applications.% fab development deploy.cleanup## Privilege configurationsThis recipe assumes that you can ssh by user named "deploy" and "app" by default.* deploy (user)** Used for application deployment.** Belongs same group as app.** sudo(8) should be granted without password.* app (runner)** Used for running applications** Belongs same group as deploy.** No sudo(8) required.You can change these names by overriding "user" and "runner" options.## ExamplesFollowing is a sample tasks for multistage deployment ("development" and "production").Uses "supervisord" for service management.  This exapmle consists from 2 files.* ./fabfile/\__init\__.py - Basic configuration for deployment* ./fabfile/deploy.py - Overridden tasks for your deployment./fabfile/\__init\__.pyfrom fabric.api import *from fabric_deploy import optionsimport deployoptions.set('scm', 'git')options.set('application', 'myapp')options.set('repository', 'git@githum.com:yyuu/myapp.git')options.set('supervisord_pid',(lambda: '%(dir)s/tmp/pids/supervisord.pid' % dict(dir=options.fetch('current_path'))))options.set('supervisord_conf',(lambda: '%(dir)s/supervisord.conf' % dict(dir=options.fetch('current_path'))))@taskdef development():options.set('current_stage', 'development')env.roledefs.update({'app': [ 'alpha' ] })@taskdef production():options.set('current_stage', 'production')env.roledefs.update({ 'app': [ 'zulu' ] })./fabfile/deploy.pyfrom fabric_deploy.deploy import *@task@roles('app')def restart():with cd(fetch('current_path')):result = sudo("""(test -f %(supervisord_pid)s && kill -HUP `cat %(supervisord_pid)s`) || %(virtualenv)s/bin/supervisord -c %(supervisord_conf)s""" % var('virtualenv', 'supervisord_pid', 'supervisord_conf'), user=fetch('runner'))## AuthorYamashita, Yuu <yamashita@geishatokyo.com>
Package: fabric-digitalocean
fabric-digitalocean is a collection of tools aiming to make it easy to useFabricandDigitalOceantogether.It was inspired byfabric-awsInstallationpip install fabric-digitaloceanUsageWith fabric-digitalocean, you can decorate Fabric tasks to run on a set of
DigitalOcean Droplet. The@dropletsdecorator can take a list of Droplet IDs,
a tag, or a region as an argument. If you use a tag or region, it will be
expanded to a list of all Droplets with that tag applied or in that region.
They can also be used together.The environmental variableFABRIC_DIGITALOCEAN_TOKENmust contain a
DigitalOcean API token.See below for an example:fromfabric.apiimporttask,runfromfabric_digitalocean.decoratorsimportdroplets@task@droplets(ids=[8043964,7997777])deftask_by_ids():run('hostname')run('uptime')@task@droplets(tag='demo')deftask_by_tag():run('hostname')run('uptime')@task@droplets(region='nyc3')deftask_by_region():run('hostname')run('uptime')@task@droplets(region='nyc2',tag='demo')deftask_by_both():run('hostname')run('uptime')TestingTo run the test suite, use:nosetests -v --with-coverage --cover-package=fabric_digitalocean
Package: fabricdocker
Fabric DockerModern Fabric tools for dockerFree software: MIT licenseDocumentation:https://fabricdocker.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.1 (2019-10-18)Add start, stop and restart commands0.1.0 (2019-05-11)First release on PyPI.
Package: fabric-docker
Docker-engine command-line tool wrapper for Fabric.Can be used both in local and remote modes (via subprocess or ssh).Method names and options try to use the same names as related docker-engine
commands and options.So, it is mainly a helper to write:docker.ps(all=True,size=True)instead of:run('docker ps --all --size')With some nice use cases:# remove dangling images "<none>:<none>"docker.rmi(docker.none_images())# remove images by some filterimages=[image['image id']forimageindocker.images()ifimage['tag']!='latest']docker.rmi(images)RequirementsDocker (local or remote - depending the mode you use)FabricpyyamlSupported commandsOnly limited set of commands and options are supported now:cli - run arbitrary Docker command. i.e.docker.cli('ps-a')imagespsrestartrmrmirun - limited set of optionsstartstopversionnone_images - helper method to get “dangling” imagesInstallpip install fabric-dockerUsageCreate instance to use locally with sudo:importfabric_dockerdocker=fabric_docker.DockerCli(local=True,use_sudo=True)# any command can override this default settings by suppling# "local" and "sudo" key-value argumentsList all local containers:docker.ps(all=True)Remove latest container:docker.rm(docker.ps(latest=True))List remote images (override default local flag):docker.images(no_truncate=True,local=False)Run remote container:docker.run(detach=True,restart='always',publish={'8080':'80'},volume={'/host/dir':'/container/dir','/host/dir2':'/container/dir2'},name='name_of_container',image='image_name:tag',)
Package: fabric-e2e
Fabric3 is a fork ofFabricto provide compatability
with Python 3.4+. The port still works with Python 2.7.The goal is to stay 100% compatible with the original Fabric.  Any new releases
of Fabric will also be released here.  Please file issues for any differences
you find. Known differences aredocumented on github
<https://github.com/mathiasertl/fabric/>.To find out what’s new in this version of Fabric, please seethe changelogof the original Fabric.For more information, please see the Fabric website or executefab--help.
Package: fabric_fss_utils
OverviewPython library for supporting FABRIC System Services. Includes multiple modules:jwt_validate- validates JWT against a JWKS endpointSeetestfolder for examples of useInstallationFor developing and testing the FIM code itself use editable install (from top-level directory)
from python/ folder(infomodel)$pipinstall-e.As a dependency use PyPi$pipinstallfabric-fss-utils
$python
>>>fromfss_utils.jwt_validateimportJWTValidator,ValidateCode
>>>token="...">>>validator=JWTValidator(cert_end_point,audience,datetime.timedelta(minutes=5))>>>validator.validate_jwt(token)TestingUsepytest:$pytesttest/
Package: fabricity
Fabric3 is a fork ofFabricto provide compatability
with Python 3.9+.The goal is to stay 100% compatible with the original Fabric.  Any new releases
of Fabric will also be released here.  Please file issues for any differences
you find. Known differences aredocumented on github
<https://github.com/torico-tokyo/fabricity>.To find out what’s new in this version of Fabric, please seethe changelogof the original Fabric.For more information, please see the Fabric website or executefab--help.
Package: fabricius
FabriciusFabricius - A Python 3.10 Project Template engine with superpowers!:warning: Fabricius is a work in progress! Please, play with it with a grain of salt; expect bugs, crashes, non-documented portion of the application & more unexpected behavior.Documentation:https://fabricius.readthedocs.io:warning: Fabricius still does not comes with it's CLI tool! It is a work in progress!Goals:Create a working project from a project templateCreate a fully working CLI using RichAbility to clone repository and use their templatesCreate a secure tool (Do not allow unsecure scripts)Create a fully type hinted toolWhy the name of "Fabricius"?I am an immense fan of roman names, and I very often name my project after a meaningful roman name."Fabricius" (In French, "Artisan") is translated to "craftsman", which is what Fabricius, the tool we create, aims to. His goal is to help at its best to create your projects easily.Why not just use CookieCutter or Copier instead of creating your own tool?See goals, but other than that,It's a question I am expecting with fears, I tried to first use CookieCutter myself but I never liked it at all, it always broke with me and was painful to use. On top of that, it does not comes with crucial things I would personally require, such as basic type checking when gathering user's input.
As for Copier, while it seems like a much more grown-up tool andactuallyfitting my need, I honestly did not try it, I just lost interested towards it and wanted to challenge myself in creating a new tool for the Python ecosystem.On top of all of these, during my work in 2022, I ended up using TypeScript and using AdonisJS's CLI tool, and its awesometemplate generator, and so it made me really interested into creating a project scaffolder but using code, not a directory structure, which was lacking for both tools.I wanted to create a complete and customizable experience of project scaffolding, I wanted to allow users to be free of do whatever they've meant to do, it's how I came up with the idea of plugins.To me, Fabricius is more than just a simple project scaffolder, it's a complete handy swiss knife for their users. :)
Package: fabriclassed
#### IntroductionWe had several Fabric scripts which violated DRY. Class-based Fabric script can solve this issue.This is a hack to enable the definition of Fabric tasks as methods in a class instead of just as module level functions.This class-based approach provides the benefits of inheritance and method overriding.#### Example usage:```pythonfrom fabriclassed import initializefrom fabriclassed.base import BaseFabric, DjangoFabric, VirtualenvFabricfrom fabric import api as fabclass Fabric(BaseFabric):remote_project_path = '/local/path/to/my_project'local_project_path = '/remote/path/to/my_project'def fab_task(self):'''My website task'''fab.local('echo "Hello world"')__all__ = initialize(Fabric(), __name__)```Every method with prefix 'fab_' will became a fabric command. Running fab -l gives:```$ fab -lAvailable commands:del_pyc          Remove all .pyc files inside in fabfile and child direc...search           Search string amoung source code inside directories fro...task             My website task```Running fab task gives:```$ fab task[localhost] local: echo "Hello world"Hello worldDone.```#### Extended usage with Django under Virtualenv:DjangoFabric and VirtualenvFabric classes contains various of tools to work with Django in Virtualenv environment. You can use both of these toos together or separately, as you like.Example of Fabric class with a bunch of properies:```pythonfrom fabriclassed import initializefrom fabriclassed.base import BaseFabric, DjangoFabric, VirtualenvFabricfrom fabric.api import lcd, localclass Fabric(BaseFabric, DjangoFabric, VirtualenvFabric):search_dirs = []hosts = ['website.com']remote_project_path = '/local/path/to/my_project'local_project_path = '/remote/path/to/my_project'# django settingsmanagefile_path = './manage.py'test_default_app = 'name_of_my_main_django_application'test_settings = 'settings_test_special_file'shell_plus = Truedevserver_port = 8000devserver_params = ''fixtures_dir = 'fixtures'fixtures_format = 'json'fixtures_map = ('sites.site',)# virtualenv settingsuse_virtualenv = Truevirtualenv_dir = 'env'patched_applications = [# list of virtualenv patched applications]diff_dir = 'my_relative_to_project_diffs_dir'applications_dir = 'my_relative_to_project_apps_dir'__all__ = initialize(Fabric(), __name__)```Running fab -l gives:```Available commands:del_pyc          Remove all .pyc files inside in fabfile and child direc...dev              Run Django's dev serverdiff_dump        Walk over map of patched applications and make diff fil...patch            Walk over 'diffs' directory and patch every applicationsearch           Search string amoung source code inside directories fro...sh               Run Django's standart shell or shell from django_extent...symlink          Create symlink from 'apps' dir to the site-packages or ...test             Run Django's tests. Argument can be application name, n...update_fixtures  Put remote fixtures to repository on production, get an...```#### Installation:To install the latest version of fabriclassed, just use command:```pip install fabriclassed```