Saravanan666/pypi-org huggingface dataset:
Package: fabler
FablerA multi-model AI story teller, built withStable Diffusion, GPT, and neural text-to-speech (TTS).Given a prompt as an opening line of a story, GPT writes the rest of the plot; Stable Diffusion draws an image for each sentence; a TTS model narrates each line, resulting in a fully animated video of a short story, replete with audio and visuals.QuickstartCheck it out nowor follow the instructions below to install locally.Install fromPyPi$pipinstallfablerInstall from SourceClone the repository$gitclonehttps://github.com/christopherwoodall/fabler.gitInstall package requirements.$pipinstall--upgradepipwheel
$pipinstall-e".[developer]"Run the demo. The final video will be saved as/out/out.mp4, alongside other intermediate images, audio files, and subtitles.$fabler--scene=scene.yaml4 Alternatively with make:makeinstall&&makerunUsageLoad the model with defaults.fromfablerimportFablerstory_teller=Fabler.from_defaults()story_teller.generate(...)Alternatively, configure the model with custom settings.fromfablerimportFabler,FablerConfigconfig=FablerConfig(writer="gpt2-large",painter="CompVis/stable-diffusion-v1-4",max_new_tokens=100,diffusion_prompt_prefix="Van Gogh style",)story_teller=Fabler(config)story_teller.generate(...)LicenseReleased under theMIT License.
Package: fables
Fables - (F)ile T(ables)For users:Parse the tabular data in the input file:import fables

for parse_result in fables.parse('myfile.zip'):
    for table in parse_result.tables:
        print(table.name)
        print(table.df.head())
    for error in parse_result.errors:
        print(error.message)Inspect the contents of the input file:node = fables.detect('myfile.zip')
print(node.name)
print(node.mimetype)

for child in node.children:
    print(child.name)
    print(child.mimetype)Note if you've already discovered the input tree fromdetect(),
you can pass it intoparse():parse_results = parse(tree=node)Handling encryptedzip,xlsx,xlsb, andxlsfiles:node = fables.detect('encrypted.xlsx')
assert node.encrypted
node.add_password('encrypted.xlsx', 'fables')
assert not node.encryptedYou can also supply a passwords dictionary (filename -> password)
into detect and parse:node = fables.detect(
    'encrypted.zip',
    passwords={
        'encrypted.zip': 'fables',
        # an encrypted file inside the zip
        'encrypted.xlsx': 'foobles',
    }
)
# and/or parse
parse_results = fables.parse(
    'sub_dir',
    passwords={
        'sub_dir/encrypted.xlsx': 'fables',
        'sub_dir/encrypted.xls': 'foobles',
    },
)Seeing is believing:Clone the repository & run the example file by executing the example.py script with the following command:python3 example.pyInstallationThe python librarypython-magicrequires additional system dependencies. There are installation instructions
there, but here are recommended routes to try:on OSX:brew install libmagic.on Windows:thispip install python-magic-binwill install a built version using
ctypes to access the libmagic file type identification library.Thenpip install -r requirements.txtshould do the trick.For contributors:Testsall tests:pytestcoverage:pytest --cov=fables testsintegration:pytest tests/integrationcoverage:pytest --cov=fables tests/integrationunit:pytest tests/unitcoverage:pytest --cov=fables tests/unitNote all the coverage statistics are for statements.Type checking with mypymypy fablesLintingWe enforce flake8:flake8 .Run test, type checking, and linter all at oncenox
Package: fablib
“fablib” is a small collection of helper functions for theFabricdeployment and system administration tool.Further, it is built on top of thecuisinelibrary of Fabric helper functions.Warning: This isalphasoftware.  Anything and everything could change without notice.   Also, I should probably try get some of these into a state where
they can be added tocuisine.InstallationInstall fromPyPIusingpip installer:pip install fablib
Package: fabliip
Fabliip is a set of functions aimed at helping developers deploy their
websites. It is meant to be used as part of Fabric scripts to ease for example
the backup of a database, the upgrade of a remote git repository, etc.InstallationInstall it with pip:pip install fabliipUsageDocs are hosted on readthedocs:http://fabliip.rtfd.org/You should be able to to get an idea on the different helpers Fabliip provides
by browsing the source code, but here’s a minimal example that will allow you
to easily enable/disable the maintenance mode on a Drupal site:from fabric.api import env, task
from fabliip import drupal


@task
def prod():
    env.project_root = '/var/www/mysite'
    env.drupal_root = os.path.join(env.project_root, 'src')
    env.hosts = ['yourhost.com']


@task
def enable_maintenance_mode():
    drupal.set_maintenance_mode(True)You should now be able to callfab prod enable_maintenance_modeto enable
