Saravanan666/pypi-org huggingface dataset:
Package: python-airnow
python-airnowA simple wrapper aroundAirNow API.Installpip install -U python-airnowExampleimportairnowAIRNOW_API_KEY='{INSERT_API_KEY}'air=airnow.AirNow(AIRNOW_API_KEY)obsrvtns=air.getObservationsByZipCode(20002)print(obsrvtns)# [#     AirNowObservation(#         DateTime=datetime.datetime(2021, 9, 7, 12, 0, tzinfo=tzoffset('EST', -18000)),#         ReportingArea='Metropolitan Washington',#         ParameterName='O3',#         AQI=46#     ),#     AirNowObservation(#         DateTime=datetime.datetime(2021, 9, 7, 12, 0, tzinfo=tzoffset('EST', -18000)),#         ReportingArea='Metropolitan Washington',#         ParameterName='PM2.5',#         AQI=4#     )# ]frcst=air.getForecastByLatLong(38.919,-77.013,date=datetime.datetime(2021,9,7))print(frcst)# [#     AirNowForecast(#       DateForecast=datetime.date(2021, 9, 7),#       ReportingArea='Metropolitan Washington',#       ParameterName='O3',#       AQI=61#     ),#     AirNowForecast(#       DateForecast=datetime.date(2021, 9, 7),#       ReportingArea='Metropolitan Washington',#       ParameterName='PM2.5',#       AQI=38),#     AirNowForecast(#       DateForecast=datetime.date(2021, 9, 8),#       ReportingArea='Metropolitan Washington',#       ParameterName='O3',#       AQI=50#     ),#     AirNowForecast(#       DateForecast=datetime.date(2021, 9, 8),#       ReportingArea='Metropolitan Washington',#       ParameterName='PM2.5',#       AQI=46#     ),#     AirNowForecast(#       DateForecast=datetime.date(2021, 9, 9),#       ReportingArea='Metropolitan Washington',#       ParameterName='O3',#       AQI=46#     ),#     AirNowForecast(#       DateForecast=datetime.date(2021, 9, 9),#       ReportingArea='Metropolitan Washington',#       ParameterName='PM2.5',#       AQI=33#     )# ]LinksDocumentation:https://python-airnow.readthedocs.io/PyPI Releases:https://pypi.org/project/python-airnow/Source Code:https://github.com/ronnie-llamado/python-airnow/Issue Tracker:https://github.com/ronnie-llamado/python-airnow/issues/AirNow API Documentation:https://docs.airnowapi.org
Package: pythonairplanepictures
PythonAirplanePicturesA python module that gets images from [airplane-pictures.net]pip install pythonairplanepicturesFunctions:getRandomImage(amountOfImages, download, printOutput) # Gets a random imagegetRandomPage(AmountOfPages, Download, PrintOutput) # Gets a random pagegetTopPages(AmountOfPages, Download, PrintOutput) # Gets the top pagesPython dependicies used:requestsrandomosre
Package: python-airtable
Python AirtableThis is a Python module for accessing Airtable largely based on the originalairtable-python-wrapperbyGui Talaricowith some modifications.Installingpip install python-airtableDocumentationThee original full documentation is availablehere.Usage ExamplefromairtableimportAirtable# We updated the signature of `Airtable` class to support `airtable://` scheme URLs along with `view` and `sort` supported within the URLs.airtable=Airtable('airtable://app1234567890/table_name?view=My%20View&sort=ID')forrecord_id,fieldsinairtable.iter_records():print(f'Record ID:{record_id}, Fields:{fields}')# Now you can get all the Airtable records as a big dictionary with record ID as keysairtable.get_all_as_dict()airtable.insert({'Name':'Brian'})# We added `batch_insert` and support generators for the records arguments; chunking of records to 10 each is done automatically.airtable.batch_insert([record1,record2,...])airtable.batch_update([(id1,record1),(id2,record2),...))# same for batch_updateairtable.search('Name','Tom')airtable.update_by_field('Name','Tom',{'Phone':'1234-4445'})airtable.delete_by_field('Name','Tom')
Package: python-aka
SynopsisMisc scripts and libraries to run junk against akaUsing this on your ownUse this module with the following in your scriptimport logging
from akapy import Colorer
from akapy.helpers import CredentialParser, cidr_to_netmask, is_pingable, wait_until_it_pings
from akapy.aka import Api

