Saravanan666/pypi-org huggingface dataset:
Package: yfoptions-dl
yfoptions_dlyfoptions_dlis a Python library for downloading daily option chain data from yahoo finance. Data is retrieved using yahoo finance's API, then parsed into apandasdataframe.Installing yfoptions_dlThe easiest way to installyfoptions_dlis from Python Package Index usingpip:pip install yfoptions_dlExampleTo get all available data fields:aapl = optionChain('aapl')
  >>> aapl.data_header
['contractSymbol', 'strike', 'currency', 'lastPrice', 'change', 'percentChange', 'volume', 'openInterest', 'bid', 'ask', 'contractSize', 'expiration', 'lastTradeDate', 'impliedVolatility', 'inTheMoney']To get all available strikes for the front month options:>>> aapl.strikes
[57.5, 58.75, 60.0, 61.25, 62.5, 63.75, 65.0, 66.25, 67.5, 68.75, 70.0, .....]To get the entire call option chain:>>> aapl.calls
         contractSymbol  strike  ...                       date  type
0   AAPL200925C00057500   57.50  ... 2020-09-22 16:24:11.085367     C
1   AAPL200925C00058750   58.75  ... 2020-09-22 16:24:11.085367     C
2   AAPL200925C00060000   60.00  ... 2020-09-22 16:24:11.085367     C
3   AAPL200925C00061250   61.25  ... 2020-09-22 16:24:11.085367     C
4   AAPL200925C00062500   62.50  ... 2020-09-22 16:24:11.085367     C
..                  ...     ...  ...                        ...   ...
26  AAPL230120C00180000  180.00  ... 2020-09-22 16:24:15.772460     C
27  AAPL230120C00185000  185.00  ... 2020-09-22 16:24:15.772460     C
28  AAPL230120C00190000  190.00  ... 2020-09-22 16:24:15.772460     C
29  AAPL230120C00195000  195.00  ... 2020-09-22 16:24:15.772460     C
30  AAPL230120C00200000  200.00  ... 2020-09-22 16:24:15.772460     C

[2119 rows x 17 columns]To get hte entire put option chain:>>> a.puts
             contractSymbol  strike  ...                       date  type
    0   AAPL200925P00057500   57.50  ... 2020-09-22 16:24:11.107355     P
    1   AAPL200925P00058750   58.75  ... 2020-09-22 16:24:11.107355     P
    2   AAPL200925P00060000   60.00  ... 2020-09-22 16:24:11.107355     P
    3   AAPL200925P00061250   61.25  ... 2020-09-22 16:24:11.107355     P
    4   AAPL200925P00062500   62.50  ... 2020-09-22 16:24:11.107355     P
    ..                  ...     ...  ...                        ...   ...
    18  AAPL230120P00140000  140.00  ... 2020-09-22 16:24:15.782454     P
    19  AAPL230120P00150000  150.00  ... 2020-09-22 16:24:15.782454     P
    20  AAPL230120P00155000  155.00  ... 2020-09-22 16:24:15.782454     P
    21  AAPL230120P00160000  160.00  ... 2020-09-22 16:24:15.782454     P
    22  AAPL230120P00200000  200.00  ... 2020-09-22 16:24:15.782454     P

    [2016 rows x 17 columns]
