Saravanan666/pypi-org huggingface dataset:
Package: amazon-page-parser
amazon-page-parserCurrently supported detail fields are:title - Titleauthor - Array of authorsfeature_bullets - Array of feature bulletsbook_description - description under offer informationproduct_description - description under editorial reviewimages - Array of imagesstar - Average star of custom reviewsreviews - Custom Reviews countrank - Sales Rank in top browse nodecategories - Browse nodes trees, multiple tree pathes are concated by ';'details - Details are key, value pairs.Offer listing fields are:price - Product priceshipping_price - Shipping pricecondition - Conditionsubcondition - Subconditioncondition_comments - Condition commentsavailable - Whether product is currently available, or needs pre-orderedprime - Whether shipping supports prime optionsexpected_shipping - Whether shipping support expected optionsseller_name - Seller nameseller_rating - Seller ratingseller_feedbacks - Seller feedback countseller_stars - Seller stars countoffer_listing_id - Offer listing IDTracking fields are:carrier - Carrier nametracking_id - Tracking numberis_shipped - Whether order is shippedInstallationThe simplest way is to install it viapip:pip install amazon-page-parserRun Testpip install -r requirements-dev.txttox
Package: amazon-product-review-scraper
Amazon Product Review ScraperPython package to scrape product review data from amazonQuickstartpip install amazon-product-review-scraperfrom amazon_product_review_scraper import amazon_product_review_scraper
review_scraper = amazon_product_review_scraper(amazon_site="amazon.in", product_asin="B07X6V2FR3")
reviews_df = review_scraper.scrape()
reviews_df.head(5)Parametersamazon_siteExamples: amazon.in, amazon.com, amazon.co.ukproduct_asinProduct ASIN(Amazon Standard Identification Number)An ASIN is a 10-character alphanumeric unique identifier that is assigned to each product on amazon.Examples:https://www.amazon.in/Grand-Theft-Auto-V-PS4/dp/B00L8XUDIC/ref=sr_1_1https://www.amazon.in/Renewed-Sony-Cybershot-DSC-RX100-Digital/dp/B07XRVR9B9/ref=lp_20690678031_1_14?srs=20690678031&ie=UTF8&qid=1598553991&sr=8-14sleep_time(Optional)Number of seconds to wait before scraping the next page.
(Amazon might intervene with CAPTCHA if receives too many requests in a small period of time)start_page(Optional)end_page(Optional)
Package: amazonpy
amazonpyAmazon scraping libraryDescriptionAmazon（JP）の商品情報を取得するためのスクレイピングライブラリInstallationpipinstallamazonpyUpgradepipinstall--upgradeamazonpyHow to usefromamazonpyimportAmazonamazon=Amazon()# URLから製品情報を取得する。product=amazon.get_product_by_url("https://www.amazon.co.jp/dp/B07T17NSJH/")print(product.id)# 商品IDを取得する。# B07T17NSJHprint(product.title)# タイトルを取得する。# [コーチ] COACH バッグ ショルダーバッグ 斜めがけ MAE CROSSBODY レザー F34823 アウトレット [並行輸入品]print(product.description)# 説明を取得する。# ■品　番：34823 IMTAU ■サイズ：約高さ23x幅25xマチ5cm　ショルダー約103-119cm（取り外し不可）　 ■重　さ：約400g ■仕　様：開閉 ：ファスナー式　内側 ：ポケット1　外側 ：ポケット1 ■素　材：レザー ■カラー：Taupe 金具ゴールド ■付　属：箱なし、保存袋なし ■バッグ内の商品はサンプル品につき、付属しておりません。print(product.price)# 販売価格を取得する。# 17570print(product.another_type)# 色などの同じ製品の違うタイプの製品IDを取得する。['B08TW5VZX3','B07PZJYLM7','B07ZYFV9ZW','B0854LBQG2']DonationPlease donate me.PayPal
Package: amazon-review-analyzer
Amazon Review AnalyzerWelcome to the Amazon Review Analyzer, a Python program designed to help you make informed decisions about purchasing products on Amazon.OverviewThis program takes an Amazon product link as input and analyzes the reviews, providing insights into whether the product is a good buy. However, the ultimate decision to purchase rests entirely with you.How It WorksInput the Product Link:When you provide the Amazon product link, the program initiates a web scraping process to extract reviews.Scraping and Data Storage:The scrapper extracts reviews from theamazon.in/product-reviews/asinpage. The unique ASIN (Amazon Standard Identification Number) is extracted from the link using Python's regular expressions. Due to pagination, the program iterates through the pages, storing the reviews in a CSV file namedreviews.csv.User Agent:Replaceheadersvariable  inscrapper.pywith your user agent to know what is your user agent simply googlemy user agentSentiment Analysis:The program uses thevaderSentimentPython package to analyze the tone of the reviews. Additionally, thedemojipackage is employed to handle emojis present in the reviews.Run the Amazon Review AnalyzerTo use the Amazon Review Analyzer, follow these steps:Install theamazon_review_analyzerpackage:pipinstallamazon_review_analyzerfromamazon_review_analyzerimportget_sentimentThe following code prompts the user to enter an Amazon URL in the terminaland displays the sentiment analysis results.get_sentiment()
Package: amazon-sagemaker-haystack
amazon-sagemaker-haystackTable of ContentsInstallationContributingLicenseInstallationpip install amazon-sagemaker-haystackContributinghatchis the best way to interact with this project, to install it:pipinstallhatchWithhatchinstalled, to run all the tests:hatch run testNote: You need to export your AWS credentials for Sagemaker integration tests to run (AWS_ACCESS_KEY_IDandAWS_SECRET_SECRET_KEY). If those are missing, the integration tests will be skipped.To only run unit tests:hatch run test -m "not integration"To only run integration tests:hatch run test -m "integration"To run the lintersruffandmypy:hatch run lint:allLicenseamazon-sagemaker-haystackis distributed under the terms of theApache-2.0license.
Package: amazon-sagemaker-jupyter-scheduler
Amazon Sagemaker Jupyter SchedulerA JupyterLab extension to schedule notebooks on Amazon SageMaker from any JupyterLab environment. This extension is built on top ofhttps://pypi.org/project/jupyter-scheduler/For more details on usage please follow the documentation -https://docs.aws.amazon.com/sagemaker/latest/dg/notebook-auto-run.html
Package: amazon-scrape
Scrape Amazon product data such as Product Name, Product Images, Number of Reviews, Price, Product URL, and ASIN.RequirementsPython 2.7 and later.SetupYou can install this package by using the pip tool and installing:$pipinstallamazon-scrapeOr:$easy_installamazon-scrapeScraper HelpExecute this commandamazon_scraper –helpin the terminal.usage: amazon_scraper [-h] [--locale LOCALE] [--keywords KEYWORDS] [--url URL] [--proxy_api_key PROXY_API_KEY] [--pages PAGES] [-r]