the maintenance mode on your prod instance.Theenv.project_rootvariable is important here because it’s needed by thedrupalmodule. Please refer to the docs of any module you use to check if
there’s any env variable that must be defined.
Package: fabmagic
Welcome to Fab Magic Recipes's documentation!=============================================Collections of Megic Recipes for Fabric.. image:: https://secure.travis-ci.org/Lispython/fabmagic.png:target: https://secure.travis-ci.org/Lispython/fabmagicOverview--------- System deploymentINSTALLATION------------You can install the most recent fabmagic version using `easy_install`_::easy_install fabmagicor `pip`_::pip install fabmagicContribute----------#. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug.There is a Contributor Friendly tag for issues that should be ideal for people who are not very familiar with the codebase yet.#. Fork `the repository`_ on Github to start making your changes to the **develop** branch (or branch off of it).#. Write a test which shows that the bug was fixed or that the feature works as expected.#. Send a pull request and bug the maintainer until it gets merged and published.CONTRIBUTE----------Fork https://github.com/Lispython/fabmagic/ , create commit and pull request.SEE ALSO--------- `Fabric library <http://docs.fabfile.org/en/1.4.3/index.html>`_.. _`the repository`: https://github.com/Lispython/fabmagic/
Package: fabman
Fabman APILibrary for interfacing with the Fabman API. Created for Texas Inventionworks as part of the Cockrell School of Engineering at the University of Texas at Austin.Official documentation for the Fabman API can be foundhere. Live interaction and description of all endpoints can further be foundhere. This library is currently targeting version 2.3.1 of the Fabman API.Getting StartedTo get started, simply install using pip:pip install fabmanwhich will install the latest stable release for your use. Note that this library is in active, heavy development and the API may change with little warning. To use the latest state of this repo, use the following command:pip install git+https://github.com/utexas-engr-tiw/fabman-apiTo start interacting with the Fabman API, simply provide your API key:fromfabmanimportFabmanAPI_KEY='abcdef-123456789-a1b2c3d4e5f6a7b8'f=Fabman(API_KEY)...From there, you can begin interacting with api endpoints as described in the official documentation. Most top-level methods return an object which manages that object. For example, to get a single member and update that member's name,member=f.get_member(12345)member.update(firstName="Kira",lastName="Nerys")All parameters except for IDs are taken in as kwargs and should follow the camelCase naming conventions found on the Fabman API. Moreover, the library performs minimal checking of parameters, leaving that to the Fabman API. For required fields for create and update fields, refer to theLive Fabman API Documentation. The one exception to this is thelockVersionrequirement for update methods. All update methods will automatically add the currentlockVersionparameter to the body.Refer to thelibrary documentationmore information on this library.ContributingWe would love contributions! We are a small development team. To contribute, familiarize yourself with the code, the layout, make your edits and a pull request. We currently need help withReal life testing of the APIDocumentation
Package: fab-oidc
Flask-AppBuilder SecurityManager for OpenIDConnectWrapper forflask_oidcthat exposes aSecurityManagerfor use with any Flask-AppBuilder app.It will allow your users to login with OpenIDConnect providers such as Auth0, Okta or Google Apps.This is roughly inspired by the code in thisstackoverflowanswer. (MIT Licenced ©thijsfranck)UsageGenericJust override the default security manager in your Flask Appbuilder app.fromfab_oidc.securityimportOIDCSecurityManagerappbuilder=AppBuilder(app,db.session,security_manager_class=OIDCSecurityManager)AirflowAirflow provides a hook in thewebserver_config.pyfile where you can specify a security manager class.
Inwebserver_config.pyimport the OIDCSecurityManager and setfromfab_oidc.securityimportAirflowOIDCSecurityManager...SECURITY_MANAGER_CLASS=AirflowOIDCSecurityManagerAirflow now requires that yourSECURITY_MANAGER_CLASSis a subclass ofAirflowSecurityManager.
Use the specialAirflowOIDCSecurityManagerthat is only defined if you're using this library alongside Airflow.SupersetSuperset works in a a similar way. Just as in Airflow,SECURITY_MANAGER_CLASSneeds to be a subclass ofSupersetSecurityManagerthe config is in a file calledsuperset_config.pyand the hook is calledCUSTOM_SECURITY_MANAGER. There now exists a specialSupersetOIDCSecurityManagerthat is only defined if you are using this
library alongside Superset.fromfab_oidc.securityimportSupersetOIDCSecurityManager...CUSTOM_SECURITY_MANAGER=SupersetOIDCSecurityManagerSettingsThe settings are the same as theflask_oidc settings, so look there for a reference.if you're happy withflask_oidc's defaults the only thing you'll really need is something like:OIDC_CLIENT_SECRETS='/path/to/client_secret.json'see theflask_oidc manual client registrationdocs for how to generate or write one.OIDC Field configurationIf you like to change the default OIDC field that will be used as a username,
first name and last name you can set the following env var in the shell you run
your process:exportUSERNAME_OIDC_FIELD='preferred_username'exportFIRST_NAME_OIDC_FIELD='given_name'exportLAST_NAME_OIDC_FIELD='family_name'Copyright © 2018 HM Government (Ministry of Justice Digital Services). See LICENSE.txt for further details.
Package: fab-oidc2
Flask-AppBuilder SecurityManager for OpenIDConnectWrapper forflask_oidc2that exposes aSecurityManagerfor use with any Flask-AppBuilder app.It will allow your users to login with OpenIDConnect providers such as Auth0, Okta or Google Apps. This version of the code extracts the roles information of OIDC ID token, and allow a request to continue only if the role is available on the application.This is roughly inspired by the code in thisstackoverflowanswer. (MIT Licenced ©thijsfranck)UsageGenericJust override the default security manager in your Flask Appbuilder app.fromfab_oidc2.securityimportOIDCSecurityManagerappbuilder=AppBuilder(app,db.session,security_manager_class=OIDCSecurityManager)AirflowAirflow provides a hook in thewebserver_config.pyfile where you can specify a security manager class.
Inwebserver_config.pyimport the OIDCSecurityManager and setfromfab_oidc2.securityimportAirflowOIDCSecurityManager...SECURITY_MANAGER_CLASS=AirflowOIDCSecurityManagerAirflow now requires that yourSECURITY_MANAGER_CLASSis a subclass ofAirflowSecurityManager.
Use the specialAirflowOIDCSecurityManagerthat is only defined if you're using this library alongside Airflow.SupersetSuperset works in a a similar way. Just as in Airflow,SECURITY_MANAGER_CLASSneeds to be a subclass ofSupersetSecurityManagerthe config is in a file calledsuperset_config.pyand the hook is calledCUSTOM_SECURITY_MANAGER. There now exists a specialSupersetOIDCSecurityManagerthat is only defined if you are using this
library alongside Superset.fromfab_oidc2.securityimportSupersetOIDCSecurityManager...CUSTOM_SECURITY_MANAGER=SupersetOIDCSecurityManagerSettingsThe settings are the same as the [flask_oidc settings][flask_oidc_settings], so look there for a reference.if you're happy with [flask_oidc]'s defaults the only thing you'll really need is something like:OIDC_CLIENT_SECRETS='/path/to/client_secret.json'see the [flask_oidc manual client registration][flask_oidc_manual_config] docs for how to generate or write one.OIDC Field configurationIf you like to change the default OIDC field that will be used as a username,
first name, last name and granting access via OIDC roles, you can set the following env var in the shell you run
your process:exportUSERNAME_OIDC_FIELD='preferred_username'exportFIRST_NAME_OIDC_FIELD='given_name'exportLAST_NAME_OIDC_FIELD='family_name'exportENABLE_ROLE_OIDC_ACCESS='true'exportROLES_OIDC_FIELD='roles'Project statusThis is a fork of the project [ministryofjustice/fab-oidc]:https://github.com/ministryofjustice/fab-oidcCopyright © 2018 HM Government (Ministry of Justice Digital Services). See LICENSE.txt for further details.
Package: fa.bootstrap
fa.bootstrapIntroductionThis library packagestwitter bootstrapforpyramid_formalchemyusingjs.bootstrap.It’s right now in early development stage so you should know what you are doing.
However most of thepyramid_formalchemyviews/functionalites should be properly wrap
withjs.bootstrap.What you can get is:Installationfa.bootstrap also provides a paster template. It can be used to
to create a new project. If you create a new project, you must first install
fa.bootstrap in your python environment, either with pip:$ pip install fa.bootstrapor with easy_install:$ easy_install fa.bootstrapThen you should be able to run:$ paster create -t pyramid_fa_bootstrap myappand start your application by:$ cd myapp
$ python setup.py develop
$ paster serve development.iniContactAndrew Mleczko <andrew.mleczko at redturtle.net>RedTurtle Technology,http://www.redturtle.net/CHANGES0.3.3 (2012-06-04)fixes for js.bootstrap 2.1.3 [amleczko]0.3.2 (2012-05-28)Grid sorting is now explicitly done with .render(.., tablesorter=True) [mmariani]Fixed vertical form handling according to bootstrap twitter [amleczko]0.3.1.1 (2012-05-23)Remove alerts.js [amleczko]0.3.1 (2012-05-23)Small template fixes [amleczko]0.3 (2012-02-01)Integration with js.bootstrap 2.0a [amleczko]0.2.4 (2012-01-17)actions are using literal;
fix problem with Chameleon escaping html [amleczko]0.2.3 (2012-01-04)fix styles to match bootstrap 1.4 [amleczko]add bootstrap autocomplete renderer to match twitter css [amleczko]fix action isActive [amleczko]fix global_validator error rendering [amleczko]remove WebOB pin [gawel]0.2.2 (03-11-2011)pin WebOB to < 1.2; this fix problem with formalchemy [amleczko]0.2.1 (30-10-2011)add paster templates for fa.bootstrap [amleczko]0.2 (30-10-2011)add manifest.ini [gawel]add new action - dropdown [amleczko]add auto alert hide js [amleczko]0.1 (30-09-2011)Initial release - using js.bootstrap 1.3.2 [amleczko]
Package: fabops
######fabops######.. readme_inclusion_marker**fabops** is a set of fabric commands to help out manage a project. Theintention is to not use it as a dependency but rather directly clone the`ops/commands<https://github.com/novopl/fabops-commands>`_ submodule into theproject and create a branch for the project.The management commands should be tightly coupled with the project to suit itsparticular needs. Having all changes to ``ops/commands`` on a branch makes iteasier to update the commands if something useful is released upstream. Ifyou're using this code inside an organisation, it would probably be wise to makea fork and maintain common changes across your project in it. This way you canhave a customised version that can still be updated from mainstream. An addedbonus is that you're protected in an unlikely case when something happens withthe mainstream.The commands are intentionally simple to avoid complexity in the projectmanagement tools. This is mainly to standardize the set of actions performedby developers. Ideally, all commands should be executable manually without thehelp of **fabops**.Installation============.. code-block:: shell$ pip install serafinContributing============Setting up development repo---------------------------.. code-block:: shell$ git clone git@github.com:novopl/sphinx-refdoc.git$ cd sphinx-refdoc$ virtualenv env$ source ./env/bin/activate$ pip install -r requirements.txt -r devrequirements.txt
Package: fabpowertasks
## fabpowertasksOffers an alternative to the standard way of generating Fabric tasks. Insteadof random functions or Task declarations, instead create Commands classes thatuse a simple configuration flow and allow for dependency injection to sharefunctionality between Tasks.Additionally, some simple tasks are auto-generated and act as examples of howto write Commands.### ExamplesHere's a simple fabfile.py:import fabpowertasksproject_dir = os.path.dirname(__file__)fabpowertasks.initialize(globals(), project_dir)This automatically generates the Fabric tasks that come with fabpowertasks. Theycan be run as standard using Fabric with ```fab <command>```But that's not all - here's a more complex example ```fabfile/__init__.py```that includes custom tasks:import osimport fabpowertasksfrom fabfile.config import ProjectPathsfrom fabfile.tasks import CustomCommandsfabfile_dir = os.path.dirname(__file__)project_dir = os.path.dirname(fabfile_dir)properties = fabpowertasks.Properties.load_from_file(os.path.join(fabfile_dir, 'project.json'))properties.base_dir = project_dirlocal_project_paths = ProjectPaths(project_dir, properties)injection_objs = {'local_project_paths': local_project_paths,'remote_project_paths': fabpowertasks.SystemPaths(properties.remote_base_dir,properties),'custom_commands': CustomCommands()}fabpowertasks.initialize(globals(), os.path.dirname(fabfile_dir),project_properties=properties,project_inject_objs=injection_objs)Some explanation of this example is needed:* ```CustomCommands``` is a class that extends the utility class```fabpowertasks.commands.BaseCommands```. This class comes with some additionalfunctions that are used to generate Fabric tasks from itself.* An instance of the ```Properties``` class is used extensively throughout thelibrary and contains all project properties. At the very least, it requiresa project directory location, which is why this is a required option to```initialize()```. But the default instance may be overridden, as shown here.* fabpowertasks inspects the variables for each Commands instance and attemptsto inject any matching values as described in ```injection_objs```. Any variablesthat don't start with _ and are None as treated as potential injection points.By default, an attempt to inject ```local_project_paths``` into every Commands instanceis made but more injections can be added using the **project_injection_objs** argument.### CommandsThe concept of Commands is simple - they are an advanced form of a Fabric Task.Instead of being limited to the run() function, multiple functions of theCommand instance can be treated as Tasks.#### Implementation* Extend fabpowertasks.commands.BaseCommands* Write the functions for your resulting Task* ```__init__()```: Update self._task_functions with the functions* ```__init__()```: Optionally, set instance variables for injection* Import your new class into ```fabfile/__init__.py``` and pass into theproject_injection_objs dict where the resulting Tasks are auto-generatedNote that arguments to the function mirror what a standard Fabric task expects.
Package: fabproj-manager
fabproj-managerA CLI to help create new fabric project templates in an effort to standardize experiment structure.Usagefabproj --add --name --local <fabric project name>Replace  with a desired name--add: required to add project--name: optional, default is myProj--local: only include if you will be running scripts on local machine as well; creates another folder for these.
Once you run the above command, you should see a new set of folders that serve as a template
for your fabric project.
Package: fab-quick-start
Thefab-quick-startcommand line utility creates theFlask App Builderviews.pyfile,
directly frommodels.py, for an instant multi-page, multi-table app.Use thisFAB Quick Start Guideto create the app shown below in 10 minutes.FeaturesGenerated fab pages look as shown below:Multi-page:apps incude 1 page per tableMulti-table:pages includerelated_viewsfor each related child table, and join in parent dataFavorite field first:first-displayed field is “name”, orcontains“name” (configurable)Predictive joins:favorite field of each parent is shown (productname- not productid)Ids last:such boring fields are not shown on lists, and at the end on other pagesBackground:Flask Application Builder (FAB) provides a rapid means for
building web pages for database apps, based on Python, Flask and sqlalchemy.
Use the Quick Start Guide (link above) to create the application
shown above in 10 minutes.Recall that creating theviews.pyfile can betedious.This utility generates theviews.pyfile from themodels.pyfile,
to save time and reduce learning curve.Usage:First, create a fab project (e.g., see the Quick Start Guide).Then, generate theviews.pyfile like this:cd <project>  # fab directory containing the config.py file
pip install fab-quick-start
fab-quick-start runCopy the console output to yourviews.pyfile, and run fab / flask app:export FLASK_APP=app
flask runParametersThe simpleruncommand will request 2 parameters, and output to the console.
You can specify parameters and output via command line arguments, like this:fab-quick-start run --favorites="name description" --non_favorites="id" > app/views.pywhere:favorites:words() used to find “favorite fields”.  Fields named with these words,
orcontainingthese words, are placed at thestartof lists and show pages.
Your values might reflect your language, and your database naming conventions.non_favorites:name(s) used to find fields to be place
at theendof list / show pages.the>pipes the output to a file (which is overwritten).Depends on:Flask-AppBuilderMore information:TheFAB Quick Start githubfor more information, and explore the code.AcknowledgementsMany thanks toDaniel Vaz Gaspar, the creator of FAB, for his help and guidanceKatrina Huber-Juma, for Python help and final reviewTyler Band, for early testingChange LogInitial Version0.9.8 - Fix duplicate view class generation
Package: fabra
Fabra Python SDKUse the Fabra API to build customer-facing data warehouse integrations to let your customers start sending data to your application. Unblock your sales pipeline in days, not months.SDK InstallationpipinstallfabraSDK Example Usageimportfabrafromfabra.modelsimportoperations,shareds=fabra.Fabra()s.config_security(security=shared.Security(api_key_auth=shared.SchemeAPIKeyAuth(api_key="YOUR_API_KEY_HERE",),))req=operations.GetNamespacesRequest(query_params=operations.GetNamespacesQueryParams(connection_id=548814,),)res=s.connection.get_namespaces(req)ifres.get_namespaces_200_application_json_objectisnotNone:# handle responseSDK Available Operationsconnectionget_namespaces- Get all namespacesget_schema- Get schema for tableget_tables- Get all tablesdestinationcreate_destination- Create a new destinationget_destinations- Get all destinationslink_tokencreate_link_token- Create a new link tokenobjectcreate_object- Create a new objectget_objects- Get all objectssourcecreate_source- Create a new sourceget_sources- Get all sourcessynccreate_sync- Create a new syncget_syncs- Get all syncsSDK Generated bySpeakeasy
Package: fabrant
Easy handling of vagrant hosts within fabricInstallationEasy as py(pi):$pipinstall--upgradefabrantFrom git source:$gitclonehttps://github.com/constantinius/fabrant.git$cdfabrant$pythonsetup.pyinstallUsageUsing fabrant within a fabric script is easy:fromfabrantimportvagrant# specify path for vagrant dir. Start the box if it is not already running.# Halt the box when context is closed.withvagrant("path/to/dir",up=True,halt=True):run("ls /vagrant")# prints contents of usually enabled shareContributeReport any issues you findhereor createpull requests.