Package: yfrake
YFrakeDescriptionYFrake is a fast and flexible stock market, forex and cryptocurrencies data scraper and server[note1].
It enables developers tobuild powerful appswithout having to worry about the details of session management or maximizing throughput[note2].YFrake has caching built in to speed up requests even more and to reduce load on the source servers.
The cache and other YFrake options are fully customizable through the configuration file.YFrake can be used as a client to directly return market data to the current program or
as aprogrammatically controllable serverto provide market data to other applications.In addition, all network requests by the client inbothsync and async modes arenon-blocking,
which means that your program can continue executing your code while network requests are in progress.The best part about YFrake is itsbuilt-in swagger API documentationwhich you can use to
perform test queries and examine the returned responses straight in your web browser.YFrake is built upon the widely usedaiohttppackage and its plugins.DocumentationThe tutorials and the reference manual is available at:yfrake.readthedocs.ioContributingYour suggestions on how to improve the library or the docs are welcome!Please open an issue with the appropriate label to share your ideas or report bugs.[note1]:Stock market data is sourced from Yahoo Finance.[note2]:The limits of YFrake are configurable and depend on the capabilities of your system.
Package: yfs
YFSYahoo Finance Scraper with a WYSIWYG approach.Want to scrape data from the summary page use the get_summary_page function. Want to scrape the summary pages of a list of symbols use the get_multiple_summary_pages function. The returned object can be serialized with .json, .dict,and depending on the object .dataframemethods. Each function can accept a proxy to help avoid rate limiting. In fact in the future you can installrequests-whaorANOTHER WORK IN PROGRESSwhich supplies a rotating proxy to bypass rate limits.Before you start please note adding historical data to this API is not a priority. At some point I will get around to it. My main focus are options, quote information and symbol lookup. So please do not raise issues about historical data.FeaturesCompany and Symbol lookupSummary PageOption ChainsStatistics Page>> To the documentation.Quick StartPrereqsPython ^3.8Install with pippip install yfsInstall withpoetrypoetry add yfsHow to scrape multiple summary pages from yahoo finance.fromyfsimportget_multiple_summary_pagessearch_items=["Apple","tsla","Microsoft","AMZN"]summary_results=get_multiple_summary_pages(search_items)forpageinsummary_results:print(page.json(indent=4))break# To shorten up the quick-start output.COLUMNS=["close","change","percent_change","average_volume","market_cap","earnings_date",]print(summary_results.dataframe[COLUMNS])Output➜python3quick_start_example.pyDownloadingSummaryData...100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████|4/4[00:03<00:00,1.19symbols/s]{"symbol":"AAPL","name":"Apple Inc.","quote":{"name":"Apple Inc.","close":113.02,"change":-3.77,"percent_change":-3.23},"open":112.89,"high":112.22,"low":115.37,"close":113.02,"change":-3.77,"percent_change":-3.23,"previous_close":116.79,"bid_price":112.58,"bid_size":800,"ask_price":112.77,"ask_size":3000,"fifty_two_week_low":137.98,"fifty_two_week_high":53.15,"volume":144711986,"average_volume":172065562,"market_cap":1933000000000,"beta_five_year_monthly":1.28,"pe_ratio_ttm":34.29,"eps_ttm":3.3,"earnings_date":"2020-10-28","forward_dividend_yield":0.82,"forward_dividend_yield_percentage":0.7,"exdividend_date":"2020-08-07","one_year_target_est":119.24}closechangepercent_changeaverage_volumemarket_capearnings_datesymbolAAPL113.02-3.77-3.2317206556219330000000002020-10-28AMZN3125.00-96.26-2.99507169215650000000002020-10-29MSFT206.19-6.27-2.953484489315600000000002020-10-21TSLA415.09-33.07-7.38805740893867850000002020-10-21Next stepfuzzy search examplesTODOMore testingMore DocsMore examplesWHAORExampleProfile PageFinancials PageAnalysis PageHolders pageSustainability PageHistorical PageChart PageConversations Page maybe ¯_(ツ)_/¯Contact InformationTelegram = Twitter = Tradingview = Discord = @dgnsrektEmail =dgnsrekt@pm.me
Package: ygetter
This is a simple module which allows you to get information about one or multiple youtube videos.You can finish multiple of urls by saying:finish(['URL', 'URL'])But you can also just finish one by saying:finish('URL')you can also get each piece of info by calling either:print(likes(url))
print(views(url))
print(subs(url))
print(dislikes(url))
print(creator(url))
print(is_private(url))
print(average_rating(url))
Package: yggdrasilctl
This library provides a wrapper for Yggdrasil Admin API.Installationfor Linuxpip3 install yggdrasilctlfor Windowspip install yggdrasilctlUsagesync versionfrompprintimportpprintfromyggdrasilctl.syncimportAdminAPI,APIErrorapi=AdminAPI()#unless otherwise specified it will connects to localhost:9001try:info=api.getSelf()exceptAPIErrorase:print(e)else:pprint(info)async versionimportasynciofrompprintimportpprintfromyggdrasilctlimportAdminAPI,APIErrorasyncdefmain():api=AdminAPI()try:info=awaitapi.getSelf()exceptAPIErrorase:print(e)else:pprint(info)loop=asyncio.get_event_loop()loop.run_until_complete(main())Detailed description of API methodsFor details seedocumentationof Admin API.LinksYggdrasilprojectThis library onPyPI
Package: yggdrasil-framework
yggdrasil, originally created as a framework for the Crops in Silico (CiS)
project, provides support for combining scientific models
written in different programming languages. To combine two models,
modelers add simple communications interfaces to the model code and
provide simple declarative specification files that identify the models
that should be run and the inputs and outputs those models expect.The system uses the specification files to configure the communications
channels and expose them to the models. The complexity of the particular
communications system is managed by the framework, which performs
communication setup, binds the communications to simple interfaces
within the models, and manages execution of the models. The complexities
of model registration and discovery, as well as the complexities of
setup and management of the communications system are handled
under-the-hood by the framework under direction of the model
specification, freeing the domain scientist from implementing
communications protocols or translating models to the same programming
language.Please refer to the packagedocumentationfor
additional information about the package and directions for installing
it.Noteyggdrasil was previously known as cis_interface. While cis_interface
can be installed from PyPIhere,
cis_interface will no longer be updated.If you use yggdrasil in your research, please cite the accompanying paper:Meagan Lang, yggdrasil: a Python package for integrating computational models
across languages and scales, in silico Plants, Volume 1, Issue 1, 2019, diz001,https://doi.org/10.1093/insilicoplants/diz001
Package: yggdrasil-mc
yggdrasil-mcA simple Python lib to get player info and texture from Mojang and Yggdrasil APIs.一个简单的 Python 库，可从 Mojang 和 Yggdrasil APIs 获取玩家的信息和材质。AttentionThis package can be used withPython 3.10+ ONLY.Usagepip3installyggdrasil-mcfromyggdrasil_mc.clientimportYggdrasilMCygg=YggdrasilMC()awaitygg.by_name_async("SerinaNya")
Package: ygka
YGKA 🤖YGKA is an advanced ChatGPT client for shell that acts as Your Genius Knowledgeable Assistant. YGKA supports Unix/Linux pipelines and requires no setting up of tokens or API keys. Furthermore, if you want to use an OpenAI API key, you can easily configure it.Key Features 💡Supports Unix/Linux pipelinesReady to use without setting up tokens or API keysPrerequisites 📚Python 3.9+ChatGPT Account (or OpenAI Account)Getting Started 🚀To begin using YGKA, install it with pip:pipinstallygkaOnce you've installed YGKA, you can start using it right away, like following.To execute a command, use the following syntax:ygka"<your command here>"For example, to ask "hello?" using YGKA, you can use the following command:ygka"hello?"You can also use YGKA with Unix pipeline. For example, to ask "what is this file?" while viewing the contents of a text file, you can use the following command:cattextfile.txt|ygka"what is this file?"Advanced Settings 🛠By default,YGKAis configured to use the reverse-engineered ChatGPT client and retrieve login information from your browser, so you don't need to configure anything to useYGKA. However, for those who want to use different models with an OpenAI API Key, you can configure it as follows:Create an account on OpenAI.Go tohttps://platform.openai.com/account/api-keysand copy your API key.Modify or create the~/.ygka_config.jsonfile as follows:{..."language_model":<languagemodelofyourpreference>,//"official_chatgpt""openai_api_key":<yourOpenAIAPIkey>}Here, you can specify the language model of your preference and add your OpenAI API key.Inspired By 🎨YeonGyu Kim: My name. The project is named after me.AiShell: A Natural Language Shell Powered by ChatGPT, is a brother project of YGKA that provides a similar functionality.loz: A nodejs version of a GPT3 client that does similar things as YGKA.Contributions 💬Feel free to contribute to YGKA by adding more functionality or fixing bugs.
Package: ygl
Ygl, developed by Fred Hucht, emulates a significant subset of SGI’sIRIS GLon X11.  IRIS GL was a precursor to OpenGL. Ygl is an easy to
use library.  This package provides a ctypes-based, Python wrapper forYgl.  It also provides a convenient and rather simple plotting
interface.It is perhaps a lot more convenient to use OpenGL viaPyOpenGL,
however, I am providing this wrapper for legacy support for applications
that have used Ygl.  I used to provide aSWIGbased wrapper but a
ctypes based wrapper is a lot easier to build and install.InstallationYou will require to have Ygl installed.  Under Debian/Ubuntu, this is
easily done by installing libygl4 like so:$ sudo apt-get install libygl4If you are not on Debian or Ubuntu you would need to install Ygl from
the sources downloadable from theYglwebpage.To install the wrapper you should be able to simply do:$ easy_install yglExamplesThere are a few sample examples in the examples directory of the source
package.  These should show you how to use both theyglmodule and theyplotmodule.  A simple example of how to useyplotis inexamples/plot.py.
Package: yg.lockfile
A FileLock class that implements a context manager with timeouts on top ofzc.lockfile, an excellent, cross-platorm implementation of file locking.LicenseLicense is indicated in the project metadata (typically one or more
of the Trove classifiers). For more details, seethis explanation.UsageExample usage:import yg.lockfile
try:
    with yg.lockfile.FileLock('/tmp/lockfile', timeout=900):
            protected_operation()