optional arguments:
-h, --help            show this help message and exit
--locale LOCALE       Amazon locale (e.g., "com", "co.uk", "de", etc.)
--keywords KEYWORDS   Search keywords
--url URL             Amazon URL
--proxy_api_key       Scraper API Key
--pages PAGES         Number of pages to scrape
-r, --review          Scrape reviewsUsage Example# Specify locale, keywords, API key, and number of pages to scrape:amazon_scraper--localecom--keywords"laptop"--proxy_api_key"your_api_key"--pages10## Specify only keywords and API key (will default to "co.uk" locale and 20 pages):amazon_scraper--keywords"iphone"--proxy_api_key"your_api_key"## Specify a direct Amazon URL and API key (will default to "co.uk" locale and 20 pages):amazon_scraper--url"https://www.amazon.de/s?k=iphone&crid=1OHYY6U6OGCK5&sprefix=ipho%2Caps%2C335&ref=nb_sb_noss_2"--proxy_api_key"your_api_key"## Specify locale and Amazon URL (will default to 20 pages):amazon_scraper--localede--url"https://www.amazon.de/s?k=iphone&crid=1OHYY6U6OGCK5&sprefix=ipho%2Caps%2C335&ref=nb_sb_noss_2"--proxy_api_key"your_api_key"## Specify review to scrape product(s) reviews:amazon_scraper--keywords"watches"--proxy_api_key"your_api_key --reviewCreate Scraper API AccountSign up for a Scraper APIuser account.LicenseThis project is licensed under theMIT License.CopyrightCopyright © 2023Finbarrs Oketunji. All Rights Reserved.
Package: amazon-scraper-products-extractor
The Amazon Scraper API is a powerful Python library that allows you to scrape product information from Amazon's website. It provides easy-to-use functions to extract product details, prices, reviews, and more. Use it to gather data for market research, price tracking, or any application that requires Amazon product information.Key Features:Retrieve product details, including title, description, and ASIN.Get pricing information, including the current price and any discounts.Scrape customer reviews, ratings, and review summaries.Perform searches and extract search results.This library is designed to be user-friendly and provides extensive documentation and examples to get you started quickly.
Package: amazon-search-scraper-bc
amazon_search_scraper_bcamazon_search_scraper_bc is a Python library for getting amazon search data and product details data in your project.InstallationUse the package managerpipto install amazon_search_scraper_bc.pipinstallamazon_search_scraper_bcUsageYou need to have webdrivers downloaded for it to work and give the program the path of the drivers.To get search list:fromamazon_search_scraper_bc.scraperimportAmazonScraperimportospwd=os.path.abspath(os.getcwd())# Location of your webdriver Ex:path=pwd+"/webdrivers/chromedriver_linux64/chromedriver"# You can call or select which driver to use ['chrome', 'firefox'] it will open the browsers in headless mode.amasc=AmazonScraper("chrome",path)print(amasc.amazon_product_search("Mobile"))To get product details:fromamazon_search_scraper_bc.scraperimportAmazonScraperimportospwd=os.path.abspath(os.getcwd())# Location of your webdriver Ex:path=pwd+"/webdrivers/chromedriver_linux64/chromedriver"# You can call or select which driver to use ['chrome', 'firefox'] it will open the browsers in headless mode.amasc=AmazonScraper("chrome",path)url="https://www.amazon.in/Redmi-9A-2GB-32GB-Storage/dp/B08696XB4B/ref=sr_1_3?dchild=1&keywords=mobile&qid=1629271762&sr=8-3"print(amazonSc.get_single_product_details(url))To change the amazon urlfromamazon_search_scraper_bc.scraperimportAmazonScraperimportospwd=os.path.abspath(os.getcwd())# Location of your webdriver Ex:path=pwd+"/webdrivers/chromedriver_linux64/chromedriver"# You can call or select which driver to use ['chrome', 'firefox'] it will open the browsers in headless mode.# By default it takes https://www.amazon.in .# When calling get_single_product_details you need to send full url.amasc=AmazonScraper("chrome",path,"https://www.amazon.com")To see the time it is takingfromamazon_search_scraper_bc.scraperimportAmazonScraperimportospwd=os.path.abspath(os.getcwd())# Location of your webdriver Ex:path=pwd+"/webdrivers/chromedriver_linux64/chromedriver"# You can call or select which driver to use ['chrome', 'firefox'] it will open the browsers in headless mode.amasc=AmazonScraper("chrome",path)# page_no needs to be greatter than 0page_no=1time_show=Trueprint(amasc.amazon_product_search("Mobile",page_no,time_show))ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseCopyright [2021] [Barno Chakraborty]Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: amazon-ses-template-editor
Create, preview, test and upload Amazon SES templatesConsole command to edit, test and upload amazon SES templatesCurrently AWS SES has API endpoint to create email templates with handlebars syntax and API endpoint to send emails with template name and a dictionary with template variables.
But it does not provide any UI to create and edit templates. This script allows you to manage your email templates from command lineInstallationpipinstallamazon-ses-template-editorUsageusage: amazon-ses-template-editor.py [-h] [-c CONFIG]
                                     {upload,test,preview} ...