if os.environ.has_key('AKA_BASE_URL'):
    AKA_BASE = os.environ['AKA_BASE_URL']
else:
    AKA_BASE = "https://aka.oit.duke.edu"

cred_parser = CredentialParser(AKA_BASE)
cred = cred_parser.import_credentials()
AKA = Api(AKA_BASE, cred)SetupMake sure you have ~/.akarc set up like this:[https://aka.oit.duke.edu]
    user = joeuser
    key = 11111111-2222-3333-4444-555555555555

    [https://aka-test.oit.duke.edu]
    user = joeuser
    key = aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeeeThe script will default to using 'https://aka.oit.duke.edu'.  If you would like to change it to test (or any other URL), set your environment variableexport AKA_BASE_URL=https://aka-test.oit.duke.edu
Package: python-akismet
Python-akismetPykismet3 fork. Support older versions of Python and improvements.Supported APIThe Following Akismet API Calls are currently supported:Comment CheckSubmit HamSubmit SpamUnsupported APIThe following Akismet API Calls are not yet supported:
* Key VerificationInstallationSignup for Akismet and get yourself an API key athttp://akismet.com/plans/(You don’t need to pay)Install this library:pip install python-akismetMake some calls to Akismet (see example below to get started)ExampleImport and instance Akismet.fromakismetimportAkismet# API KEY (first argument) is required. blog can be defined later.akismet=Akismet('1ba29d6f120c',blog="http://your.blog/url",application_user_agent="My Application Name/0.0.1")Comment Checkakismet.check('192.168.1.3','Firefox / COMMENT USER AGENT',comment_author='King Arthur',comment_author_email='arthur@camelot.co.uk',comment_author_url='http://camelot.co.uk',comment_content='The Lady of the Lake, her arm clad in the purest shimmering samite, ''held aloft Excalibur from the bosom of the water, signifying by divine'' providence that I, Arthur, was to carry Excalibur. That is why I ''am your king.',referrer='http://camelot-search/?q=Peasant+Woman')Submit Hamakismet.submit_ham('192.168.1.12','FIREFOX / COMMENT USER AGENT',comment_author='Tim',comment_author_email='tim@witch.co.uk',comment_author_url='http://witch.co.uk',comment_content="Look, that rabbit's got a vicious streak a mile wide!""It's a killer!")Submit Spamakismet.submit_spam('192.168.1.4','FIREFOX / COMMENT USER AGENT',comment_author='Frenchman',comment_author_email='frenchman@guy-de-lombard.fr',comment_author_url='http://guy-de-lombard.fr',comment_content="You don't frighten us, English pig-dogs! Go and boil your ""bottoms, sons of a silly person! I blow my nose at you, ""so-called Ah-thoor Keeng, you and all your silly English ""K-n-n-n-n-n-n-n-niggits!")DocumentationThe examples above show you pretty much everything you need to know.For a full list of supported parameters for each API call, seehttp://akismet.com/development/api/The code is only ~100 lines long anyway, so just look at ‘’’akismet’’’ if you aren’t sure about something.
Package: python-alfred
# Alfred PythonA simple python module for alfred workflow。Features:* Easily get bundle id, query arguments* Simple feedback XML generation* Provides functions for storing or retrieving cache data* Workflow configuration management* Includes an easy way to download remote file## installation```shellsudo easy_install python-alfred```## Code Example```python>>> import alfred>>> alfred.bundleID()'net.jeeker.awf.AppDig'>>> alfred.log('log message')      # save log message to 'log.txt' in workflow's folder>>> alfred.exit('exit-message')exit-message>>> alfred.exitWithFeedback(title='exitWithFeedback')<items><item uid="net.jeeker.awf.AppDig.29008681"><icon>icon.png</icon><subtitle /><title>exitWithFeedback</title></item></items>>>> feedback = alfred.Feedback()>>> feedback.addItem(title='Feedback Title', subtitle='subtitle', autocomplete='subcmd', valid=False)>>> feedback.addItem(title='Feedback Title 2', subtitle='subtitle 2', arg='arg')>>> feedback.addItem(title='Feedback Title 3', subtitle='subtitle 3')>>> feedback.output()<items><item autocomplete="subcmd" uid="net.jeeker.awf.AppDig.11134445" valid="no"><icon>icon.png</icon><subtitle>subtitle</subtitle><title>Feedback Title</title></item><item arg="arg" uid="net.jeeker.awf.AppDig.20583908"><icon>icon.png</icon><subtitle>subtitle 2</subtitle><title>Feedback Title 2</title></item><item uid="net.jeeker.awf.AppDig.31032116"><icon>icon.png</icon><subtitle>subtitle 3</subtitle><title>Feedback Title 3</title></item></items>>>> alfred.config.set(username='JinnLynn', testkey='testvalue')>>> alfred.config.getAll(){u'username': u'JinnLynn', u'testkey': u'testvalue'}>>> alfred.config.get('username')u'JinnLynn'>>> alfred.config.delete('username')>>> alfred.config.getAll(){u'testkey': u'testvalue'}>>> alfred.cache.set('test-cache', {'cache-data':'test-data'}, expire=10)>>> alfred.cache.get('test-cache'){u'cache-data': u'test-data'}>>> alfred.cache.timeout('test-cache')2.6863911151885986>>> alfred.cache.get('test-cache')      # expired return None>>> alfred.cache.timeout('test-cache')-1>>> alfred.storage.getLocalIfExists('http://i.imgur.com/17lNrSX.png')     # Non-existent>>> alfred.storage.getLocalIfExists('http://i.imgur.com/17lNrSX.png', download=True)'/tmp/net.jeeker.awf.AppDig/0fef92118c683242f9b6e2a40e1a54f5.png'>>> alfred.storage.batchDownload(['http://i.imgur.com/8pa4x95.png','http://i.imgur.com/PX03uFm.png'])>>> alfred.storage.getLocalIfExists('http://i.imgur.com/8pa4x95.png')'/tmp/net.jeeker.awf.AppDig/dc119234ccb1f8fea4064b9a83a2dd6b.png'```## LicenseThe MIT License
Package: python-algerian-mobile-phone-number
Python Algerian mobile phone number packageThis package provides several methods to deal with Algerian phone numbers.The aim of this package is to create a python community in Algeria and provide all possible libraries to make python frameworks and projects such as Django or Flask adapted to Algerian market and easy to use.Inspired by thePHP Packageauthored by Mohamed Cherif Bouchelaghem.InstallationUse the package managerpipto install Python Algerian mobile phone number package.pip install python-algerian-mobile-phone-numberUsage:Instantiation:Create an instance of the class AlgerianMobilePhoneNumber and pass the phone number value as an attributeImportfrompython_algerian_mobile_phone_numberimportAlgerianMobilePhoneNumberphoneNumber=AlgerianMobilePhoneNumber('0770000000')Or:phoneNumber=AlgerianMobilePhoneNumber('07 70 00 00 00')Or:phoneNumber=AlgerianMobilePhoneNumber('07-70-00-00-00')NOTE: For now only space and hyphens "-" separated numbers are accepted.NOTE: International phone indicative such 00213 or +213 are accepted.API:strTo get the string representation of the instance use the built in function __str__:phoneNumber.__str__()#'0770000000'equalsToTo compare two phone numbers:other=AlgerianMobilePhoneNumber('0770000000')phoneNumber.equalsTo(other)#TrueisMobilis, isDjezzy and isOoredooTo check the mobile phone number provider including Mobilis, Djezzy and OoredoophoneNumber=AlgerianMobilePhoneNumber('0770000000')phoneNumber.isMobilis()#FalsephoneNumber.isDjezzy()#TruephoneNumber.isOoredoo()#FalsechangeNumberTo change the phone number of an instance:phoneNumber=AlgerianMobilePhoneNumber('0770000000')phoneNumber.changeNumber('0798000000')#'0798000000'convertToInternationalThe method takes one parameter named prefix -- values only '00' and '+'phoneNumber=AlgerianMobilePhoneNumber('0770000000')phoneNumber.convertToInternational()#'00213770000000'phoneNumber.convertToInternational('00')#'00213770000000'phoneNumber.convertToInternational('+')#'+213770000000'convertToLocalThe method convert the internaltionl number to local one. Accepts both '00213' and '+213'phoneNumber=AlgerianMobilePhoneNumber('00213770000000')phoneNumber.convertToLocal()#'0770000000'NOTE: convertToInternational and convertToLocal does not change the number instance so you can assign it to a variable. If you want to change the class instance use changeNumber instead to avoid mistakes.ContributionContributions are welcome to give the best of this package.Clone the repo:$gitclonegit@github.com:mohamine18/python_algerian_mobile_phone_number.gitEnter the cloned repository directory.Testing:Install pytest:$pipinstallpytestRun test.py script for unit testing:$pytesttest.pyLicenseMIT License.
Package: python-algorithm-examples
python-algorithm-examplesCopyright (C) 2023Vincent A. Cicirello.AboutThe current purpose of this repository is to maintain examples of algorithms
implemented in Python that I use when teaching Stockton University course
CSCI 4104 Data Structures & Algorithms II. Most of my examples are currently
maintained outside of git and GitHub, but I plan to slowly add them here.LicenseAll source code found in this repository is licensed under theGPL-3.0.
Package: python-alias
从mac换到windows，苦于没有alias给命令取别名，只好自己简单开发一个了。安装pip install -U python-alias使用palias --help查看支持的命令主要命令使用如下：添加别名：palias add gs git status表示gs为命令git status的别名别名列表：palias list执行命令: 直接终端输入gs，代表执行git status命令删除别名：palias del --name gs
Package: python-aliexpress-api
AliExpress API wrapper for PythonA simple Python wrapper for theAliExpress Open Platform API. This module allows getting information and affiliate links from AliExpress using the official API in an easier way.FeaturesObject oriented interface for simple usage.Requests follow theofficial documentation.Ask for new features through theissuessection.Join ourTelegram groupfor support or development.InstallationYou can install or upgrade the module with:pip install python-aliexpress-api --upgradeUsage guideImport and initialize the API:fromaliexpress_apiimportAliexpressApi,modelsaliexpress=AliexpressApi(KEY,SECRET,models.Language.EN,models.Currency.EUR,TRACKING_ID)Get products information:products=aliexpress.get_products_details(['1000006468625','https://aliexpress.com/item/1005003091506814.html'])print(products[0].product_title,products[1].target_sale_price)Get affiliate link:affiliate_links=aliexpress.get_affiliate_links('https://aliexpress.com/item/1005003091506814.html')print(affiliate_links[0].promotion_link)Get hotproducts:hotproducts=aliexpress.get_hotproducts(keywords='bluetooth earphones',max_sale_price=3000)print(hotproducts.products[0].product_main_image_url)Get categories:parent_categories=aliexpress.get_parent_categories()child_categories=aliexpress.get_child_categories(parent_categories[0].category_id)LicenseCopyright © 2020 Sergio Abad. Seelicensefor details.
Package: python-alis
ALIS: Algorithmic Library for ScalabilityALIS: Algorithmic Library for Scalability is a Python package and a good accompanying reference for Leskovec, Rajaraman, and Ullman'sMining of Massive Datasets. This book currently covers topics from Chapters 3 through 5, and Chapter 10 of the reference.This book provides:Additional mathematical and code examplesAdditional exercises both theoretical and practicalRe-useable API for scalable data miningALIS is inspired by theDive into Deep Learninginteractive book with code, math, and discussion.InstallationALIS was built using a Python version of 3.8.12. To install the package, perform the following steps:Clone thealisgithub repositoryhttps://github.com/phdinds-aim/alis.gitInstall the environment or the requirements file via conda or pipInstallation of required libraries viapippip install -r requirements.txtInstallation of required libraries viacondaconda env create -f environment.yml
conda activate alisInstall thealispackage as an editable source.pip install -e .Done! 🎉 Thealispackage is now installed in your machine.AuthorsALIS is proudly made by the Asian Institute of Management's PhDinDS batch 2024Leodegario Lorenzo IIMichael DorosanJoseph Christian NoelAntonio BrizaRanzivelle Marianne Roxas-Villanuevawith supervision of our Professor Christian Alis, PhD.
Package: python-alist-api
项目描述Alist的 python api。Alist api的说明可以参考API Document。仅支持Alist v2。安装pipinstallpython-alist-api测试安装pytest和pytest-ordering。pip install pytest pytest-ordering在conftest.py设置BASE_URL和PASSWORD。在项目根目录执行pytest命令开始测试。使用方法完整的信息请参考文档。示例1：创建alist客户端匿名登录，只能使用/publicAPI。fromalistimportAlistClientclient=AlistClient('https://your.alist.domain')使用密码或授权码登录，能使用/public和/adminAPI。fromalistimportAlistClientclient=AlistClient('https://your.alist.domain',password='xxxxx')# 或者client=AlistClient('https://your.alist.domain',authorization='xxxxx')示例2：获取alist版本号version=client.public.settings.version()示例3：获取文件列表。result=client.public.path('/xxxxx')示例4：打开搜索需要使用密码或授权码登录客户端。client.admin.settings.enable_search(True)示例5：上传文件需要使用密码或授权码登录客户端，或开启了游客上传。client.public.upload(['path/to/file1','path/to/file2'],'/target/path')
Package: python-aliyun-api-gateway
from aliyun.api.gateway.sdk import client
from aliyun.api.gateway.sdk.http import request
from aliyun.api.gateway.sdk.common import constant

host = "http://xxxx"
url = "/api/vrp/express/areas"

cli = client.DefaultClient(app_key="key", app_secret="secret")

req_post = request.Request(host=host, protocol=constant.HTTP, url=url, method="GET", time_out=30000)

data = cli.execute(req_post)

print(data)
Package: python-almanachclient
This is a client library for Almanach built on the Almanach REST API.It provides a Python API (The almanachclient module) and a command-line
tool (almanach-client).Free software: Apache licenseSource:http://git.openstack.org/cgit/openstack/python-almanachclientBugs:http://bugs.launchpad.net/almanachDocumentation:https://python-almanachclient.readthedocs.io/
Package: python-alogger
Python alogger is a small python library to parse resource manager logs. It is
used by Karaage. For more information onKaraage, please see thedocumentation.Alogger currently supports the following log file formats:FormatStatusTorque/PBSUsed in productionSlurmUsed by 3rd partySun Grid EngineInitial designWindows HPCBrokenAll information on python-alogger is currently located on thegithub site.
Package: python-amazon-paapi
Amazon Product Advertising API 5.0 wrapper for PythonA simple Python wrapper for thelast version of the Amazon Product Advertising
API.
This module allows interacting with Amazon using the official API in an easier way.FeaturesObject oriented interface for simple usage.Get information about a product through its ASIN or URL.Get item variations or search for products on Amazon.Get browse nodes information.Get multiple results at once without the 10 items limitation from Amazon.Configurable throttling to avoid requests exceptions.Type hints to help you coding.Support forall available countries.Ask for new features through theissuessection.Join ourTelegram groupfor support or development.Check thedocumentationfor reference.InstallationYou can install or upgrade the module with:pip install python-amazon-paapi --upgradeUsage guideBasic usage:fromamazon_paapiimportAmazonApiamazon=AmazonApi(KEY,SECRET,TAG,COUNTRY)item=amazon.get_items('B01N5IB20Q')[0]print(item.item_info.title.display_value)# Item titleGet multiple items information:items=amazon.get_items(['B01N5IB20Q','B01F9G43WU'])foriteminitems:print(item.images.primary.large.url)# Primary image urlprint(item.offers.listings[0].price.amount)# Current priceUse URL insted of ASIN:item=amazon.get_items('https://www.amazon.com/dp/B01N5IB20Q')Get item variations:variations=amazon.get_variations('B01N5IB20Q')foriteminvariations.items:print(item.detail_page_url)# Affiliate urlSearch items:search_result=amazon.search_items(keywords='nintendo')foriteminsearch_result.items:print(item.item_info.product_info.color)# Item colorGet browse node information:browse_nodes=amazon.get_browse_nodes(['667049031','599385031'])forbrowse_nodeinbrowse_nodes:print(browse_node.display_name)# The name of the nodeGet the ASIN from URL:fromamazon_paapiimportget_asinasin=get_asin('https://www.amazon.com/dp/B01N5IB20Q')Throttling:Throttling value represents the wait time in seconds between API calls, being the
default value 1 second. Use it to avoid reaching Amazon request limits.amazon=AmazonApi(KEY,SECRET,TAG,COUNTRY,throttling=4)# Makes 1 request every 4 secondsamazon=AmazonApi(KEY,SECRET,TAG,COUNTRY,throttling=0)# No wait time between requestsContributionCreating pull requests for this repo is higly appreciated to add new features or solve
bugs. To help during development process, githooks can be activated to run some scripts
before pushing new commits. This will run checks for code format and tests, to ensure
everything follows this repo guidelines. Use next command to activate them:git config core.hooksPath .githooksThe same checks will also run on the repo with GitHub Actions to ensure all tests pass
before merge.LicenseCopyright © 2021 Sergio Abad. Seelicensefor
details.
Package: python-amazon-product-api
This module offers a light-weight access to the latest version of the Amazon
Product Advertising API without getting in your way.TheAmazon Product Advertising APIprovides programmatic access to Amazon’s
product selection and discovery functionality. It has search and look up
capabilities, provides information on products and other features such as
Reviews, Similar Products and New and Used listings.Basic usageIn order to use this API you’ll obviously need an Amazon Associates Web Service
account for which you must with Amazon athttp://aws.amazon.com. Each account
contains anAWSAccessKeyIdand aSecretKey.Create a file~/.amazon-product-apicontaining the following data:[Credentials]
access_key = <your access key>
secret_key = <your secret key>
associate_tag = <your associate id>Here is an example how to use the API to search for books of a certain
publisher:from amazonproduct import API
api = API(locale='de')

# get all books from result set and
# print author and title
for book in api.item_search('Books', Publisher='Galileo Press'):
    print '%s: "%s"' % (book.ItemAttributes.Author,
                        book.ItemAttributes.Title)In the background the API will iteratively retrieve all available result pages
from Amazon and return each book in turn as alxml.objectifiedelement.In general, this module offers a number of convenience methods that will deal
with the nitty-gritty details like error checking so you won’t have to. Please
refer to the extensivedocumentationfor more details.InstallationIn order to install python-amazon-product-api you can use:pip install python-amazon-product-apior download the source package fromhttp://pypi.python.org/pypi/python-amazon-product-api, untar it and runpython setup.py installYou’ll also find binaries there to make your life easier if you happen to use
a Windows system. If not, please send me an e-mail and complain loudly!DevelopmentThe development version is availablebitbucket.org. Feel free to clone the
repository and add your own features.hg clone http://bitbucket.org/basti/python-amazon-product-api/Patches are always welcome! Please make sure that your change does not break
the tests!LicenseThis module is release under the BSD License. You can find the full text of
the license in the LICENSE file.
Package: python-amazon-scraper
Scrap Data from AmazonExtract Product information from Amazon.GitHub Repo:https://github.com/sannjayy/python_amazon_scraperInstallaionDo the following in your virtualenv:pip install python_amazon_scraperImport:from python_amazon_scraper import ExtractAmazonMinimal Code Example:from python_amazon_scraper import ExtractAmazon
url = 'AMAZON PRODUCT URL'
product = ExtractAmazon(url)

print("Product Title = ", product.get_title())
print("Product Price = ", product.get_price())
print("Availability = ", product.is_available())
print("Has Deal = ", product.has_deal())

print("Product Images = ", product.get_images())DEMO OUTPUT:Product Title = Apple iPhone 12 (64GB) - Purple
Product Price = Not Available
Availability = False
Has Deal = False

Product Images = ['https://m.media-amazon.com/images/I/31jQ91XUDhS._SY445_SX342_QL70_FMwebp_.jpg']Developed bySanjay Sikdar.📫me@sanjaysikdar.dev