except yg.lockfile.FileLockTimeout:
    handle_unable_to_lock()
Package: yglu
title: yglu ReadMeYglu ᕄ !?* Try Yglu Online *Yglu isYAMLaugmented with an advanced expression language. Unlike usual text templating, Yglu relies on the YAML structure and leverages its tag system combined with theYAQLquery language.This association enables templating and functional processing a bit like if YAML nodes were spreadsheet cells.Yglu input documents are pure and valid YAML usingtagsfor computed nodes.inputa: 1
b: !? .a + 1
!if .b = 2:
  c: 3outputa: 1
b: 2
c: 3inputnames: !-
  - 'nginx:1.16'
  - 'node:13.6'
  - 'couchbase:9.3'
image: !()
  !? $.split(':')[0]:
    version: !? $.split(':')[1]
images: !?
  $_.names
    .select(($_.image)($))
    .aggregate($1.mergeWith($2), {})outputimages:
  nginx:
    version: '1.16'
  node:
    version: '13.6'
  couchbase:
    version: '9.3'In the example above, thenamessequence is hidden,imageis a function (like a template block) andimagesis an expression which iterates through all names, applies the image function to each one and aggregates the individual results by merging them together as a mapping.As such an operation is often needed, Yglu provides a!fortag for merging a sequence iterated over a function:inputnames: !-
  - 'nginx:1.16'
  - 'node:13.6'
  - 'couchbase:9.3'