positional arguments:
  {upload,test,preview}
    upload              Uploads templates from configuration file to SES using
                        your system credentials
    upload_test         Uploads templates for testing purposes
    test                Sends emails to your email address so you can test
                        layout
    preview             Starts minimal http server for email template testing

optional arguments:
  -h, --help            show this help message and exit
  -c CONFIG, --config CONFIG
                        Path to configuration file, default ./config.tomlUploading emailsusage: amazon-ses-template-editor.py upload [-h] [-t TEMPLATE]

optional arguments:
  -h, --help            show this help message and exit
  -t TEMPLATE, --template TEMPLATE
                        Uploads only one template with given nameTesting emailsusage: amazon-ses-template-editor.py upload_test [-h] [-t TEMPLATE]

optional arguments:
  -h, --help            show this help message and exit
  -t TEMPLATE, --template TEMPLATE
                        Uploads only one template with given name


usage: amazon-ses-template-editor.py test [-h] [-t TEMPLATE]

optional arguments:
  -h, --help            show this help message and exit
  -t TEMPLATE, --template TEMPLATE
                        Uploads only one template with given nameTesting emailsConfig example[[templates]]name='weekly-email'html="templates/weekly-email.hb2"title='Your links weekly report'[[templates]]name='confirmation-email'html="templates/confirmation-email.hb2"title='Please verify your email'[partials]footer='partials/footer.hb2'[tests]from='andrii@short.cm'to=['andrey@kostenko.name','someone_else@short.cm'][[test]]template='weekly-email'[test.data]encodedEmail='andrey@kostenko.name'[test.data.user]id=12345name='Test test'[[test.data.domains]][test.data.domains.domain]hostname='test.com'[test.data.domains.stats]links=50clicks=50humanClicks=50[[test.data.domains.stats.device]]deviceName="Desktop"score=12345AuthorAndrii Kostenko, Short.cm Inc (https://short.cm)
Package: amazonstoreprice
AmazonStorePriceThis module find the price from url givenCompatible with all amazon storeLinkDocumentation:http://amazonstoreprice.readthedocs.org/Bug Tracker:https://github.com/Mirio/amazonstoreprice/issuesGitHub:https://github.com/Mirio/amazonstorepriceRequirementPython 3.xPython Library = [ 'requests', 'beautifulsoup4' ]How to installpip install amazonstorepriceInstall from sourcegit clone https://github.com/Mirio/amazonstoreprice.git
cd amazonstoreprice
python setup.py installGetting StartedExample:from amazonstoreprice import AmazonStorePrice

url = "http://www.amazon.it/Inside-Out-Ronnie-Del-Carmen/dp/B016LMC90O/" \
      "ref=sr_1_1?ie=UTF8&qid=1455389197&sr=8-1&keywords=inside+out"
pricelib = AmazonStorePrice()
print(pricelib.getprice(url, retry_ontemp=True))Output:$ python example_getprice.py
15.99
Package: amazon-textract-overlayer
Textract-Overlayeramazon-textract-overlayer provides functions to help overlay bounding boxes on documents.Install>python-mpipinstallamazon-textract-overlayerMake sure your environment is setup with AWS credentials through configuration files or environment variables or an attached role. (https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html)SamplesPrimary method provided is get_bounding_boxes which returns bounding boxes based on the Textract_Type passed in.
Mostly taken from theamazon-textractcommand from the packageamazon-textract-helper.This will return the bounding boxes for WORD and CELL data types.fromtextractoverlayer.t_overlayimportDocumentDimensions,get_bounding_boxesfromtextractcaller.t_callimportTextract_Features,Textract_Types,call_textractdoc=call_textract(input_document=input_document,features=features)# image is a PIL.Image.Image in this casedocument_dimension:DocumentDimensions=DocumentDimensions(doc_width=image.size[0],doc_height=image.size[1])overlay=[Textract_Types.WORD,Textract_Types.CELL]bounding_box_list=get_bounding_boxes(textract_json=doc,document_dimensions=document_dimension,overlay_features=overlay)The actual overlay drawing of bounding boxes for images is in theamazon-textractcommand from the packageamazon-textract-helperand looks like this:fromPILimportImage,ImageDrawimage=Image.open(input_document)rgb_im=image.convert('RGB')draw=ImageDraw.Draw(rgb_im)# check the impl in amazon-textract-helper for ways to associate different colors to typesforbboxinbounding_box_list:draw.rectangle(xy=[bbox.xmin,bbox.ymin,bbox.xmax,bbox.ymax],outline=(128,128,0),width=2)rgb_im.show()The draw bounding boxes within PDF documents the following code can be used:importfitz# for local stored filesfile_path="<<replace with the local path to your pdf file>>"doc=fitz.open(file_path)# for files stored in S3 the streaming object can be used# doc = fitz.open(stream="<<replace with stream_object_variable>>", filetype="pdf")# draw boxesforp,pageinenumerate(doc):p+=1forbboxinbounding_box_list:ifbbox.page_number==p:page.draw_rect([bbox.xmin,bbox.ymin,bbox.xmax,bbox.ymax],color=(0,1,0),width=2)# save file locallydoc.save("<<local path for output file>>")
Package: amazon-textract-pipeline-pagedimensions
Textract-Pipeline-PageDimensionsProvides functions to add page dimensions with doc_width and doc_height to the Textract JSON schema for the PAGE blocks under the custom attribute in the form of:e. g.{'PageDimension': {'doc_width': 1549.0, 'doc_height': 370.0} }Install>python-mpipinstallamazon-textract-pipeline-pagedimensionsMake sure your environment is setup with AWS credentials through configuration files or environment variables or an attached role. (https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html)SamplesAdd Page dimensions for a local filesample uses amazon-textract-caller amazon-textract-pipeline-pagedimensionspython-mpipinstallamazon-textract-callerfromtextractpagedimensions.t_pagedimensionsimportadd_page_dimensionsfromtextractcaller.t_callimportcall_textractfromtrp.trp2importTDocument,TDocumentSchemaj=call_textract(input_document='<path to some image file>')t_document:TDocument=TDocumentSchema().load(j)add_page_dimensions(t_document=t_document,input_document=input_file)print(t_document.pages[0].custom['PageDimension'])# output will be something like this:# {#     'doc_width': 1544,#     'doc_height': 1065# }Using the Amazon Textact Helper command line tool with PageDimensionsTogether with the Amazon Textract Helper and Amazon Textract Response Parser, we can build a pipeline that includes information about PageDimension and Orientation of pages
as a short demonstration on the information that is added to the Textract JSON.>python-mpipinstallamazon-textract-helperamazon-textract-response-parseramazon-textract-pipeline-pagedimensions
>amazon-textract--input-document"s3://amazon-textract-public-content/blogs/2-pager-different-dimensions.pdf"|amazon-textract-pipeline-pagedimensions--input-document"s3://amazon-textract-public-content/blogs/2-pager-different-dimensions.pdf"|amazon-textract-pipeline--componentsadd_page_orientation|jq'.Blocks[] | select(.BlockType=="PAGE") | .Custom'{"PageDimension":{"doc_width":1549,"doc_height":370},"Orientation":0}{"PageDimension":{"doc_width":1079,"doc_height":505},"Orientation":0}
Package: amba-event-stream
amba-event-streamThe Amba Analysis Streams package is used as a Kafka connection wrapper to abstract from infrastructure implementation details by providing functions to connect to Kafka and PostgreSQL. It defines the event model used in the streaming platform and provides base consumer and producer classes. The package is implemented as a python package that is hosted on pypi.org, and documented with mkdocs.The consumer and producer are capable of running in multiple processes to allow for parallel processing to better utilize modern CPUs. Both have built in monitoring capabilities: a counter shared by all processes is updated for each processed event. A thread running a function every few seconds is checking the counter and resetting it. If no data is processed over a defined period of time (meaning multiple consecutive check function runs), the container is restarted automatically by closing all python processed. This heart beat function ensures that even unforeseeable errors, such as container crashes or blockings are resolved by restarting the container and providing a clean system state.more Information can be foundhereInstallationpipinstallamba-event-streamReleasingReleases are published automatically when a tag is pushed to GitHub.# Set next version numberexportRELEASE=x.x.x# Create tagsgitcommit--allow-empty-m"Release$RELEASE"gittag-a$RELEASE-m"Version$RELEASE"# Pushgitpushupstream--tags
Package: ambari
Ambari python client based on ambari rest api.Installpip install ambariCommand lineambari -hambari localhost:8080 cluster create test typical_triple master1 master2 slaveambari localhost:8080 service start ZOOKEEPERambari localhost:8080 host delete server2Python modularfrom ambari.client import Clientclient=Client(’http://localhost:8080’)for s in client.cluster.services:print(s.name)s.start()
Package: ambari-lld
This program connects to the Ambari server API and returns all the alerts
associated to a given host as a JSON that can be easily parsed by Zabbix
to create Low-Level-Discovered items.Usage:usage: ambari_zabbix_lld [-h] [-a AMBARI_ENDPOINT] [-u USER] [-p PASSWORD]
                [-n HOSTNAME]

Return a Zabbix LLD JSON resource for all available Ambari checks

optional arguments:
  -h, --help            show this help message and exit
  -a AMBARI_ENDPOINT, --ambari-endpoint AMBARI_ENDPOINT
                        Ambari API address
  -u USER, --user USER  Ambari user
  -p PASSWORD, --password PASSWORD
                        Ambari user password
  -n HOSTNAME, --hostname HOSTNAME
                        Filter alerts based on this hostnameBy default-nhas a value of*which means that no filters are
applied to hostnames. You can pass an empty string if you want to retrieve
alerts that are not assigned to any particular host. Obviously you can
(and probably want to) pass an hostname to filter only relevant alerts.TheAMBARI_ENDPOINTURI must always begin withhttp(s)://.
Package: ambee-sdk
ambee_sdkAmbee SDK for python provides classes and methods to make use of ambee's APIs inside your python code. You can make calls to our apis, get output in dataframe format, make calls to multiple locations and more.Read our API documentation:Ambee: Developers toolReadthedocs -Welcome to ambee-sdk’s documentation!Getting Startedimportambee_sdkasambeeimportdatetimex_api_key="Your Key Here"aq=ambee.air_quality(x_api_key=x_api_key)aq.get_latest(by='latlng',lat=12,lng=77)
Package: amberdata
DemoInstallpipinstallamberdatafor referencefromamberdataimportAmberdataad_client=Amberdata(x_api_key="ENTER YOUR API KEY HERE")blockchain_address_logs=ad_client.blockchain_address_logs(address="0xb47e3cd837dDF8e4c57F05d70Ab865de6e193BBB",topic="0x58e5d5a525e3b40bc15abaa38b5882678db1ee68befd2f60bafe3a7fd06db9e3")print(blockchain_address_logs)