Saravanan666/pypi-org huggingface dataset:
Package: yafte
A simple helper to create templates for fpdf in yaml.This library allows you to define a template using yaml. The template has a few sections:docoptionsThese contain the following settings:
- format (default is A4)
- title
- orientation (default is portrait)
- author
- keyword
and everything else, what fpdf offers as set_x value and has only one parameterdefaultsThis contains the defaults for all elements. See elements for details. This section is mandatory in case you do not set all required parameter in the elementstemplatesThis section is optional and allows you to reuse specific formats.elementsBesides the former sections everything else is interpreted as element for the document. The following types are supported:image (required parameter: x, y, w, h, text)box (required parameter: x, y, w, h, border, optional: background, bordercolor, style)rect (required parameter,  same as box)text (required parameter: x, y, w, h, text, font, size, optional: style, align, foreground, border, bordercolor, fill, background, multiline)HowToYou can simply call add_page for each page you add. By default the values of the template are use, or the values you have set before calling add page. But you can set the value for each element in the add_page call.
Package: yafwi
yafwiYet Another Fixed Width Integer (Library)Simple fixed with integers for developer experimentation.UsageInstallationAvailable throughyafwi - PyPIusingpip install yafwi.Some Examples>>>fromyafwiimport*>>>fromyafwiimport__all__>>>__all__('FixedWidthInt','BaseFixedWidthInt','generate_int','int8','int16','int32','int64','int128','int256','uint8','uint16','uint32','uint64','uint128','uint256','sbyte','byte','short','ushort','int_','uint','long','ulong')>>>int8(120)int8(120)>>>int8(120)+120# Arithmetic with Python int preserves typeint8(-16)>>>int8(120)+int16(120)# Arithmetic will take result in larger widthint16(240)>>>int16.max,int16.min# Utility sentinels(int16(32767),int16(-32768))>>>uint32.min,uint32.max(uint32(0),uint32(4294967295))>>>int8(0b11110000)# Utility represenationsint8(-16)>>>int8(0b11110000).bin'0b11110000'>>>int8(0b11110000).hex'0xf0'>>>(~int8(0b10010110)).bin'0b01101001'>>>(int8(0b10010110)>>2).bin'0b11100101'>>>(int8(0b10010110)<<2).bin'0b01011000'>>>((uint32(uint8.max)<<10|uint8.max)^uint32.max-(1<<31)).bin'0b01111111111111000000001100000000'>>>bytes(uint32(8))# Output depends on system byteorderb'\x08\x00\x00\x00'>>>uint32(8).hex# Output independent of system byteorder'0x00000008'Convenient Aliases>>>fromyafwiimport*>>>uintisuint32True>>>longisint64True>>>ushortisuint16True[...]Arbitrary Sizes>>>importyafwi>>>yafwi.generate_int(1024,unsigned=True)<class'yafwi.uint1024'>>>>yafwi.int512<class'yafwi.int512'>>>>yafwi.int3.max,yafwi.int3.min# Including some fun ones...(int3(3),int3(-4))Platform IndependenceIf run on a big-endian system, the bytes associated with the numbers will be different, but higher-level functionality should remain unchanged.
Package: yagamee
yagameeグラフ描画・データ整理などなど矢上発・理系大学生のためのレポート作成支援ツール使い方(初回の方)yagameeをインストールします．pip install yagameeMatplotlibでグラフ作成を始める前に，yagameeをインポートします．import yagameeMatplotlibで作成したグラフが理系レポート仕様になります！
Package: yagdrive
Yet Another Google Drive API Python wrapper!YagDrive is a Python package based onPyDrivewhich aims to simplify and enhance the operations over theGoogle Drive API.Installing$pipinstallyagdriveA Simple Example>>>fromyagdriveimportGDrive>>>drive=GDrive()>>>drive.put('/home/yagdrive/hello.json')LinksDocumentation:https://yagdrive.readthedocs.org/PyPI Releases:https://pypi.org/project/yagdrive/Source Code:https://github.com/sdelquin/yagdrive/Issue Tracker:https://github.com/sdelquin/yagdrive/issues/Changes:https://github.com/sdelquin/yagdrive/blob/main/CHANGELOG.mdLicense:https://github.com/sdelquin/yagdrive/blob/main/LICENSE
Package: yaghm
Yet Another Git Hook ManagerYaghm is a minimalgit hookmanager. You write a simple YAML config file listing the hooks you want.yaghm enableenables them in your repo.yaghm disabledisables them.:Yaghm is simple. Hooks are not rocket science. The config is just a list of shell commands. When you enable them, yaghm writes a wrapper script in.git/hooksthat calls the commands you gave. If they work in your shell they'll work in the hook.Because it's so simple, the documentation is complete, troubleshooting is easy and writing your own extensions is a breeze.Yourworkflow, not mine. You can store the config wherever you want. Maybe you version your hooks, maybe you don't, maybe you keep them in a separate repo, or your home dir, or your dotfiles...UsageTo use yaghm, you create a config that lists your hook commands (seedetailed syntax):pre-commit:-...# Assuming you have a program called current_branch_not-current_branch_not master-enable:black --check .install:pip install blackupdate:pip install -U black-enable:require_version_bump master setup.pyupdate:pip install -U metovhookspost-commit:-...You can useyaghm -hto see general help. There are three main subcommands (which also support-h):Enable hooks:yaghm enableList enabled hooks:yaghm listDisable hooks:yaghm disableWhen usingenableanddisable, if you pass--dryrunno files will actually be written.You can also run custom hook commands (e.g. update) withyaghm update. If any hooks in your configspecify the command, it will be executed.InstallInstall withpip install yaghmFurther readingHow it worksConfig syntaxDeveloping hooks
Package: yagls
yaglsYet Another Github Label Synchroniser.InspirationI wanted to be good at labeling at GitHub. Therefore, for reference, I searched for well-labeled repositories.However, it was hard work to carry the labels of the repository on a single way. I looked up Github Label Synchroniser to find some efficient way, but I didn't like they.That's why I made the Yet Another Github Label Synchronizer.FeatherCopy and paste labels from the repositorySave tokenAutomatically navigate through repositories with only the name of the repository
Package: yagmail
yagmailis a GMAIL/SMTP client that aims to
make it as simple as possible to send emails.Sending an Email is as simple:importyagmailyag=yagmail.SMTP()contents=["This is the body, and here is just text http://somedomain/image.png","You can find an audio file attached.",'/local/path/to/song.mp3']yag.send('to@someone.com','subject',contents)# Alternatively, with a simple one-liner:yagmail.SMTP('mygmailusername').send('to@someone.com','subject',contents)Note that yagmail will read the password securely from
your keyring, see the section onUsername and Password in the repository’s READMEfor further details. If you do not want this, you can
initializeyagmail.SMTPlike this:yag=yagmail.SMTP('mygmailusername','mygmailpassword')but honestly, do you want to have your
password written in your script?For further documentation and examples,
please go tohttps://github.com/kootenpv/yagmail.The full documentation is available athttp://yagmail.readthedocs.io/en/latest/.
Package: yagpt-py
YandexGPT Python LibraryWhat is this?This library allows you work with YandexGPT using Python and implement it to your projects.Setuppipinstallyagpt-pyUsageimportosfromyagpt_py.authDataimportAuthDatafromyagpt_py.messagesimportMessagesfromyagpt_py.responseimportResponsetoken=AuthData.Token=os.getenv('IAM_token')folder_id=AuthData.CatalogID=os.getenv('catalog_id')message=Messages.user='Tell me poem about misfit developer.'response=Response(token,folder_id,message)print(response.getResponse())
Package: yag-slam
# YAG SLAM (Yet Another Graph SLAM)Quick blurb on project goals: YAG SLAM is meant to be a complete graph SLAM system for life long mapping for robots using either 2D or 3D sensors. In its current form it is basically the same as Open Karto, even keeping the scan matcher from Karto mostly as is. The graph bits (including serialization/deserialization) however are implemented in Python and SBA is being used to do the graph optimization.Here are the rough goals of this project:Code should be easy to understand, maintain, and add to (hence the focus on Python as an interface).Support ROS without needing ROS as I intend to use the API exposed by this codebase in a variety of situations/cloud services that are related to robotics but aren’t “on a robot”.Do map saving, loading, and modification using portable formats (currentlyGraph state -> dict -> msgpack) to allow for tool development in a variety of ways.Support any sensor so long as a scan matcher and a loop closure system are supplied.
Package: yagt
yagt improves the pyGTrends tool written by Sal Uryasev
(http://www.juiceanalytics.com/openjuice/programmatic-google-trends-api/).  The
authentication and connection of remains similar.  In addition to provide a
more Pythonic way to manipulate the downloaded data, yagt also give you a
simple command line interface (CLI) to grab data from Google Trends and save to
a csv file.After install the module, you can access the simple CLI by using:$ python -m yagt <query1> <query2> [-u username] [other options]The output will be saved toresult.csvby default.  For more information
about the options, please usepython-myagt-hfor the help page.  SeeLICENSE.txtfor license agreement.
Package: yagura
Simple site monitoring web-app for small team.DescriptionYagura is simple website monitoring kit based by Django framework.
Yagura provides website monitorings, alerts and status reportings.FeaturesHealth-check report of websitesNotify state changing by email and Slack webhookTry demoSeehttps://yagura.herokuapp.comInitial user(Not work demo site)Username:adminPassword:Yagura!!
Package: yagwr
yagwr - Yet Another Gitlab Webhooks RunnerInspiration/Acknowledgments, isn't there enough of these projects already?That's a fair question. Before I decided to write my own project, I looked for
projects that would fit my needs. And while I found quite a few out there, they were
either to simple or to complex for my needs. One project in particular that got
almost right for my needs isgitlab-webhook-receiver.
However I had a few issues with it when I tested it, so I decided to write my
own. I took inspiration on this project, specially theconfig.yamlfile, so thank you
for the idea, I will be using a similar approach here.InstallationTo install this package:pip install yagwrUsageAfter the installation, a script calledyagwrwill be available:yagwr rules_and_actions.ymlFor a complete list of all command line options, please execute:yagwr --helpA more detailed documentation can be found here:https://yagwr.readthedocs.io/en/latest/
Package: yaha
Yaha分词“哑哈”中文分词，更快或更准确，由你来定义。通过简单定制，让分词模块更适用于你的需求。
“Yaha” You can custom your Chinese Word Segmentation efficiently by using Yaha安装pip install haya在线演示代码部署在GAE上：http://yahademo.appspot.com代码部署在SAE上：http://yaha.sinaapp.com原本的这个地址已不再使用：http://yaha.v-find.com/Feature基本功能：
* 精确模式，将句子切成最合理的词。
* 全模式，所有的可能词都被切成词，不消除歧义。
* 搜索引擎模式，在精确的基础上再次驿长词进行切分，提高召回率，适合搜索引擎创建索引。
* 备选路径，可生成最好的多条切词路径，可在此基础上根据其它信息得到更精确的分词模式。可用插件：
* 正则表达式插件
* 人名前缀插件
* 地名后缀插件
* 定制功能。分词过程产生4种阶段，每个阶段都可以加入个人的定制。附加功能：
* 新词学习功能。通过输入大段文字，学习到此内容产生的新老词语。 （添加了一个由我朋友实现的C++版本的最大熵新词发现功能，速度是python的10倍吧）
* 获取大段文本的关键字。
* 获取大段文本的摘要。
* 支持用户自定义词典 （TODO目前还没有实现得很好）Algorithm核心是基于查找句子的最大概率路径来进行分词。保证效率的基础上，对分词的各个阶段进行定义，方便用户添加属于自己的分词方法(默认有正则，前缀名字与后缀地名)。用户可自定义使用动态规划或Dijdstra算法得到最优的一条或多条路径，再次可根据词性(中科大ictclas的作法)等其它信息得获得最优路径。使用“最大熵”算法来实现对大文本的新词发现能力，很适合使用它来创建自定义词典，或在SNS等场合进行数据挖掘的工作。相比已存在的结巴分词，去掉了很消耗内存的Trie树结构，以及新词发现能力并不强的HMM模型(未来此模型可能当成一个备选插件加入到此模块)。阶段讲解stage 1是在分句中实现，通过正则可直接将数字或英文单词分成独立的词，生成独立的这些词不再参与下一步的分词。stage 2在创建有向无环图之前实现，对分句进行预扫描，加入一些可能形成的词，并赋予一定的概率。stage 3在创建有向无环图期间实现，从字典得到词的概率，或通过一些匹配模式得到可能的词，赋予一定概率。stage 4在得到有向无环图的最大概率之后（程序实现当中是最短路径），对一些不能成词的单字再继续进行处理；或得到最短的多条路径之后，根据用户的兴趣得到最终的一条路径。若用户有兴趣，可以在这一步实现对词性的分析。目前状态准备发布第一个版本，如果有好心人帮测试会非常感谢。 最后要感谢jieba的作者，目前的字典是直接从jieba项目拷贝过来的。
Package: yahfin
YahFin v1.0 (Yahoo Finance Python Wrapper - Unofficial)The Ultimate Yahoo Finance Python module you'll ever need.I was using the other yahoo finance library but it was fetching some of the data through web scrapping which was slow and some of its features didn't work at all.TryTry it before using it:https://share.streamlit.io/theonlyanil/yahfin-interactive/main/streamlit.pyFeatures:Live Price DataHistorical Price DataMulti Symbol DataOptions DataCompany ProfileShareholding InfoFundamental StatementsBalance SheetsP&LCash Flows(Yearly and Quarterly upto 4 years/qtrs)Quick GuideImporting into python file# one way
  from yahfin import yahfin as yf

  # other way
  import yahfin.yahfin as yfThe Symbol Objecttsla = yf.Symbol('TSLA')
  multiSymbols = yf.Symbol('TSLA, AAPL, MSFT, FB, ZOOM, GOOG')Quick Examples - Single Symbolfrom yahfin import yahfin as yf

  tsla = yf.Symbol('tsla')

  # Get Company Profile -
  tsla.profile()

  # Get Company's Key Managerial Personnel Info
  tsla.profile('kmp')

  # Live Price Data
  tsla.livePriceData()

  # Historical Prices
  tsla.history()  # defaults: period=max, interval=1d
  tsla.history(start='2021-01-01', end='2021-01-05')
  tsla.history(period='1y')
  tsla.history(period='5d', interval='1m')

  #valid periods: 1d,5d,1mo,3mo,6mo,1y,2y,5y,10y,ytd,max
  #valid intervals: 1m,2m,5m,15m,30m,60m,90m,1h,1d,5d,1wk,1mo,3mo

  # Options Data
  tsla.options('calls')
  tsla.options('puts')
  tsla.options('dates')
  tsla.options('strikes')
  tsla.options('quotes')

  # Analysis Data
  tsla.analysis()

  # Shareholding Data
  tsla.shareholding()Multi Symbol Datafrom yahfin import yahfin as yf

  multiSymbols = yf.Symbol('TSLA, AAPL, GOOG, FB, RELIANCE.NS')

  # All data at once
  m = multiSymbols.multi()

  # dataPoints of all symbols
  prices = m['regularMarketPrice']
  marketCaps = m['marketCap']

  # Individual Data
  aapl_price = prices['AAPL']

  # Note: The best thing is that it also works with single symbol.Fundamental Datafrom yahfin import yahfin as yf

  tsla = yf.Symbol('tsla')

  # Balance Sheets
  tsla.balanceSheets()
  tsla.balanceSheetsQtr()

  # Profile and Loss Statements
  tsla.incomeStatements()
  tsla.incomeStatementsQtr()

  # Cash Flow Statements
  tsla.cashFlows()
  tsla.cashFlowsQtr()RequirementsPython >= 3.x.xrequestsPandas
Package: yahoo-ads-display
&lt;div lang&#x3D;&quot;ja&quot;&gt;Yahoo!広告 ディスプレイ広告 APIのWebサービスについて説明します。&lt;br&gt; 「Try it out」のご利用には、事前にアプリケーションの登録が必要です。また、アプリケーションのリダイレクトURIの1つに&lt;br&gt;https://yahoojp-marketing.github.io/ads-display-api-documents/oauth2-redirect.htmlを登録してください。 &lt;/div&gt; &lt;div lang&#x3D;&quot;en&quot;&gt;Display Ads API Web Services supported in Yahoo! Ads API.&lt;br&gt; When you use &quot;Try it out&quot;, you need to register your application in advance.&lt;br&gt; As one of redirect URI for application, you need to set &quot;https://yahoojp-marketing.github.io/ads-display-api-documents/oauth2-redirect.html&quot;. &lt;/div&gt;   # noqa: E501
Package: yahoo-ads-search
&lt;div lang&#x3D;&quot;ja&quot;&gt;Yahoo!広告 検索広告 APIのWebサービスについて説明します。&lt;br&gt; 「Try it out」のご利用には、事前にアプリケーションの登録が必要です。また、アプリケーションのリダイレクトURIの1つに&lt;br&gt;https://yahoojp-marketing.github.io/ads-search-api-documents/oauth2-redirect.htmlを登録してください。 &lt;/div&gt; &lt;div lang&#x3D;&quot;en&quot;&gt;Search Ads API Web Services supported in Yahoo! Ads API.&lt;br&gt; When you use &quot;Try it out&quot;, you need to register your application in advance.&lt;br&gt; As one of redirect URI for application, you need to set &quot;https://yahoojp-marketing.github.io/ads-search-api-documents/oauth2-redirect.html&quot;. &lt;/div&gt;   # noqa: E501
Package: yahoo-api
# yahoo_weather_api
A Python wrapper for the Yahoo Weather API.
With the API, you can get up-to-date weather information for any location,
including 5-day forecast, wind, atmosphere, astronomy conditions, and more.
You can lookup weather by woeid, city name or lat/long.
For more detailed examples and tutorial, check out Yahoo Weather Developer Page.
For more information, check out the API documentation.https://developer.yahoo.com/weather/documentation.html#examples
Based on the source code of https://github.com/AnthonyBloomer/weather-api
Package: yahoo-display-api
&lt;div lang&#x3D;&quot;ja&quot;&gt;Yahoo!広告 ディスプレイ広告 APIのWebサービスについて説明します。&lt;/div&gt; &lt;div lang&#x3D;&quot;en&quot;&gt;Display Ads API Web Services supported in Yahoo! JAPAN Ads API.&lt;/div&gt; &lt;div&gt;&lt;a target&#x3D;&quot;_blank&quot; href&#x3D;&quot;https://github.com/yahoojp-marketing/ads-display-api-documents/blob/master/design/v6/Route.yaml&quot;&gt;OpenAPI Specification&lt;/a&gt;&lt;/div&gt; &lt;div lang&#x3D;&quot;ja&quot;&gt;&lt;a target&#x3D;&quot;_blank&quot; href&#x3D;&quot;https://github.com/yahoojp-marketing/ads-display-api-documents/blob/master/bestpractice/ja&quot;&gt;Best Practice&lt;/a&gt;&lt;/div&gt; &lt;div lang&#x3D;&quot;en&quot;&gt;&lt;a target&#x3D;&quot;_blank&quot; href&#x3D;&quot;https://github.com/yahoojp-marketing/ads-display-api-documents/blob/master/bestpractice/en&quot;&gt;Best Practice&lt;/a&gt;&lt;/div&gt;   # noqa: E501
Package: yahoo-display-test
&lt;div lang&#x3D;&quot;ja&quot;&gt;Yahoo!広告 ディスプレイ広告 APIのWebサービスについて説明します。&lt;/div&gt; &lt;div lang&#x3D;&quot;en&quot;&gt;Display Ads API Web Services supported in Yahoo! JAPAN Ads API.&lt;/div&gt; &lt;div&gt;&lt;a target&#x3D;&quot;_blank&quot; href&#x3D;&quot;https://github.com/yahoojp-marketing/ads-display-api-documents/blob/master/design/v12/Route.yaml&quot;&gt;OpenAPI Specification&lt;/a&gt;&lt;/div&gt; &lt;div lang&#x3D;&quot;ja&quot;&gt;&lt;a target&#x3D;&quot;_blank&quot; href&#x3D;&quot;https://github.com/yahoojp-marketing/ads-display-api-documents/blob/master/bestpractice/ja&quot;&gt;Best Practice&lt;/a&gt;&lt;/div&gt; &lt;div lang&#x3D;&quot;en&quot;&gt;&lt;a target&#x3D;&quot;_blank&quot; href&#x3D;&quot;https://github.com/yahoojp-marketing/ads-display-api-documents/blob/master/bestpractice/en&quot;&gt;Best Practice&lt;/a&gt;&lt;/div&gt;   # noqa: E501
Package: yahoo-earnings-calendar
Yahoo! Earnings Calendar ScraperScrapes Yahoo! Finance earnings calendar to get data for a specific date or a date range.InstallationPippipinstallyahoo_earnings_calendarUsageGet earnings date information on a specific date or in a date rangeimportdatetimefromyahoo_earnings_calendarimportYahooEarningsCalendardate_from=datetime.datetime.strptime('May 5 2017  10:00AM','%b%d%Y %I:%M%p')date_to=datetime.datetime.strptime('May 8 2017  1:00PM','%b%d%Y %I:%M%p')yec=YahooEarningsCalendar()print(yec.earnings_on(date_from))print(yec.earnings_between(date_from,date_to))Data attributescompanyshortname: Company Namee.g., 20160606ticker: Tickere.g., AAPLstartdatetime: Event Start Timee.g., 2017-04-23T21:00:00.000-04:00startdatetimetype: Event Start Time Typee.g., TAS (Time Not Supplied), AMC (After Market Close	)epsestimate: EPS Estimateepsactual: Reported EPSepssurprisepct: Surprise (%)gmtOffsetMilliSeconds: GMT Offset in MSGet the next earnings date of a specific symbolimportdatetimefromyahoo_earnings_calendarimportYahooEarningsCalendaryec=YahooEarningsCalendar()# Returns the next earnings date of BOX in Unix timestampprint(yec.get_next_earnings_date('box'))# 1508716800Get all the available earnings data of a specific symbolfromyahoo_earnings_calendarimportYahooEarningsCalendaryec=YahooEarningsCalendar()# Returns a list of all available earnings of BOXprint(yec.get_earnings_of('box'))Set delay between requestsBy default, requests are delayed by 1.8 sec to avoid exceeding the 2000/hour rate limit. You can override the default delay by passing an argument to theYahooEarningsCalendarconstructor.importdatetimefromyahoo_earnings_calendarimportYahooEarningsCalendarmy_custom_delay_s=0.5yec=YahooEarningsCalendar(my_custom_delay_s)
Package: yahoo-export
TODOData Loader:Get Data from the yahoo apiSplit accross seperate "Loaders" within MageExport Raw Json to SupabaseTransform Raw Json:Transform data from raw json to parsed jsonExport parsed jsonTransform Parsed Json:Transform parsed json to tabular formExport to public schemaProcessQuery yahoo apiDONETODO:Split across multiple "blocks" for each "live" api connection neededCould use multiple api keys to help with rate limiting and speedOnce queried, data should load to database immediatelyJsonb format in postgresqlyahoo_data.raw_jsonTransformation 1Convert data to "parsed_json"Upload to yahoo_data.parsed_jsonTransformation 2Convert to tabular formatUpload to yahoo_data.publicNeed to knowsHow to use the yahoo_api package created within Mage?Should I be using SQLAlchemy or could is suffice with psycopg (perferably v3, but can use v2 if needed)Should this be Async?Would multiple api calls/inserts affect ACID/locks?If so, probably should use ORM?
Package: yahoo-fantasy-api
Python bindings to the Yahoo! Fantasy APIBuild statusInstallationThis package can be installed via pip:pip install yahoo_fantasy_apior from the repo:git clone https://github.com/spilchen/yahoo_fantasy_api
cd yahoo_fantasy_api
python setup.py installDocumentationThe documentation are hosted at readthedocs.io:https://yahoo-fantasy-api.readthedocs.io/en/latest/Sample API UsageIn [1]: from yahoo_oauth import OAuth2

In [2]: import yahoo_fantasy_api as yfa

In [3]: sc = OAuth2(None, None, from_file='examples/oauth2.json')
[2019-04-04 20:55:46,745 DEBUG] [yahoo_oauth.yahoo_oauth.__init__] Checking
[2019-04-04 20:55:46,746 DEBUG] [yahoo_oauth.yahoo_oauth.token_is_valid] ELAPSED TIME : 416.15308594703674
[2019-04-04 20:55:46,746 DEBUG] [yahoo_oauth.yahoo_oauth.token_is_valid] TOKEN IS STILL VALID

In [4]: gm = yfa.Game(sc, 'mlb')

In [5]: gm.league_ids(year=2019)
Out[5]: ['388.l.27081']

In [6]: lg = gm.to_league('388.l.27081')

In [7]: lg.stat_categories()
Out[7]:
[{'display_name': 'R', 'position_type': 'B'},
 {'display_name': 'HR', 'position_type': 'B'},
 {'display_name': 'RBI', 'position_type': 'B'},
 {'display_name': 'SB', 'position_type': 'B'},
 {'display_name': 'AVG', 'position_type': 'B'},
 {'display_name': 'OBP', 'position_type': 'B'},
 {'display_name': 'W', 'position_type': 'P'},
 {'display_name': 'K', 'position_type': 'P'},
 {'display_name': 'HLD', 'position_type': 'P'},
 {'display_name': 'ERA', 'position_type': 'P'},
 {'display_name': 'WHIP', 'position_type': 'P'},
 {'display_name': 'NSV', 'position_type': 'P'}]

In [8]: lg.team_key()
Out[8]: '388.l.27081.t.5'

In [9]: lg.current_week()
Out[9]: 12

In [10]: lg.end_week()
Out[10]: 24

In [11]: lg.week_date_range(12)
Out[11]: (datetime.date(2019, 6, 17), datetime.date(2019, 6, 23))

In [12]: tm = lg.to_team('388.l.27081.t.5')

In [13]: tm.roster(1)
Out[13]:
[{'player_id': 8578,
  'name': 'Buster Posey',
  'position_type': 'B',
  'eligible_positions': ['C', '1B', 'Util'],
  'selected_position': 'C'},
 {'player_id': 8967,
  'name': 'Paul Goldschmidt',
  'position_type': 'B',
  'eligible_positions': ['1B', 'Util'],
  'selected_position': '1B'},
 {'player_id': 9961,
  'name': 'Travis Shaw',
  'position_type': 'B',
  'eligible_positions': ['1B', '2B', '3B', 'Util'],
  'selected_position': '2B'},
 {'player_id': 9105,
  'name': 'Nolan Arenado',
  'position_type': 'B',
  'eligible_positions': ['3B', 'Util'],
  'selected_position': '3B'},
 {'player_id': 9468,
  'name': 'Jonathan Villar',
  'position_type': 'B',
  'eligible_positions': ['2B', 'SS', 'Util'],
  'selected_position': 'SS'},
 ...
 {'player_id': 7847,
  'name': 'Andrew Miller',
  'position_type': 'P',
  'eligible_positions': ['RP'],
  'selected_position': 'RP'}]

In [14]: fa_CF = lg.free_agents('CF')

In [15]: len(fa_CF)
Out[15]: 60

In [11]: fa_CF[0]
Out[11]:
{'player_id': 8370,
 'name': 'Dexter Fowler',
 'position_type': 'B',
 'eligible_positions': ['CF', 'RF', 'Util']}
Package: yahoo_ff
Package to obtain financial fundamental data from yahoo.com/finance
webiste. Returns the balance sheet, income statement, cashflow, key
statistics, price and other infos.Requirements$pipinstall-rrequirements.txtInstallation$pipinstallyahoo_ffUsingA single stockfromyahoo_ff.yahoo_ffimportyahoo_ffaapl=yahoo_ff('aapl')will create an object from which several Pandas DataFrames of interest
can be extractedquarterlySECreports = aapl.sec_quarter
annualSECreports = aapl.sec_annual
keyStatsOfTheDay = aapl.stats
infoAboutCompany = aapl.info
priceOfTheDay = aapl.pricethis is an example for apple’s last 3 years of financial data (70 rows)