images:
  !for .names: !()
    !? $.split(':')[0]:
      version: !? $.split(':')[1]outputimages:
  nginx:
    version: '1.16'
  node:
    version: '13.6'
  couchbase:
    version: '9.3'See the testsamplesfor more examples.* Try Yglu Online *Installpip3 install ygluRunUsage: yglu [options] [<filename>]

Options:
  -v - -version          Print version and exit.
  -h - -help             Print help and exit.TagsTags specify an alteration of the document structure.TagDescription!?Evaluate an expression. The result can be a scalar, mapping or sequence. Can also be used in mapping keys.!-Hide the node in the output but keep it accessible from expressions. Can be an expression.!()Make the node reusable in expressions as a function.!ifConditional merge. Seeif.yml.!forMerge the results of a function applied to all items of a sequence . Seefor.yml.!applyApply a function or function block to a block. Seefunction.yml.ExpressionsExpressions are written inYAQL.They are evaluated in a context with the following variables defined:VariableDescription$_Refers to the current document root. Can be omitted at the beginning of the expression if it starts with a dot.$Implicit argument of functions.$envGives access to environment variables. Disabled by default. Set the$YGLU_ENABLE_ENVenvironment variable to enable this feature.$thisRefers to the current function block node in order to access its children nodes. Seefunction.ymlBuilt-in FunctionsIn addition to thestandard YAQL library, Yglu defines the following functions:FunctionDescription$import(filename)Imports another document in the current node. By default, it is only permitted to import files from within the directory hierarchy of the input file. Set$YGLU_IMPORT_ALLOWto a list of permitted directories.
