Saravanan666/pypi-org huggingface dataset:
Package: fava-investor
Fava InvestorFava Investor aims to be a comprehensive set of reports, analyses, and tools for
investments, forBeancountandFava(software forplain text, double entry bookkeeping). It is developed as a
collection of modules, with each module offering aFava plugin, a Beancount library, and
a shell command.Current modules:Visual, tree structured asset allocation by classAsset allocation by accountTax loss harvestorCash drag analysisSummarizerGains minimizerDemoPlay with the live demo atpythonanywhere.Screenshots (dated):UtilitiesFava Investor ships withticker-util, which is a collection of utilities for:downloading information from Yahoo for commodities (tickers), and annotating your
commodity declarations with metadatadiscovering relationships between tickers in your Beancount file, such as equivalent
and substantially identical tickers, and tax loss harvesting partner groups, from a
minimal and incomplete specificationproviding ISIN an other ticker identifying information to your importersFor more, install fava_investor via pip, and then see:ticker-util --help
ticker-util relate --helpInstallationpip3installfava-investorOr to install the bleeding edge version from git:pip3installgit+https://github.com/redstreet/fava_investorSee#55for MacOS installation.Running Fava InvestorRunning in Fava:Add this to your beancount source, and start up fava as usual:2000-01-01 custom "fava-extension" "fava_investor" "{}"You should now see an 'Investor' link in the sidebar in fava. For more on how to
configure the extension, see the includedhuge-example.beancount.Running on the Command-Line:The command line interface (CLI) is accessed using theinvestorcommand, which has
subcommands for each module. Eg:investor assetalloc-class
investor tlh
investor --helpBoth the CLI and the utility (ticker-util) useclick.See hereto enable shell completion in zsh, bash, or fish, which is highly recommended.Problems?Monitor the terminal you are running fava from to look for error output from
fava_investorInclude the error messages you see above when opening bug reports or asking for helpContributingFeatures, fixes, and improvements welcome. Remember:Feel free to send send pull requests. Please include unit testsFor larger changes or changes that might need discussion, please reach out and discuss
first to save time (open an issue)Please squash your commits (reasonably)Useconventional commitsfor commit messagesThank you for contributing!Related ProjectsFava DashboardsFava Portfolio ReturnsBeangrow
Package: fava-miler
fava_milerAirline miles and rewards points: expiration and value reporting for Fava/Beancount
(Personal finance software).IntroductionAirline miles and rewards points typically expire after a period of inactivity. They
also can be viewed as having a value in a currency of your choice. If you track airline
mile transactions in Beancount, this simple plugin reports on the value of miles and
their expiry date. This is particularly useful if you have miles/points on many airlines
or businesses.Installationpipinstallfava-milerConfiguring your beancount sourceDefine youroperating_currencyDeclare the currency for each of your airline milesAddexpiry-monthsandpoints-valuemetadata to your commodity declarationAny negative value forexpiry-monthssignifies that this commodity never expiresThis should get the reporter working. Example:option "operating_currency" "USD"
1990-01-01 commodity MILESAIRALD
    expiry-months: 24
    points-value: 0.015 USD

2000-01-01 open Assets:Miles:AirAldorra MILESAIRALD
2000-01-01 open Income:Misc

2010-01-01 * "Credit card miles"
        Assets:Miles:AirAldorra 100 MILESAIRALD
        Income:MiscRunningbeancountfava-miler --helpfavaAdd the following to your source and run fava as you normally would.2010-01-01 custom "fava-extension" "fava_miler" "{
  'accounts_pattern' : '^Assets.*Reward',
  'exclude_currencies' : '(POINTS_ABC)|(POINTS_DEF)',
}"
Package: fava-plugins
# fava-pluginsa collection of Beancount plugins[split_income](https://github.com/beancount/fava-plugins/blob/master/fava_plugins/split_income.py): Split income transactions into pre-tax and post-tax postings.[todo_as_error](https://github.com/beancount/fava-plugins/blob/master/fava_plugins/todo_as_error.py): Display ‘todo’-metadata-entries as errors.
Package: favapy
FAVA: Functional Associations using Variational AutoencodersFAVA is a method used to construct protein networks based on omics data such as single-cell RNA sequencing (scRNA-seq) and proteomics. Existing protein networks are often biased towards well-studied proteins, limiting their ability to reveal functions of understudied proteins. FAVA addresses this issue by leveraging omics data that are not influenced by literature bias.
Read thedocumentation.Data availabilityThe Combined NetworkInstallation:pip install favapyfavapy as Python libraryRead the jupyter-notebook:How_to_use_favapy_in_a_notebookfavapy supports both AnnData objects and count/abundance matrices.Command line interfaceRun favapy from the command line as follows:favapy <path-to-data-file> <path-to-save-output>Optional parameters:-t Type of input data ('tsv' or 'csv'). Default value = 'tsv'.

