Saravanan666/pypi-org huggingface dataset:
Package: google_embed
Google-EmbedGoogle-Embed is aPelicanplugin providing restucturedText directives to allow
easy embedding of Google+ (for example a public post or album) and Google Maps.Live examplescan also be viewed from a Pelican-built website.FeaturesEmbed Google+ posts within a page or blog post easily, simply by specifying the URL of
the post.Google Maps can also be embedded by specifying:A placeA search termDirections with optional waypointsFurthermore, a static image from Google Maps or Google Streetview can also
be embedded.InstallationGoogle-Embed can be installed usingpip$pipinstallgoogle-embedor manually from the source code$pythonsetup.pyinstallOnce installed, simply add it to yourpelicanconf.pyconfiguration file:PLUGINS=[# ...'google_embed']NoteWhilst not required, it is recommended that you sign up for anAPI key. This can be
entered in yourpelicanconf.pyfile after loading the
google_embed plugin like so:GMAPS_KEY='AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'UsageGoogle+To embed a public Google+ post, you just need the permalink to
the post:..gplus::PERMALINKEmbed Google MapsTo embed a Google Map object:..gmaps::location:mode:placewherelocationin this case is a name of a specific place. Note that:mode:is arequiredoption, and can take the valueplaceorsearch.
If insearchmode, the value oflocationcan be a more generic phrase,
such asMexican Restraunts near Fake St- the result will be displayed on
the map with markers.Other options include::align:-left,right, orcenter:maptype:-roadmaporsatelite:width::height:Embed Google Map DirectionsTo embed Google Map directions:..directions:::mode:walking:origin:Tower of London:destination:Westminster AbbeyRequired options::mode:-driving,walking,bicycling,transit,flying:origin::destination:Other options include::align:-left,right, orcenter:maptype:-roadmaporsatelite:waypoints:- points to stop along the way. Should be entered likeBerlin+Germany|Paris+France:width::height:Embed Google Map as an Image..static-map::The queens larderOther options include::align:-left,right, orcenter:maptype:-roadmap,satelite,hybrid,terrain:markers:- places markers on the map:zoom:- default is12:width::height:When using markers, styles come before locations. For numerous markers of the same style,..static-map::The queens larder:markers:color:blue The+British+Museum Lamb+BarFor markers of different styles, these should be separated with a&:..static-map::The queens larder:markers:color:blue label:A The+British+Museum & color:red label:B Lamb+BarNote that marker locations use+to seprate words,notspaces.Embed Streetview as an Image..streetview::Paragon, Orchard RdOther options include::align:-left,right, orcenter:width::height:
Package: google-endpoints
Google Cloud Endpoints is a solution for creating RESTful web APIs.InstallationInstall using pip, as recommended perApp Engine vendoring[sudo]pipinstall-tlib--ignore-installedgoogle-endpointsPython Versionsgoogle-endpoints is currently tested with Python 2.7.ContributingContributions to this library are always welcome and highly encouraged.See theCONTRIBUTINGdocumentation for more information on how to get started.VersioningThis library followsSemantic VersioningDetailsFor detailed documentation of google-endpoints, please see theCloud Endpoints Documentation.LicenseApache - SeeLICENSEfor more information.
Package: google-endpoints-api-management
Google Endpoints API Management manages the ‘control plane’ of an API by
providing support for authentication, billing, monitoring and quota control.It achieves this byallowing HTTP servers to control access to their APIs using the Google Service Management and Google Service Control APIsproviding built-in, standards-compliant support for third-party authenticationdoing this with minimal performance impact via the use of advanced caching and aggregation algorithmsmaking this easy to integrate via a set ofWSGImiddlewareExample:>>>application=MyWsgiApp()# an existing WSGI application>>>>>># the name of the controlled service>>>service_name='my-service-name'>>>>>># The Id of a Google Cloud project with the Service Control and Service Management>>># APIs enabled>>>project_id='my-project-id'>>>>>># wrap the app for service control>>>fromendpoints_management.controlimportclient,wsgi>>>control_client=client.Loaders.DEFAULT.load(service_name)>>>control_client.start()>>>controlled_app=wsgi.add_all(application,project_id,control_client)>>>>>># now use the controlled in place of application>>>my_server.serve(controlled_app)InstallationInstall usingpip[sudo]pipinstallgoogle-endpoints-api-managementPython Versionsendpoints-management-python is currently tested with Python 2.7.ContributingContributions to this library are always welcome and highly encouraged.See theCONTRIBUTING documentationfor more information on how to get started.VersioningThis library followsSemantic VersioningDetailsFor detailed documentation of the modules in endpoints-management-python, please watchDOCUMENTATION.LicenseApache - Seethe full LICENSEfor more information.
Package: google-endpoints-api-management-tbafork
Google Endpoints API Management manages the ‘control plane’ of an API by
providing support for authentication, billing, monitoring and quota control.It achieves this byallowing HTTP servers to control access to their APIs using the Google Service Management and Google Service Control APIsproviding built-in, standards-compliant support for third-party authenticationdoing this with minimal performance impact via the use of advanced caching and aggregation algorithmsmaking this easy to integrate via a set ofWSGImiddlewareExample:>>>application=MyWsgiApp()# an existing WSGI application>>>>>># the name of the controlled service>>>service_name='my-service-name'>>>>>># The Id of a Google Cloud project with the Service Control and Service Management>>># APIs enabled>>>project_id='my-project-id'>>>>>># wrap the app for service control>>>fromendpoints_management.controlimportclient,wsgi>>>control_client=client.Loaders.DEFAULT.load(service_name)>>>control_client.start()>>>controlled_app=wsgi.add_all(application,project_id,control_client)>>>>>># now use the controlled in place of application>>>my_server.serve(controlled_app)InstallationInstall usingpip[sudo]pipinstallgoogle-endpoints-api-managementPython Versionsendpoints-management-python is currently tested with Python 2.7.ContributingContributions to this library are always welcome and highly encouraged.See theCONTRIBUTING documentationfor more information on how to get started.VersioningThis library followsSemantic VersioningDetailsFor detailed documentation of the modules in endpoints-management-python, please watchDOCUMENTATION.LicenseApache - Seethe full LICENSEfor more information.
Package: google-env
Google EnvA simple utility which pulls development-time values from a Google spreadsheet. This
allows you to share dev secrets in a semi-secure way.UsageYou need an Oauth credentials JSON file. One person needs to register an
Oauth app in the Google Console and then download the credentials JSON file.
Place this file in$HOME/google_env_creds.json.Now create a.envfile in your code project. Reference the spreadsheet
which contains your secrets at the top of the file:.env:# GOOGLE_ENV: https://docs.google.com/spreadsheets/d/17fcDBp5tez9JFtRwucDW5-wq3jgmzq8s-oWcnUljyR0!Sheet1Note that the sheet name should be after the '!' at the end.Install thegoogle_envpackage:pip install google_envNow run thegoogle_envscript directory containing your .env file$ google_envThe first time you run it you will be sent through the Google Oauth flow in the browser.
Your access key to the spreadsheet will then be cached in a local file in~/.google_env_token.Now the contents of your spreadsheet are downloaded and inserted into the.envfile. Your spreadsheet should have 2 columns, the key and the value, with no header.So if your sheet looks like this:AB1key1mysecretkey12AWS_ACCESSfoobarThen the resulting .env file will be rewritten as:# GOOGLE_ENV: https://docs.google.com/spreadsheets/d/17fcDBp5tez9JFtRwucDW5-wq3jgmzq8s-oWcnUljyR0
key1=mysecretkey1
AWS_ACCESS=foobar
# END_GOOGLE_ENVNote that you should leave the closing comment line. This will allow you to
re-rungoogle_envany time to update keys from the spreadsheet.If you need to override any values, simply add a second assignment for that
key lower down in your.envfile.Doing other things with Google SheetsThis package can be used to easily retrieve information from any Google Sheet.> import google_env
 > for row in google_env.read_sheet(sheet_id, sheet_range):
       # row will be an array of column values for each row in the sheet
       print(row)Wheresheet_idis like1mhs7mW7dBK_lhNYB4hZFwdF1QXWSEzl6ITsY50DGx9Mandsheet_rangeis a Sheets range like<name>!<range spec>likeSheet1!A1:G20.
Package: google-events
Google CloudEvents - PythonThis library provides classes of common event types used with Google services,
as defined in theGoogle Cloudevents repository.Installation and UsageNote: This library requires Python 3.7+.To install this package, runpipinstall--upgradegoogle-eventsTo use an event class, see the snippet below:fromgoogle.events.cloudimportstorage# Parses a json string containing an event payload# The json payload may be from an HTTP request received by a Cloud Run# service with event triggers.defhandle_event_trigger(json_payload):event=storage.StorageObjectData.from_json(json_payload)print(f"{event.bucket}/{event.name}had event")return"OK"
Package: google-fhir
Google FhirProtoIntroductionThis is the Python3 distribution for GoogleFhirProto.FhirProto is Google's implementation of theFHIR Standardfor Health Care data usingProtocol Buffers.  By leveraging Google’s core data storage format, FhirProto provides a type-safe, strongly validated FHIR format with cross-language support at a fraction of the size on disk, making it a great data model to develop your Health Care application on.  Structured Codes and Extensions guarantee that your data will be in the correct format.  Support for generating and validating against custom Implementation Guides allow you to customize FhirProto to your dataset and requirements.  Parsing and Printing libraries make it easy to go back and forth between FhirProto format and JSON.Getting StartedInstallationYou can install the Python3 distribution of FhirProto with for use with Python interpreters >=3.6, <3.9 using thepippackage manager. We strongly recommend installing into a Python3 virtual environment, such asvenv:python3-mvenvfhirsourcefhir/bin/activate

pipinstall--upgradesetuptools
pipinstallgoogle-fhirExamples and DocumentationWe think the best way to get an idea of how FhirProto works is to get in and start playing with it.  To that end, we providehttps://github.com/google/fhir-examples. This repo contains a script for usingSyntheato create a synthetic FHIR JSON dataset, and then shows some examples of parsing, printing, validating, profiling and querying.  The repo also contains awalkthroughof many of the examples.A Reference User Guide with in-depth descriptions of different concepts can be foundhere.TrademarkFHIR® is the registered trademark of HL7 and is used with the permission of HL7. Use of the FHIR trademark does not constitute endorsement of this product by HL7.
Package: googlefinance
Python module to get stock data from Google Finance APIThis module providesno delay,real timestock data in NYSE &
NASDAQ.Another awesome module,yahoo-finance’s
data is delayed by 15 min, but it provides convenient apis to fetch
historical day-by-day stock data.InstallFrom PyPI with pip:$pip install googlefinanceFrom development repo (requires git)$git clone https://github.com/hongtaocai/googlefinance.git
$cd googlefinance
$python setup.py installUsage example>>> from googlefinance import getQuotes
>>> import json
>>> print json.dumps(getQuotes('AAPL'), indent=2)
[
  {
    "Index": "NASDAQ",
    "LastTradeWithCurrency": "129.09",
    "LastTradeDateTime": "2015-03-02T16:04:29Z",
    "LastTradePrice": "129.09",
    "Yield": "1.46",
    "LastTradeTime": "4:04PM EST",
    "LastTradeDateTimeLong": "Mar 2, 4:04PM EST",
    "Dividend": "0.47",
    "StockSymbol": "AAPL",
    "ID": "22144"
  }
]
>>> print json.dumps(getQuotes(['AAPL', 'VIE:BKS']), indent=2)
[
  {
    "Index": "NASDAQ",
    "LastTradeWithCurrency": "129.36",
    "LastTradeDateTime": "2015-03-03T16:02:36Z",
    "LastTradePrice": "129.36",
    "LastTradeTime": "4:02PM EST",
    "LastTradeDateTimeLong": "Mar 3, 4:02PM EST",
    "StockSymbol": "AAPL",
    "ID": "22144"
  },
  {
    "Index": "VIE",
    "LastTradeWithCurrency": "17.10",
    "LastTradeDateTime": "2015-03-03T13:30:30Z",
    "LastTradePrice": "17.10",
    "LastTradeTime": "1:30PM GMT+1",
    "LastTradeDateTimeLong": "Mar 3, 1:30PM GMT+1",
    "StockSymbol": "BKS",
    "ID": "978541942832888"
  }
]
Package: googlefinance.client
googlefinance.client is a python client library for google finance apiInstallation$ pip install googlefinance.clientUsagefromgooglefinance.clientimportget_price_data,get_prices_data,get_prices_time_data# Dow Jonesparam={'q':".DJI",# Stock symbol (ex: "AAPL")'i':"86400",# Interval size in seconds ("86400" = 1 day intervals)'x':"INDEXDJX",# Stock exchange symbol on which stock is traded (ex: "NASD")'p':"1Y"# Period (Ex: "1Y" = 1 year)}# get price data (return pandas dataframe)df=get_price_data(param)print(df)#                          Open      High       Low     Close     Volume# 2016-05-17 05:00:00  17531.76   17755.8  17531.76  17710.71   88436105# 2016-05-18 05:00:00  17701.46  17701.46  17469.92  17529.98  103253947# 2016-05-19 05:00:00  17501.28  17636.22  17418.21  17526.62   79038923# 2016-05-20 05:00:00  17514.16  17514.16  17331.07   17435.4   95531058# 2016-05-21 05:00:00  17437.32  17571.75  17437.32  17500.94  111992332# ...                       ...       ...       ...       ...        ...params=[# Dow Jones{'q':".DJI",'x':"INDEXDJX",},# NYSE COMPOSITE (DJ){'q':"NYA",'x':"INDEXNYSEGIS",},# S&P 500{'q':".INX",'x':"INDEXSP",}]period="1Y"# get open, high, low, close, volume data (return pandas dataframe)df=get_prices_data(params,period)print(df)#            .DJI_Open  .DJI_High  .DJI_Low  .DJI_Close  .DJI_Volume  \# 2016-07-20   18503.12   18562.53  18495.11    18559.01    85840786# 2016-07-21   18582.70   18622.01  18555.65    18595.03    93233337# 2016-07-22   18589.96   18590.44  18469.67    18517.23    86803016# 2016-07-23   18524.15   18571.30  18491.59    18570.85    87706622# 2016-07-26   18554.49   18555.69  18452.62    18493.06    76807470# ...               ...        ...       ...         ...         ...params=[# Dow Jones{'q':".DJI",'x':"INDEXDJX",},# NYSE COMPOSITE (DJ){'q':"NYA",'x':"INDEXNYSEGIS",},# S&P 500{'q':".INX",'x':"INDEXSP",}]period="1Y"interval=60*30# 30 minutes# get open, high, low, close, volume time data (return pandas dataframe)df=get_prices_time_data(params,period,interval)print(df)#                      .DJI_Open  .DJI_High  .DJI_Low  .DJI_Close  .DJI_Volume  \# 2016-07-19 23:00:00   18503.12   18542.13  18495.11    18522.47            0# 2016-07-19 23:30:00   18522.44   18553.30  18509.25    18546.27            0# 2016-07-20 00:00:00   18546.20   18549.59  18519.77    18539.93            0# 2016-07-20 00:30:00   18540.24   18549.80  18526.99    18534.18            0# 2016-07-20 01:00:00   18534.05   18540.38  18507.34    18516.41            0# ...                        ...        ...       ...         ...          ...ContributingFork itCreate your feature branch (git checkout-bmy-new-feature)Commit your changes (git commit-am'Add some feature')Push to the branch (git push originmy-new-feature)Create new Pull Request
Package: googlefinance.get
Google Finance GETGetting the Financial data From Google FinanceInstallationBased on :https://github.com/pdevty/googlefinance-client-python$pipinstallgooglefinance.get$pipinstall-ihttps://pypi.python.org/pypigooglefinance.getGetting CodesDefault Setting is KRX Market’s Info (South Korea Market)>>>fromgooglefinance.getimportget_code>>>get_code()>>>get_code('NASDAQ')>>>get_code('NYSE')NASDAQ&NYSEis from the Nasdaq site’s CSVdownload.Getting Historical Financial DataGetting the Only Single Company’s Historical Financial Datacode = ‘NASDAQ: code list’period = ‘30d’: 30 days (default), ‘1M’ : Month , ‘1Y’ : yearinterval = 86400 : 1 day (default), 60 * integer  (seconds)>>>fromgooglefinance.getimportget_datum>>>df=get_datum('KRX:005930',period='2M'，interval=86400)dateOpenHighLowCloseVolume2018-05-0453000.053900.051800.051900.0392903052018-05-0852600.053200.051900.052600.0229078232018-05-0952600.052800.050900.050900.015914664Getting Historical Financial DataInsert the Code & Concat the DataFrame>>>fromgooglefinance.getimportget_data>>>codes=['KRX:005930','KOSDAQ:091990','NASDAQ:TSLA','NASDAQ:AMZN']>>>df=get_data(codes,period='2M'，interval=86400)dateCodeOpenHighLowCloseVolume2018-05-04KRX:00593053000.053900.051800.051900.0392903052018-05-08KRX:00593052600.053200.051900.052600.0229078232018-05-09KRX:00593052600.052800.050900.050900.015914664© 2018 GitHub :https://github.com/YongBeomKim
Package: google-flight-scraper
google-flight-scraperA library to scrape and analyze Google Flight dataInstallingClone the repository into your local drive. This project was developed withPoetryas the dependency manager. Simply runpoetry installin the cloned directory to install the required dependencies.Using the libraryQuickstartFirst define our travel plans:fromgoogle_flight_scraper.queryimportTravelPlan,FlightQueryseattle_vacation=TravelPlan(origin="SFO",destination="SEA",departure_dates=[f"2023-10-{day}"fordayinrange(2,12)],num_adults=2,num_children=1)queries=FlightQuery.from_travel_plans(seattle_vacation)This will set up the library to search for all one-way flights from San Francisco to Seattle/Tacoma between October 2, 2023 and October 12, 2023. Pass the travel plans intoFlightQueryfor it to construct all the pertinent queries. Any number of travel plans can be provided.Lastly, we define the webdriver we'd like to use to scrape. ADriverclass is provided for easily switching between different browsers and their associated webdrivers.fromseleniumimportwebdriverfromgoogle_flight_scraper.driverimportDriverfromgoogle_flight_scraper.scraperimportScraperwithDriver(webdriver.Firefox,webdriver.FirefoxOptions)asdriver:df=Scraper(timeout_seconds=5)(driver,queries)Scraped data will be in thedfDataFrame for further analysis.One-way vs return trip behaviourThere is a difference in the way that the library queries return trips and returning one-way flights (return trip, two one-way tickets). The reason for doing this is that the latter may have cheaper flight combinations. We can set up both searches by providing multipleTravelPlantoFlightQuery:# ...FlightQuery.from_travel_plans(# Searches for return trip tickets on Google FlightsTravelPlan("SFO","SEA",departure_dates=[f"2023-12-{d}"fordinrange(1,10)],return_dates=[f"2023-12-{d}"fordinrange(11,20)],),# Searches to-and-fro one-way tickets on Google FlightsTravelPlan("SFO","SEA",departure_dates=[f"2023-12-{d}"fordinrange(1,10)],),TravelPlan("SEA","SFO",departure_dates=[f"2023-12-{d}"fordinrange(11,20)],),)
Package: googlefonts-installer
Installs selected fonts from theGoogle fonts directoryby selectively
cloning the Git repository atgithub.com/google/fontsand creating symlinks
in your~/.fontsdirectory.Quickstart:$pipsiinstallgooglefonts_installer$mkdir-p~/googlefonts$cd~/googlefonts# Add list of font paths from git repo to:$vimgooglefonts.conf$googlefonts-installerToupdate fontsfrom Git,install new fontsorremove fonts, just
(optionally) changegooglefonts.confand re-rungooglefonts-installer.RequirementsTo use this, you’ll needPython 3.3+ to run this script,a recent version of Git supporting sparse checkouts,a Linux-based system that uses the~/.fontsdirectory.Usage / How it worksCreate a directory for the Git clone:$mkdir-p~/Fonts/googlefonts/$cd~/Fonts/googlefonts/Install thegooglefonts-installerpackage from PyPi. A good way to do
this is viapipsi:$pipsiinstallgooglefonts_installerYou now have thegooglefonts-installercommand available.List the fonts to install, or more precicely the sub-paths of the Google
fonts Git repository to clone, in agooglefonts.confconfiguration
file, e.g.:ufl/ubuntu
ofl/firamono
ofl/firasansFor example, to installUbuntu Regular, use the directory partufl/ubuntu/of the fileufl/ubuntu/Ubuntu-Regular.ttfin the
repository.Rungooglefonts-installer. This …If not yet done, inits a Git repository with sparse-checkout
(only clone the defined paths) and adds the Google fonts Git repository
as a remote.Pulls the latest changes (shallow history to save space).Creates symlinks for each font directory to~/.fonts.Removes broken symlinks from~/.fontsfor uninstalled (removed fromgooglefonts.conf) fonts.DefaultsThegooglefonts-installercommand defaults to:reading config fromgooglefonts.confin the current working directory,cloning into the current working directory andsymlinking to~/.fonts.Use the--config,--work-dirand--fonts-dirarguments to change
this behaviour.HintTo find the sub-paths of the fonts you’d like to install, go tohttps://github.com/google/fonts, hittand start typing a font’s name.
Github will list all matching file names.Changelog0.3.1 - unreleasedFix broken source and wheel distributions. Now actually installable.0.3.0 - 2016-03-10Clean up broken symlinks from~/.fontsafter uninstalling a font
(removed fromgooglefonts.conf).Improve documentation.0.2.0 - 2016-03-09Packaging fix.0.1.0 - 2016-03-09Initial implementation.
Package: googlefonts-markup
WarningThis is alpha libraryOverviewThis is small utility to handle specs of Google Fonts in my products.UsageNoteWIPSimple case>>>fromgooglefonts_markupimportFont>>>noto_sans_jp=Font(family_name="Noto Sans JP")>>>noto_sans_jp.css_url()'https://fonts.googleapis.com/css2?family=Noto+Sans+JP'>>>noto_sans_jp.css_tag()'<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP" rel="stylesheet">'If you want only URL of CSS, usegooglefonts_markup.shortcuts.>>>fromgooglefonts_markup.shortcutsimportfont_css_url>>>font_css_url("Noto Sans JP")'https://fonts.googleapis.com/css2?family=Noto+Sans+JP'With italic>>>fromgooglefonts_markupimportAxis,Font>>>red_hat_mono=Font(family_name="Red Hat Mono",axis_list=[Axis(italic=True)])>>>red_hat_mono.css_url()'https://fonts.googleapis.com/css2?family=Red+Hat+Mono:ital,wght@1,400'Extra attributes>>>fromgooglefonts_markupimportFont,FontSet>>>noto_sans_jp=Font(family_name="Noto Sans JP")>>>fontset=FontSet(fonts=[noto_sans_jp],display="swap")>>>fontset.css_url()'https://fonts.googleapis.com/css2?family=Noto+Sans+JP&display=swap'Multiple fonts>>>fromgooglefonts_markupimportFont,FontSet>>>noto_sans_jp=Font(family_name="Noto Sans JP")>>>roboto_mono=Font(family_name="Roboto Mono")>>>fontset=FontSet(fonts=[noto_sans_jp,roboto_mono],display="swap")>>>fontset.css_url()'https://fonts.googleapis.com/css2?family=Noto+Sans+JP&family=Roboto+Mono&display=swap'Defering on HTML>>>fromgooglefonts_markupimportFont,FontSet>>>font=Font(family_name="Noto Sans JP")>>>font.css_tag(defer=True)'<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP" rel="preload" as="style" onload="this.onload=null;this.rel=\'stylesheet\'">'Installationpip install git+https://github.com/attakei-lab/googlefonts-markup