Package: ygModbus
Modbus TCP simulator-set config in register_params.jsonex){"40001":{"max_int":300, "min_int":100, "address":40001},"40002":{"max_int":300, "min_int":20, "address":40002},"40004":{"max_int":300, "min_int":20, "address":40004}}start simulating server by 'ygModbus-runserver'ctrl+c for terminate serverygModBus-runserver args:('-H', '--host', type=str, default='127.0.0.1', help='Host (default: 127.0.0.1)')('-p', '--port', type=int, default=502, help='TCP port (default: 502)')('-j', '--json', type=str, default='register_params.json', help='JSON file with register parameters (default: register_params.json)')('-i', '--interval', type=float, default=1.0, help='Interval in seconds for updating holding registers (default: 1.0)')get response from server by 'ygModbus-request'ygModbus-request args:('-H', '--host', type=str, default='127.0.0.1', help='Host (default: 127.0.0.1)')
('-p', '--port', type=int, default=502, help='TCP port (default: 502)')
('-n', '--number', type=int, default=1, help='Number of holding registers (default: 1)')
('-s', '--start', type=int, default=40001, help='Starting register address (default: 40001)')
Package: ygorganization-api
AboutThis is a Python interface tothe YGOrganization database, which provides up-to-date information on cards inthe Yu-Gi-Oh! Trading Card Game.For request paths and further information, please seethe API documentation.Usageimport ygorganizationasyncygorganization.Query(path)- Queries path, resolves with JSON objectasyncygorganization.GetCardData(id)- shorthand forQuery('/data/card/%d'%id)asyncygorganization.GetQAData(id)- shorthand forQuery('/data/qa/%d'%id)
Package: yg.thumpy
Meet ThumpyThumpy is a Python web service that crops and scales images.  It doesn’t store
anything.  It’s meant to be used as an origin server sitting behind a CDN such
as Amazon CloudFront.Yg.thumpy is the YouGov fork of Thumpy.ConfigurationSettings are stored in the settings.yaml file. They should include:
- the name and access keys to your S3 bucket
- compression quality (e.g. 80)
- list of CORS allowed hostsInterfaceThumpy serves images using the same paths as their storage location on S3.
Conversion parameters are specified in the query string, using an interface
inspired byTimThumb.examples:ScalingScale the width to 200px, and the height proportionally:http://mythumpyserver.somewhere/castle.jpg?w=200Scale the height to 150px, and the width propotionally:http://mythumpyserver.somewhere/castle.jpg?w=200Specify both height and width:http://mythumpyserver.somewhere/castle.jpg?w=200&h=150Scaling (Post processing)Same as Scaling (above) but applied to the output image after all transformationshttp://mythumpyserver.somewhere/castle.jpg?pw=200&ph=150CroppingCrop the width to 200 and the height to 100:http://mythumpyserver.somewhere/castle.jpg?cw=200&ch=100Crop the width and height to 50:http://mythumpyserver.somewhere/castle.jpg?cw=50&ch=50Thumpy will always scale first before any cropping.Thumpy always crops from the center of the image.Reveal Mask / Zoom CroppingMinimum 3 parameters required:
- Top offset (e.g. zct=100px)
- Left offset (e.g. zcl=100px)
- Width or Height of the output crop from the offsets. If only one is provided the other will automatically be assigned the other’s value.The mask should be applied to the original image which means there is no scaling but only masking.See: Scaling (Post processing) to get the scaled mask/crop.Get 100px x 50px scaled crop off a larger image with a reveal mask of 350px x 175px applied at 20px x 10px top-left offset.http://mythumpyserver.somewhere/castle.jpg?zcw=350&zch=175&zct=20&zcl=10&pw=100&ph=50GreyscaleExample of a greyscale image with no resizing::http://mythumpyserver.somewhere/castle.jpg?gray=1Cloudfront UglinessIf the “cloudfront_ugliness” option in thumpy’s config is set to true, then the image modification parameters will be pulled from the first segment of the path instead of the URL query string.This is to workaround Amazon Cloudfront dropping the URL query string when making requests to your origin server.  Example:http://mycloudfrontdist.somewhere/w=100/path/to/image/castle.jpgFor the original, unaltered image, place an “o” where the query string would go, like this:http://mycloudfrontdist.somewhere/o/path/to/image/castle.jpg
Package: yhnews
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.Description: news for event clusteringPlatform: any
Package: yhttp-auth
yhttp-authAuthentication extension foryhttp.Installpipinstallyhttp-ponyUsagefromyhttpimportApplicationfromyhttp.ext.authimportinstallasauth_installapp=Application()auth=auth_install(app)app.settings.merge(f'''auth:redis:host: localhostport: 6379db: 0token:algorithm: HS256secret: foobarrefresh:key: yhttp-refresh-tokenalgorithm: HS256secret: quxquuxsecure: truehttponly: truemaxage: 2592000  # 1 Monthdomain: example.com''')@app.route('/reftokens')@yhttp.statuscode(yhttp.statuses.created)defcreate(req):app.auth.set_refreshtoken(req,'alice',dict(baz='qux'))@app.route('/tokens')@yhttp.statuscode(yhttp.statuses.created)@yhttp.textdefrefresh(req):reftoken=app.auth.verify_refreshtoken(req)returnapp.auth.dump_from_refreshtoken(reftoken,dict(foo='bar'))@app.route('/admin')@auth(roles='admin, god')@yhttp.textdefget(req):returnreq.identity.rolesapp.ready()Command line interfacesetup.pysetup(...entry_points={'console_scripts':['myapp = myapp:app.climain']},...)myappauth--help
Package: yhttp-pony
yhttp-ponyPony ORM extension foryhttp.Installsudoaptinstallpython3-devlibpq-devpostgresql# Postgresqlpipinstallyhttp-ponyUsageThis is how to use the extension.fromyhttpimportAppliation,jsonfromyhttp.extimportponyasponyextfrompony.ormimportdb_sessionasdbsession,PrimaryKey,Requiredapp=Application()app.settings.merge('''db:url: postgres://postgres:postgres@localhost/foo''')db=ponyext.install(app)classFoo(db.Entity):id=PrimaryKey(int,auto=True)title=Required(str)@app.route()@json@dbsessiondefget(req):return{f.id:f.titleforfinFoo.select()}app.ready()Command line interfaceThere is some command line interfaces which will be automatically added to
your application when you callponyext.install(app).myappdbcreate
myappdbdropExtending db sub-commandimporteasyclifromyhttp.ext.ponyimportinitialize,deinitializefrommypackageimportapp# yhttp applicationclassInsertMockup(easycli.SubCommand):__command__='insert-mockup-data'def__call__(self,args):initialize(app.db,app.settings.db)...deinitialize(app.db)...db=install(app,cliarguments=[InsertMockup])Use it as:myappdbinsert-mockup-dataRunning testsecho"ALTER USER postgres PASSWORD 'postgres'"|sudo-upostgrespsql
maketestmakecover