-n The number of interactions in the output file (with both directions, proteinA-proteinB and proteinB-proteinA). Default value = 100000.

-cor Type of correlation method ('pearson' or 'spearman'). Default value = 'pearson'

-c The cut-off on the Correlation scores.The scores can range from 1 (high correlation) to -1 (high anti-correlation). This option overwrites the number of interactions. Default value = None.

-d The dimensions of the intermediate\hidden layer. Default value depends on the input size.

-l The dimensions of the latent space. Default value depends on the size of the hidden layer.

-e The number of epochs. Default value = 50.

-b The  batch size. Default value = 32.If FAVA is useful for your research, consider citingFAVA BiorXiv.Other Relevant publications:The STRING database in 2023.
Package: fave-recode
Getting started withfave-recodeThe idea behindfave-recodeis that no matter how much you may adjust
the dictionary of a forced-aligner, you may still want to make
programmatic changes to the output.InstallationYou can installfave-recodeat your system’s command line withpip.pipinstallfave-recodeBasic usageInstallation of thefave-recodepython package makes thefave_recodeexecutable, which can also be run at the command line. You can get help
with--helpfave_recode--helpUsage: fave_recode [OPTIONS]

Inputs: [at least 1 required]
  File inputs. Either a single file with -i or a path with -p. Not both.
  -i, --input_file FILENAME  single input file
  -p, --input_path PATH      Path to a set of files

Outputs:
  -o, --output_file TEXT     An output file name
  -d, --output_dest PATH     An output directory

Other options:
  -s, --scheme TEXT          Recoding scheme. Built in options are cmu2labov
                             and cmu2phila  [required]
  -r, --recode_stem TEXT     Stem to append to recoded TextGrid file names
  -t, --target_tier TEXT     Target tier to recode
  --help                     Show this message and exit.To recode a single file, you need to providefave_recodewith,
minimally, the input file (the-iflag), and the recoding scheme (with
the-sflag). There are a few default recoding schemes that come withfave_recode.lsdataKY25A_1.TextGrid                 josef-fruehwald_speaker.TextGridfave_recode-idata/josef-fruehwald_speaker.TextGrid-scmu2phila

