Saravanan666/pypi-org huggingface dataset:
Package: fett
OverviewExampleimportfettfett.Template('''{{ for customer in customers }}
{{ if i even }}
Even: {{ customer.name }}
{{ else }}
Odd: {{ customer.name }}
{{ end }}
{{ else }}
No customers :(
{{ end }}''').render({'customers':[{'name':'Bob'},{'name':'Elvis'},{'name':'Judy'}]})SyntaxTag FormatDescription{{ <expression> }}Substitutions{{ `foo` <expression> }}Substitutions{{ format <name> }}Metaformatting{{ if <expression> }}Conditionals{{ for <name> in <expression> }}Loops{{ else }}{{ end }}Block termination{{ # <comment> }}CommentsSpaces between tag opening/closing delimiters are optional.ExpressionsAnexpressionis given forSubstitutions,Conditionals, andLoops.Expressions take the following form:<name>[.<subfield>…] [<filter> [<filter2>…]]Instead of specifying a field path, you can start an expression using
a string literal:<literal>[<filter> [<filter2>…]]You can usefiltersto modify a single value in simple ways. For example,
the loop iteration countericounts from0, but users often wish to
count from1. You can obtain a count-from-1 value with the expressioni inc.The full list of filters:Filter NameEffectcarReturns the first element of a list.cdrReturns all but the first element of a list.decDecrements a value representable as an integer by one.evenReturns true iff its input is representable as an even integer.escapeEncodes&,<,>,“, and‘characters with HTML entities.incIncrements a value representable as an integer by one.lenReturns the length of a list.notReturns the inverse of a boolean.oddReturns true iff its input is representable as an odd integer.negativeReturns true iff its input is representable as an integer < 0.positiveReturns true iff its input is representable as an integer > 0.splitSplits a value into a list by whitespace.stripReturns the input string with surrounding whitespace removed.striptagsRemove HTML tags from a value.timesNegOneReturns int(input) * -1zeroReturns true iff the input is zeroFilter NameEffectupperCaseReturns a Unicode-aware uppercase version of the input.lowerCaseReturns a Unicode-aware lowercase version of the input.Filter NameEffectadd(n)Increments a value representable as an integer byn.minus(n)Decrements a value representable as an integer byn.equal(value)Returns true iff a value equals the given value.lessThan(n)Returns true iff n < the given value.lessThanOrEqual(n)Returns true iff n <= the given value.greaterThan(n)Returns true iff n > the given value.greaterThanOrEqual(n)Returns true iff n >= the given value.SubstitutionsMetaformattingConditionalsLoopsComments
Package: fettler
FettlerIntroductionFettleris a service that help you refresh redis cache automatically. By listening on MySQL binlog, you can refresh
redis cache in a timely manner and devoid of sensation or consciousness.InstallJust install from pypi:>pipinstallfettlerUsageConfig fileThe example can be found inconfig.yml.Run servicesFirst you should run the services, which includeproducer,consumer.Usedocker-compose(recommended)docker-composeup-d--buildThen the services is running.Run manualRun producerThe producer listens on MySQL binlog and send data changes to redis message queue.>fettlerproduceRun consumerThe consumer consume message queue and delete invalid caches by data changes and refresh policy registered from server.>fettlerconsumeRegister cache refresh policySeeexamplesto see how to add cache refresh policy in you application.LicenseThis project is licensed under theApache-2.0License.
Package: feu
feu :fire:Overviewfeuis a light Python library to help to manage packages.DocumentationInstallationContributingAPI stabilityLicenseInstallationWe highly recommend installing
avirtual environment.feucan be installed from pip using the following command:pipinstallfeuTo make the package as slim as possible, only the minimal packages required to usefeuare
installed.
To include all the dependencies, you can use the following command:pipinstallfeu[all]Please check theget started pageto see how to
install only some specific dependencies or other alternatives to install the library.
The following is the correspondingfeuversions and supported dependencies.feupackagingpythonmain>=22.0,<24.0>=3.9,<3.130.0.2>=22.0,<24.0>=3.9,<3.130.0.1>=22.0,<23.3>=3.9,<3.13*indicates an optional dependencyContributingPlease check the instructions inCONTRIBUTING.md.Suggestions and CommunicationEveryone is welcome to contribute to the community.
If you have any questions or suggestions, you can
submitGithub Issues.
We will reply to you as soon as possible. Thank you very much.API stability:warning: Whilefeuis in development stage, no API is guaranteed to be stable from one
release to the next.
In fact, it is very likely that the API will change multiple times before a stable 1.0.0 release.
In practice, this means that upgradingfeuto a new version will possibly break any code that
was using the old version offeu.Licensefeuis licensed under BSD 3-Clause "New" or "Revised" license available inLICENSEfile.
Package: feuersoftware
feuersoftwarefeuersoftware is a library that allow you to interact with theFeuersoftware Connect Public API.ExampleNote: Every resource returns thepython requestsresponse object.Setup the APIfrom feuersoftware import PublicAPI

TOKEN = '2xgRoQfoMGb4IveCDJIZqOO1l8hZZ5jT5mAw7SSk1otrFSq50IA2HIYB3luEpv7Vw8BWwG'\
        'Y2zV96VUkOF3FCZs2OP03qaTWF3CDrUHOKndvLIFTTgx0FCMBTFBRF1DfG4g3rs8BSMHB4'\
        '6qph1AlxOZ6parmJlp90V3GQB4EoI6DFdKE4SZeBuu46mXoaDlSmpTTS3FCpeG7oEUJVgy'\
        'pLZkZSFPRng5HdKhp6HG2XmNIMAtKTG3DAUWuKRi3cZ4JstLj05y4r7jt81g4DYXz9gVYc'\
        'UWk2pOkIZ9RPmu0s4LlaXHEK3TJlxLIUt5eHIzPUVKXyhdJDckviPsTYNfRxkpcNGd0vAb'\
        'zfzwMadgb4xaOi1v6ZpsRfXyOPgpudcnO6rwwi9TlAWNZ2075CO7HVFEP31yGhXmYsdFwj'\
        'ne3UIraWovMWHqeyv2yQLigKLePDAgXYUFqQpZ9P5ScznSMUg0ZnxS0Miy0qKe9zDYtqTk'\
        'qQVwrUGfGVFp4Ti83NJLCCGUOCmF0ovOB28mYyQIqGAi2MDaNIuAvz6HT1tGAo5nYdzOeu'

api = PublicAPI(TOKEN)Receive data about running operationsapi.get_operation()Start new operationapi.post_operation(
    start="2019-06-06T08:00:00", 
    end="2019-06-06T18:00:00", 
    keyword="Brand 2", 
    status="new",
    alarmenabled=True,
    address="Musterweg 4, 12345 Entenhausen", 
    position={"latitude":"47.592127",·"longitude":"8.296870"}, 
    facts="Küchenbrand", 
    ric="10B", 
    number=54321,
    properties=[{"key":"Fettbrand":"value":"Nein"},{"key":"Noch Personen im Gebäude","value":"Ja"}],
    updateStrategy="none"
    )Set user status for a running operationapi.post_user_status(
    operationid=1,
    name="Hans Maier",
    status="coming"
    )Set vehicle statusapi.post_vehicle_status(
    radioid=12345678, 
    status=2, 
    position={"latitude":"47.592127",·"longitude":"8.296870"}
    )Get alarmgroupapi.get_alarm_group()Put a user into an alarmgroupapi.put_alarm_group(
    id=0,
    name="Alarmgruppe 1",
    users=[
        {"id":1, "firstname": "Hans", "lastname": "Maier", "email": "hans.maier@ffw.de"},
        {"id":2, "firstname": "Peter", "lastname": "Baumann", "email": "peter.baumann@ffw.de"}
    ])Get geocoordinates for an addressapi.get_geocoding("Musterstrasse 1, 12345 Musterstadt")Check passwordapi.post_passwordcheck("MySecurePassword123!")Get newsapi.get_news()Post newsapi.post_news(
    title="News title",
    content="An alle, bitte bechten dass ...",
    start="2019-06-06T18:00:00",
    end="2019-06-06T18:00:00",
    news_type="siteNews",
    groups=[
        "Gruppenführer",
        "Gerätewarte"
        ],
    mailinglists=[
        "Mailingliste FFW"
        ]
    )Delete newsapi.delete_news(1)Update a news entryapi.put_news(
    id=1,
    title="News title",
    content="An alle, bitte bechten dass ...",
    start="2019-06-06T18:00:00",
    end="2019-06-06T18:00:00",
    groups=[
        "Gruppenführer",
        "Gerätewarte"
        ],
    mailinglists=[
        "Mailingliste FFW"
        ]
    )
Package: fever-api
Licensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Description: readme
Platform: UNKNOWN
Requires-Python: >=3.5
Package: fever-drqa
For DrQA softwareCopyright (c) 2017-present, Facebook, Inc. All rights reserved.Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:Redistributions of source code must retain the above copyright notice, thislist of conditions and the following disclaimer.Redistributions in binary form must reproduce the above copyright notice,this list of conditions and the following disclaimer in the documentationand/or other materials provided with the distribution.Neither the name Facebook nor the names of its contributors may be used toendorse or promote products derived from this software without specificprior written permission.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.Description: This is an adapted version of the DrQA facebook library for use in FEVER
Platform: UNKNOWN
Requires-Python: >=3.5
Package: few-colors
Brief DescriptionfewColorsallows to create a color image from an image with labeled objects so that adjacent objects have different colors while using the fewest colors possible.Image with labeled objects (background=0, objects=1, 2…).Color image with the fewest colors possible.InstallationThefewColorsproject is published on thePython Package Index (PyPI)at:https://pypi.org/project/few-colors. It requires version 3.8, or newer, of the interpreter. It should be installable from Python distribution platforms or Integrated Development Environments (IDEs). Otherwise, it can be installed from a command-line console:For all users, after acquiring administrative rights:First installation:pip installfew-colorsInstallation update:pip install--upgradefew-colorsFor the current user (no administrative rights required):First installation:pip install--userfew-colorsInstallation update:pip install--user--upgradefew-colorsDocumentationAfter installation, thefew-colorsandfew-colors-guicommands should be available from a command-line console.The usage help forfew-colorsis obtained withfew-colors--help(see output below). The accepted file formats for the input labeled image are the image formats read byimageio, and theNPYandNPZNumpy formats. (See note below for the reason to use Numpy formats.) A labeled image or Numpy array must have the background labeled with zero, with the objects labeled consecutively from 1. The accepted image formats for the output color image are the image formats written byimageio.NoteWith 8-bit image formats, an image with labeled objectscannot contain more than 255 objects. Higher-depth formats allow to label more objects. However, it is recommended to use NPY or NPZ Numpy formats instead. Note that using Numpy arrays does not remove the limit on the number of objects, but with theuint64 dtype, the limit goes up to close to 2e19 objects.Usage Help:usage: few-colors [-h] file file

Convert a labeled image or a labeled Numpy array into a minimally colored image

positional arguments:
  file        Input labeled image or Numpy array and Output minimally colored image (pass input first)

optional arguments:
  -h, --help  show this help message and exitThe commandfew-colors-guican be launched with or without an argument as an initial image. If no argument is passed, a file browser opens to select an image. The color version is immediately displayed. It is then possible to change the image, change the object colors (individually or collectively; Press the?button for help), and save the color image. There is noclosebutton. The window can simply be closed using the appropriate window manager button or keyboard shortcut.ThanksThe project is developed withPyCharm Community.The development relies on several open-source packages (seeinstall_requiresinsetup.py).The code is formatted byBlack,The Uncompromising Code Formatter.The imports are ordered byisort…your imports, so you don’t have to.
Package: fewspy
FewspyA Python API for theDeltares FEWS PI REST Web Service.Fewspy is build for speed; time-series requests are handled asynchronous, giving the results you need much faster.Documentation:https://d2hydro.github.io/fewspySource Code:https://github.com/d2hydro/fewspyInstallationFewspy can be installed with pip in any environment with the following Python-packages properly installed:requestsaiohttpnest-asynciopandasgeopandasIn that activated environment you can add fewspy via pip by:pip install fewspyWe recommend to build your environment usingAnaconda. You can build an environment ánd install fewspy by conda in one go using thisenvironment.ymlfrom the command-line:conda env create -f environment.ymlAboutFewspy is developed and maintained byD2Hydroand freely available under an Open SourceMIT license.
Package: fewsver
fewsver 0.1.0This package is part of the prototype forecast verification system that was developed at Deltares for an in-house use only, and it aims to monitor the quality of GLOFFIS forecasts over time.Running the main function of the package, triggers the download of forecasts and observations via the FEWS PI REST Web Service and the verification by calling the Ensemble Verification System (EVS). Verification information (Brier Skill Score) is stored both locally and online and can be further disseminated via Plotly's API.The .txt file that serves as input-argument to the main function, should contain:path to csv file with the IDs of point locationspath to folder where observations will be storedpath to folder where forecasts will be storedpath to EVS templatepath to folder where the EVS project will be storedpath to EVS jar filepath to folder where results will be storedpath to csv file of monthly BSS valuesusername for Plotly's APIapi_key for Plotly's APIFor a Jupyter Notebook with the fully commented code, contact me via e-mail atboumis.georgios@gmail.com
Package: fex
# A Simple Feature Extraction Framework## MotivationFeature extraction is something we are doing over and over at Bayes. This task usually includes querying one or multiple databases, complex joins to compute the features (e.g. number of different diagnoses for one patient, which might be spread over several tables) and then saving the results of this procedure into one flat table, that can be used to train a model. This flat table has to be re-computed regularly (e.g. after changes to a feature) and has to be shared between multiple people. We furthermore always want to record the code that was used to compute a certain feature set. Without that we might end up in situations where we have a model that works, but we don't remember how we computed the features to train it. FEX simplifies this process.## All Features* Deployment mode: Execution of the runner with `--deploy` records the current source code version with the generated dataset. This mode makes sure that there are no uncommited changes and prepends a unique identifier, computed from the git remote URL and the latest commit hash, to the generated data file. Note that this mechanism only tracks changes to the code and would not notice if arguments are passed to the feature extractors.* Results from a feature extractor are cached into a pickle, as long as the source code of the feature extractor did not change.* The path to the cache file can be specified via commandline arguments of the runner (`--cache-path`).* Path to the output CSV file can be specified on the commandline (`--path`).* Caching can be deactivated with the `--no-cache` flag of the runner.## QuickstartSimply write a class that inherits from `FeatureExtractor` and override its `extract` method. At one point, it should call `emit` with a pandas DataFrame, which is the result of the extraction. (In the future we may expand this to allow multiple emits, but for now it must emit exactly once.)Then execute it using the fex runner.```#!/usr/bin/env pythonimport pandas as pdimport fexclass ExampleFeature1(fex.FeatureExtractor):"""First example feature extractor, super cool."""def extract(self):"""Overriden method with custom logic.This is the place where one would do the data extraction and transformation."""data = {'col1': [42]}data_frame = pd.DataFrame(data, index=[1])self.emit(data_frame)fex.runner.run(ExampleFeature1())```See [examples/simple_example.py](examples/simple_example.py) for a slightly more complex example that you can directly run to see the results. Run `examples/simple_example.py --help` to see all commandline parameters.
Package: fexpect
Fexpect is an extension to fabric for handling prompts with pexpect scripts.Provisional documentation in these blogposts:http://ilogue.com/jasper/blog/fexpect–dealing-with-prompts-in-fabric-with-pexpect/http://ilogue.com/jasper/blog/improved-fexpect-now-on-pypi/Please report bugs, request features at the github repository:http://github.com/ilogue/fexpectSeems it doesn’t work well with easy_install, please install with pip.usagefrom ilogue.fexpect import expect, expecting, run

prompts = []
prompts += expect('What is your name?','Jasper')
prompts += expect('Where do you live?','Frankfurt')

with expecting(prompts):
    run('command')You can use the included fabfile.py to run the fexpect tests:fab test -p 'yourlocalpassword'Note however that the tests may have different requirements (more recent fabric version). You can install these with the traditional:python setup.py testcontributorsJasper van den Bosch / ilogueMichael IvanovMitsuhiro KogaErik Dykema
Package: fexplorer
Simple File ExplorerAbout The ProjectIt is a simple cli file explorer project that I made for my school project.InstallationpipinstallfexplorerUsagefexplorerpathmode(optional,default="n")When mode is n (default),It reads the file contents (if the file is readible).You have options to open vi or you can go back.When mode is e,The custom script you write will be run.Editcustomscript.pyfile.To start with your current directory, you can simply run:fexplorer.If you want to run your script,fexplorer.--meInstructionsNavigation is done with the arrow keys [←↑→↓]If you see => as an indicator, you first need to select a file with SPACE and then ENTER.If you see * as an indicator, only press ENTER.To edit a file: First select the file with SPACE, then press E.Buit WithPythonPick
Package: feyn
FeynQuick startFeynis available as Python3.8+ packagethroughpip. You can install it with the following command:richard@feyn:~$pip3installfeynOnce installed, go to your preferredPythonenvironment and follow along with this example.Running a QLatticeIf you're using the community edition of aQLatticethen you can instantiate it by:importfeynql=feyn.QLattice()Auto runThe quickest way to get started is to use theauto_runfunction on theQLattice. First we will make a classification problem withfeyn.datasets.make_classification.fromfeyn.datasetsimportmake_classificationtrain,test=make_classification()models=ql.auto_run(train,output_name='y',kind='classification')This returns a list of fitted models that are the best theQLatticehas sampled, sorted by ascending loss.EvaluateThe model with the lowest loss ismodels[0]. We can evaluate that model with theplotfunction and it's ROC curve.best=models[0]best.plot(train,test)best.plot_roc_curve(test)
Package: feynmanium
ADiscordbot that works.RequirementsFeynmanium requires:Pythonv3.10 or laterPoetryv1.1 or laterInstallationRun the following commands to install Feynmanium:git clone https://github.com/tb148/feynmanium.git
poetry installUsageRun the following commmand to run Feynmaniumpython -m feynmanium <token>
Package: feynml
FeynMLFeynML fromhttps://feynml.hepforge.org/FeynML is a project to develop an XML dialect for describing Feynman diagrams as used in quantum field theory calculations. The primary aim is to unambiguously describe the structure of a diagram in XML, giving a de facto representation for diagram structure which can be easily translated into another representation.Installationpipinstall[--user]feynmlor from cloned source:poertyinstall--withdocs--withdev
poetryshellDocumentationhttps://pyfeyn2.readthedocs.io/en/stable/feynml/https://apn-pucky.github.io/pyfeyn2/feynml/index.htmlRelated:https://github.com/APN-Pucky/pyfeyn2Developmentpackage/python structure:https://mathspp.com/blog/how-to-create-a-python-package-in-2022https://www.brainsorting.com/posts/publish-a-package-on-pypi-using-poetry/
Package: feynmodel
FeynModelFeynModel is a project to develop an XML dialect for describing Feynman Models.
It is in design very close to the UFO format, but not as restrictive (-> less complete).Installationpipinstall[--user]feynmodelor from cloned source:poertyinstall--withdocs--withdev
poetryshellDocumentationhttps://pyfeyn2.readthedocs.io/en/stable/feynml/https://apn-pucky.github.io/pyfeyn2/feynml/index.htmlRelated:https://github.com/APN-Pucky/feynmlhttps://github.com/APN-Pucky/pyfeyn2Developmentpackage/python structure:https://mathspp.com/blog/how-to-create-a-python-package-in-2022https://www.brainsorting.com/posts/publish-a-package-on-pypi-using-poetry/
Package: fez.atcsv
Introduction============This is alpha software, and not considered suitable for production use. Inparticular, there are few tests. Caveat emptor!This package was sponsored by `Jon Hadley <http://www.jon-hadley.com/>`_.Changelog=========0.2 - UI and architecture-------------------------* Change to z3c.form-based forms* Use CA to look up importer* Allow specification of delimiter0.1 - Alpha-----------* Initial release* Basic import featuresIntroduction============fez.atcsv is a lightweight product for importing CSV files into Plone sites.Unlike other implementations, it leaves no persistent data in the databaseaside from imported content.To use, install the product onto your pythonpath using easy_install or pip:easy_install fez.atcsvorpip install fez.atcsvYou should then add 'fez.atcsv' to your eggs = and zcml = sections in your buildout.Restart Zope, and you should see AT CSV in your quickinstaller page. Install it,and you should see a 'CSV Import' tab on all folder-like content objects.The CSV you upload *must* have a first line of titles, and these titles *must* correspondto the Archetype field names of the type you're importing. So, if you had an Archtype contenttype that had a schema like this:atapi.TextField('Title',searchable = 1,required = 0,storage = atapi.AnnotationStorage(),widget = atapi.StringWidget(label='Title'),),atapi.TextField('Colour',searchable = 1,required = 0,storage = atapi.AnnotationStorage(),widget = atapi.StringWidget(label='Colour'),),Then a valid CSV might look like this:"Title","Colour","Size""Apple", "Green", "small""Banana", "Red", "Medium"Note that in this case, the 'size' column won't be imported as it's not in the AT schema.Further, notice that no validation is run on the imported data. It is assumed thatthe data will be clean. (Validation may be added at a later point.)Be aware that large file uploads may take some time.Dan Fairs (Fez Consulting Ltd.), dan@fezconsulting.com, Author