lsdataKY25A_1.TextGrid
josef-fruehwald_speaker.TextGrid
josef-fruehwald_speaker_recoded.TextGrid
Package: fave-syllabify
fave-syllabifySyllabify a force-aligned TextGridInstallationpipinstallfave-syllabifyUsageImport classes and functionsfromaligned_textgridimportAlignedTextGrid,custom_classesfromfave_syllabifyimportsyllabify_tgfrompathlibimportPathRead in a textgridtg=AlignedTextGrid(textgrid_path=Path("docs","data","josef-fruehwald_speaker.TextGrid"),entry_classes=custom_classes(["Word","Phone"]))print(tg)AlignedTextGrid with 1 groups named ['group_0'] each with [2] tiers. [['Word', 'Phone']]Syllabify the textgridsyllabify_tg(tg)print(tg)AlignedTextGrid with 1 groups named ['group_0'] each with [4] tiers. [['Word', 'Syllable', 'SylPart', 'Phone']]Exploring the syllabificationword_tier=tg.group_0.Wordraindrops=word_tier[5]print(raindrops.label)raindropsEach syllable is labelled with its stress.print([syl.labelforsylinraindrops.contains])['syl-1', 'syl-2']Each syllable contains its constituent parts in a flat hierarchy
(there’s no rhyme constituent).syl=raindrops.first.folprint([part.labelforpartinsyl.contains])['onset', 'nucleus', 'coda']Each constituent contains its relevant phone.onset=syl.onsetprint([phone.labelforphoneinonset])['D', 'R']
Package: favico
Python library to generate the perfect favicons for every device.$pipinstallfavicoimportfavicoInstallationfavico usesImageMagickto generate the favicons.For ubuntu, you can simply install libmagicwand-dev like this:$apt-getinstalllibmagickwand-devUsageUsingfavicois super easy!
You can either create favicons from an image or from a color:$favicocolor"#f542ec"./my-favicon-dir$favicoimage./path/to/favicon/image.png./my-favicon-dirOnce you ran the command to test it out, you will see more info on how to
add the favicons to your page (ready to copy paste!)By default, it is assumed that your website is deployed on the root/.
To template the favicons with another base path, just set the--base(-b) option:$favico--base/prod/deployment/subdircolor"#f542ec"./my-favicon-dir$favico--basehttps://my-webside.comcolor"#f542ec"./my-favicon-dirDevelopmentFor detailed instructions seeCONTRIBUTING.TestsYou can run tests with$invoketest$invoketest--min-coverage=90# Fail when code coverage is below 90%$invoketype-check# Run mypy type checksLinting and formattingLint and format the code with$invokeformat$invokelintAll of this happens when you runinvokepre-commit.NoteThis project is still in the alpha stage and should not be considered production ready.
Package: favicon
faviconis a Python library to find a website’s favicon.InstallationpipinstallfaviconUsageGet all icons:>>>importfavicon>>>icons=favicon.get('https://www.python.org/')Icon(url='https://www.python.org/static/apple-touch-icon-144x144-precomposed.png',width=144,height=144,format='png')Icon(url='https://www.python.org/static/apple-touch-icon-114x114-precomposed.png',width=114,height=114,format='png')Icon(url='https://www.python.org/static/apple-touch-icon-72x72-precomposed.png',width=72,height=72,format='png')Icon(url='https://www.python.org/static/apple-touch-icon-precomposed.png',width=0,height=0,format='png')Icon(url='https://www.python.org/static/favicon.ico',width=0,height=0,format='ico')Download largest icon:importrequestsimportfaviconicons=favicon.get('https://www.python.org/')icon=icons[0]response=requests.get(icon.url,stream=True)withopen('/tmp/python-favicon.{}'.format(icon.format),'wb')asimage:forchunkinresponse.iter_content(1024):image.write(chunk)# /tmp/python-favicon.pngRequest libraryparameters can be passed tofavicon.get()as keyword
arguments:importfaviconuser_agent='Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.47 Safari/537.36'headers={'User-Agent':user_agent}favicon.get('https://www.python.org/',headers=headers,timeout=2)Requirementsrequestsbeautifulsoup4InspirationpyfavbesticonHow to get high resolution website logo (favicon) for a given URLChangelog0.7.0 (2019-08-31)Handle emptyhrefandcontentattribute values (#22).Support passing request library parameters tofavicon.get()(#21).Deprecateheadersargument. Use keyword arguments:favicon.get(url, headers={‘User-Agent’; ‘my-agent’}.0.6.0 (2019-08-10)Upgradebeautifulsoup4andrequestspackage dependencies.0.5.1 (2018-11-05)Fix ‘NoneType’ object has no attribute ‘lower’ for meta tags (#16).0.5.0 (2018-11-05)Add support for meta tags (#15).Set bs4 parser tohtml.parser(#13).Usesrcpackage structure (#11).0.4.1 (2018-10-01)Updaterequirements.txtanddev-requirements.txt.0.4.0 (2018-07-19)Add support for Python 2.7 and PyPy.Get icon size for New York Times (#9).0.3.0 (2018-05-18)Fav icon not found for microsoft.com (#7).0.2.0 (2018-05-17)Handle poor html values in links (#5).Use given website for icon url scheme (#6).0.1.0 (2018-05-07)First release.
Package: faviconer
[![CircleCI](https://circleci.com/gh/kuniiskywalker/faviconer.svg?style=svg)](https://circleci.com/gh/kuniiskywalker/faviconer)What is this?This is a package to get a nice favicon from a websiteInstallationpipinstallfaviconerUsageGet favicon.ico:Get /favicon.ico if there is no explicit favicon url specified in the meta tag of the target siteWhen the favicon url is specified in the meta tag>>>importfaviconer>>>faviconer.get_by_url("https://example.com/test/?aaa=1")'https://example.com/image/icon.png'When there is no specific URL specified in the meta tag>>>importfaviconer>>>faviconer.get_by_url("https://example.com/test/?aaa=1")'https://example.com/favicon.ico'Get favicon.ico by url:>>>importfaviconer>>>faviconer.get_by_url("https://example.com/")'https://example.com/favicon.ico'Get favicon.ico by html:Analyze the target site html and get favicon.ico if favicon url is specified in meta tag>>>importfaviconer>>>faviconer.get_by_html('<html><head><link rel="shortcut icon" href="https://cdn.sstatic.net/Sites/stackoverflow/img/favicon.ico"></head><body></body</html>')'https://cdn.sstatic.net/Sites/stackoverflow/img/favicon.ico'
Package: favicorn
FavicornInstallationpip3installfavicornASGI Usagepip3installhttptoolsmain.pyimportasyncioimportloggingfromfavicornimportASGIFavicornBuilderlogging.basicConfig(level=logging.INFO,format="[%(asctime)s][%(levelname)s]%(message)s")asyncdefapp(scope,receive,send)->None:awaitsend({"type":"http.response.start","status":200,"headers":[(b"Content-Length",b"0")],})awaitsend({"type":"http.response.body","body":b"","more_body":False})s=ASGIFavicornBuilder(app=app,http_parser_impl="httptools",).build()asyncdefmain()->None:awaits.init()try:awaits.serve_forever()finally:awaits.close()asyncio.run(main())python3main.py[2023-07-1412:37:14,979][INFO]Socket('127.0.0.1',8000)acquiredsuccessfullyusing<class'favicorn.socket_providers.inet.InetSocketProvider'>[2023-07-1412:37:14,979][INFO]Serveforever...ASGI Usage with websocketspip3installhttptoolswsprotomain.pyimportasyncioimportloggingfromfavicornimportASGIFavicornBuilderlogging.basicConfig(level=logging.INFO,format="[%(asctime)s][%(levelname)s]%(message)s")asyncdefapp(scope,receive,send)->None:awaitsend({"type":"websocket.accept"})msg=awaitreceive()awaitsend({"type":"websocket.send","bytes":b"Something","text":None})awaitsend({"type":"websocket.close","code":1000})s=ASGIFavicornBuilder(app=app,http_parser_impl="httptools",ws_impl='wsproto').build()asyncdefmain()->None:awaits.init()try:awaits.serve_forever()finally:awaits.close()asyncio.run(main())python3main.py[2023-07-1412:37:14,979][INFO]Socket('127.0.0.1',8000)acquiredsuccessfullyusing<class'favicorn.socket_providers.inet.InetSocketProvider'>[2023-07-1412:37:14,979][INFO]Serveforever...
Package: favitech
favitechDetect web technologies based on favicons. Improved version ofFavFreak.Usage$ subfinder -silent -d mydomain.com | httpx -silent | favitech -k
https://big-itsmapi.mydomain.com ASP.net 1772087922
http://azureconsumer.mydomain.com Windows Azure -2125083197
http://files.mydomain.com Windows Azure -2125083197
https://manage.prod.apac.ngps.mydomain.com React -2009722838
Package: favorites-icons
# Favorites Icons`bash pip installgit+https://github.com/avryhof/favorites_icons.git`A simple plugin to generate all of your touch and favorites icons, as well as the needed tags to make them work.A## settings.py`python ICON_SRC = '/path/to/a/big/file.png'SITE_NAME='MySite'  # Optional if you are using the Sites framework, and have a SITE_ID configured.TILE_COLOR='#FFFFFF'THEME_COLOR='#FFFFFF'# Optional # A list of numbers for iconsizes...they will all be generated and tagged. ICON_SIZES = [16, 32, 57, 60, 64, 72, 76, 96, 114, 120, 144, 152, 180, 192, 256, 512] `
Package: fav-plots
I like data visualization that are both pretty and easy to understand.This package will include my favourite dataviz.InstallationYou can install this package by runningpip install fav-plotsDevelopmentCurrently the package only has one simple functionadd_one, which can be called with code belowfrom fav_plots.utils import add_one
add_one(5) # this should return 6Unit testCreate a virtual environmentInstall unit requirements for local development and the project package in a developer mode:pip install -r unit-requirements.txtpip install -e .Run unit testpytest tests/unit --cov
Package: fawkes
Fawkes:warning: Check out our MacOS/Windows Software on our officialwebpage.Fawkes is a privacy protection system developed by researchers atSANDLab,
University of Chicago. For more information about the project, please refer to our
projectwebpage. Contact us atfawkes-team@googlegroups.com.We published an academic paper to summarize our
work "Fawkes: Protecting Personal Privacy against Unauthorized Deep Learning Models"
atUSENIX Security 2020.CopyrightThis code is intended only for personal privacy protection or academic research.Usage$ fawkesOptions:-m,--mode: the tradeoff between privacy and perturbation size. Select fromlow,mid,high. The
higher the mode is, the more perturbation will add to the image and provide stronger protection.-d,--directory: the directory with images to run protection.-g,--gpu: the GPU id when using GPU for optimization.--batch-size: number of images to run optimization together. Change to >1 only if you have extremely powerful
compute power.--format: format of the output image (png or jpg).Examplefawkes -d ./imgs --mode loworpython3 protection.py -d ./imgs --mode lowTipsThe perturbation generation takes ~60 seconds per image on a CPU machine, and it would be much faster on a GPU
machine. Usebatch-size=1on CPU andbatch-size>1on GPUs.Run on GPU. The current Fawkes package and binary does not support GPU. To use GPU, you need to clone this repo, install
the required packages insetup.py, and replace tensorflow with tensorflow-gpu. Then you can run Fawkes
bypython3 fawkes/protection.py [args].How do I know my images are secure?We are actively working on this. Python scripts that can test the protection effectiveness will be ready shortly.Quick InstallationInstall fromPyPI:pip install fawkesIf you don't have root privilege, please try to install on user namespace:pip install --user fawkes.Academic Research UsageFor academic researchers, whether seeking to improve fawkes or to explore potential vunerability, please refer to the
following guide to test Fawkes.To protect a class in a dataset, first move the label's image to a seperate location and run Fawkes. Please
use--debugoption and setbatch-sizeto a reasonable number (i.e 16, 32). If the images are already cropped and
aligned, then also use theno-alignoption.Citation@inproceedings{shan2020fawkes,
  title={Fawkes: Protecting Personal Privacy against Unauthorized Deep Learning Models},
  author={Shan, Shawn and Wenger, Emily and Zhang, Jiayun and Li, Huiying and Zheng, Haitao and Zhao, Ben Y},
  booktitle={Proc. of {USENIX} Security},
  year={2020}
}
Package: fawrapper
A python wrapper for theFieldAware API.requires a FIELDAWARE_TOKEN environment variableInstallationFawrapper is currently supported on python 3.6pipinstallgit+https://github.com/j-kirch/fawrapperQuickstartAssuming you already have at token provided by Fieldaware, you can create
an intance of the FieldawareAPIClient like so:fromfawrapperimportFieldawareAPIClient# If you have set the environment variable ``FIELDAWARE_TOKEN``api=FieldawareAPIClient()# Or you can include the tokenapi=FieldawareAPIClient(api_key="your_token")With the api instance you can interact with Fieldaware:# List all usersusers_list=api.users.list()foruserinusers_list:print('First Name: ',user.first_name,'UUID: ',user.uuid)# List all jobsjobs_list=api.jobs.list()forjobinjobs_list:print('Job Number: ',job.id,'UUID: ',job.uuid)# Get a user with uuiduser=api.users.get('user_uuid')# Get a job with uuidjob=api.jobs.get('job_uuid')# With the Job and a User instance, you can update the api by setting the# attribute to the userjob.job_lead=userDocumentationTODOContributionIf you find an API method that is not supported yet, feel free to create a
Github issue.You are more than welcome to submit a pull request for bug fixes or additional
features.Thank you!LicenseMIT License
Package: faxdatasdk
fax-datasdk介绍Fax-数据接口客户端，用于分布式数据访问和客户端访问安装方法# 首次安装, 在项目的根目录下添加requirements.txt文件，增加内容如下：Cython==0.29.34ply==3.11

msgpack>=0.4.7pandas==1.4.4setuptools==66.0.0six==1.16.0thriftpy2==0.4.16wheel==0.38.4faxdatasdk==0.0.2# 在命令行执行：pipinstall-rrequirements.txt# 如果安装失败，请指定官方镜像源pipinstall-rrequirements.txt-ihttps://pypi.org/simple# 安装指定的版本： pip install ttdatasdk==<version>pipinstallttdatasdk==0.0.1# 升级版本pipinstall-Ufaxdatasdk# 如果安装失败，请指定官方镜像源pipinstall-Ufaxdatasdk-ihttps://pypi.org/simple使用方法importfaxdatasdk"""账号认证"""faxdatasdk.auth(username,password)"""使用 token 认证账号"""faxdatasdk.auth_by_token(token="")# 获取因子数据factor_list=['float_share','pe','pe_ttm','ma_5','ema_5','dv_ratio']df=faxdatasdk.get_factor(stock_pool=['000300.SH'],trade_date='2023-03-29',factor_list=factor_list)print(df)openhigh...volumeamount

sec_codetrade_date...000001.SZ2023-03-2912.7312.74...596064.33750687.551000002.SZ2023-03-2915.4115.62...654848.261012734.687000063.SZ2023-03-2934.43510634.553575...782218.362685933.703000069.SZ2023-03-294.74.75...324836.19152639.669000100.SZ2023-03-293.9898994.044431...1604844.15707678.236

..................688363.SH2023-03-29111.999999113.159999...30500.33341085.693688396.SH2023-03-2959.30783361.559399...75640.44458018.471688561.SH2023-03-2972.57000572.570005...87323.24605371.703688599.SH2023-03-2951.75001152.490011...149553.3768914.461688981.SH2023-03-2949.18998850.319988...708926.223496451.834[300rowsx6columns]openhigh...volumeamount

sec_codedatetime...000001.SZ2023-03-2914:56:0012.52999912.54...3274.04103280.02023-03-2914:57:0012.5412.54...5943.07450969.02023-03-2914:58:0012.5412.54...122.0152976.02023-03-2914:59:0012.5412.54...0.00.02023-03-2915:00:0012.5412.54...9497.011900655.0[5rowsx6columns]
Package: faxir-api
This is the fax.ir API v2 developed for third party developers and organizations. In order to have a better coding experience with this API, let's quickly go through some points:&lt;br /&gt;&lt;br /&gt; - This API assumes/accountsas an entry point with the base url ofhttps://api.fax.ir/v2. &lt;br /&gt;&lt;br /&gt; - This API treats all date and times sent to it in requests asUTC. Also, all dates and times returned in responses are inUTC**&lt;br /&gt;&lt;br /&gt; - Once you have an access_token, you can easily send a request to the resource server with the base url of **https://api.fax.ir/v2to access your permitted resources. As an example to get the user's profile info you would send a request tohttps://api.fax.ir/v2/accounts/selfwhenAuthorizationheader is set to &quot;Bearer YOUR_ACCESS_TOKEN&quot; and custom header ofx-fax-clientidis set to YOUR_CLIENT_ID  # noqa: E501
Package: faxplus-api
FAX.PLUS Python SDKMade for third-party developers and organizations to send and receive faxes from their own software or application.API Documentation•Home•Help Center•Contact UsOnly available toEnterpriseclientsRequirements.Python 3.5+Installationpip installTo install the package from PyPi# From PyPipipinstallfaxplus-api# Directly from Githubpipinstallgit+https://github.com/alohi/faxplus-python.gitSetuptoolsInstall viaSetuptools.gitclonehttps://github.com/alohi/faxplus-python.gitcdfaxplus-python
pythonsetup.pyinstall--user(orsudo python setup.py installto install the package for all users)Getting StartedExample usage:fromfaxplusimportApiClient,FaxesApiclient=ApiClient(configuration)api=FaxesApi()faxes=api.list_faxes("self",category=FaxCategory.INBOX)DocumentationVisit the full API reference atapidoc.fax.plus.Author© 2021 Alohi (Geneva, Switzerland) -Alohi.com