Saravanan666/pypi-org huggingface dataset:
Package: besocurl
besocurlA library for HTTP / HTTPs requests that supports SSPI and PAC file parsing(Automatic proxy settings detection)
besoCurl by Omri BasoDate: 21/10/2020All right reserved to Omri Baso for this librarycredits for pieces of code taken from other places are inside the codesome code was taken from the Px projecthttps://github.com/genotrance/px/blob/master/px.pyDownload pycurl from:https://dl.bintray.com/pycurl/pycurl/Dependencies:pycurl-7.43.0.2  (I added the installiation for Windows that matchs python 3.6 because thats the one i used to build this library)  
  python 3.x 
  Installtion:  
  Windows:
        1. Install pycurl.exe from here to your python version https://dl.bintray.com/pycurl/pycurl/
  Linux:
        1. apt install libcurl4-openssl-dev libssl-dev  
        2. apt install python-dev python3-dev build-essential libssl-dev libffi-dev libxml2-dev libxslt1-dev zlib1g-dev  
        3. python3 -m pip install setuptools wheel pycurlTechnical Informationthe besoCurl project comes to make Pycurl more human usable while implmenting
more automatic approch to the library, the library supports SSPI authentication to proxies over HTTP or HTTP(s)
besoCurl has simple functions such as:importbesoCurldefmain():url='http://192.168.189.136/'useragents='Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; Googlebot/2.1; Safari/537.36'headers=["Accept: OmriBeso","Content-type: application/json"]r=besoCurl.get(url,headers=headers,user_agent=useragents,auto_detect_proxy=True)print(r.text)main()OR for a post requestimportbesoCurldefmain():url='http://192.168.189.136/'useragents='Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; Googlebot/2.1; Safari/537.36'headers=["Accept: OmriBeso","Content-type: application/json"]r=besoCurl.post(url,data=data,headers=headers,user_agent=user_agent,auto_detect_proxy=True)print(r.text)main()the code infront of you will return the HTML content of the url inserted into the function,user the User-Agent set to it and the headers.
also -auto_detect_proxy=Truewill try to fetch the windows settings for accessing the internet.
if a PAC file is configured it will download it and parse the Javascript in order for you go throughthe proxy, if a PAC file is configured AND a manual proxy is set, it will choose the PAC path instead.if only a manual proxy is set it will use it, if no proxy is configured i will not use any proxies and go directly to the internet.if a proxy is set, the HTTP request will use SSPI to authenticate to the proxy without entering any credentials.More Information about how it works:https://docs.microsoft.com/en-us/windows/win32/rpc/security-support-provider-interface-sspi-In general i recommend to useauto_detect_proxy=Trueall the time.you can also set a proxy manully when invoking a request as the variablesproxies=[("127.0.0.1", 8080)]proxies must have the format mentioned above.TODO:add WPAD (Auto Detect Settings support) - DONE 06/01/2021,add PUT method,  - DONE 06/01/2021and multipart forms on POST requestsadd session options so request will not authenticate everyime they are sent all over again
Package: besser
BESSERBESSER is alow-modelinglow-codeopen-source platform. BESSER (Building bEtter Smart Software fastER) is funded thanks to anFNR Pearl grantled by theLuxembourg Institute of Science and Technologywith the participation of theSnt/University of Luxembourgand open to all your contributions!The BESSER low-code platform is built on top of our Python-based personal interpretation of a "Universal Modeling Language" (yes, heavily inspired and a simplified version of the better known UML, the Unified Modeling Language)Check out the officialdocumentationBasic InstallationBESSER works with Pyhton 3.9+. We recommend creating a virtual environment (e.g.venv,conda).The latest stable version of BESSER is available in the Python Package Index (PyPi) and can be installed using$ pip install besserBuilding From SourceIf you prefer to obtain the full code, you can clone the git repository.$ git clone https://github.com/BESSER-PEARL/BESSER.git
$ cd BESSERInstallbuild, then generate and install thebesserpackage. Remember to replace*.*.*by the package version number.$ pip install --upgrade build
$ python -m build
$ pip install dist/besser-*.*.*-py3-none-any.whlYou can check the installation of thebesserpackage.$ pip listContributingWe encourage contributions from the community and any comment is welcome!If you are interested in contributing to this project, please read theCONTRIBUTING.mdfile.Code of ConductAt BESSER, our commitment is centered on establishing and maintaining development environments that are welcoming, inclusive, safe and free from all forms of harassment. All participants are expected to voluntarily respect and support ourCode of Conduct.GovernanceThe development of this project follows the governance rules described in theGOVERNANCE.mddocument.LicenseThis project is licensed under theMITlicense.
Package: besser-bot-framework
BESSER Bot FrameworkThe BESSER Bot Framework (BBF) is part of theBESSER(Building Better Smart Software Faster) project. It aims to make
the design and implementation of chatbots easier and accessible for everyone.Check out the officialdocumentation.Quick startRequirementsPython 3.11Recommended: Create a virtual environment
(e.g.venv,conda)Install thepackage:pipinstallbesser-bot-frameworkExample botsgreetings_bot: Very simple bot for the first contact with the frameworkweather_bot: Introducing entitiestelegram_bot: Introducing theTelegramPlatformFor more example bots, check out theBBF-bot-examplesrepository!
Package: bessie
# Bessie - Base API ClientTable of Contents[About](#about)[Building Clients](#building-clients)[Installation](#installation)[License](#license)## AboutBessie is a small base framework for building client APIs.## Building ClientsTheBaseClientclass is designed to be subclassed. Each method is also designed to be overriden to include custom logic for specific APIs (such as injecting an authorization header by overriding the_prepare_requestmethod).## InstallationBessie is not yet avaialbe on PyPI, but should be soon. You can always install it from the repository though.## LicenseBessie is distributed under the terms of the [MIT License](https://choosealicense.com/licenses/mit).
Package: best
BEST: Bayesian Estimation Supersedes the t-TestPython implementation of a Bayesian model to replace t-tests with Bayesian estimation,
following the idea described in the following publication:John K. Kruschke.Bayesian estimation supersedes the t test.Journal of Experimental Psychology: General, 2013, v.142 (2), pp. 573-603. (doi: 10.1037/a0029146)The package implements Bayesian estimation of the mean of one or two groups,
and plotting functions for the posterior distributions of variables such as the effect size,
group means and their difference.DocumentationSee the documentation for more information, atbest.readthedocs.io.RequirementsPython ≧ 3.7SciPyMatplotlib(≧ 3.0.0) for plottingPyMC3ExamplesA complete analysis and plotting is done in just a few lines:>>>best_out=best.analyze_two(group1_data,group2_data)>>>fig=best.plot_all(best_out)>>>fig.savefig('best_plots.pdf')For example, the two-group analysis inexamples/smart_drug.pyproduces the following output:More detailed analysis of the same data can be found in the Jupyter notebookexamples/Smart drug (comparison of two groups).ipynb.An example single-group analysis can be found inexamples/paired_samples.py.Thedocumentationdescribes the API in detail.InstallationEnsure your Python version is sufficiently up-to-date (at least 3.7):$python--version
Python3.7.12Then install this package and its dependencies with PIP:$pipinstallbestDeveloper notesTestsRunning the tests requirespytest(pip install pytest),
and then can be run with:$python-mpytesttestsThe plotting tests only ensure that theplot_allfunction does not throw errors,
and the plots need manual verification attests/data/plot_all_*.pdf.DocumentationThe documentation can be built with Sphinx:$cddocs
$makehtml
Package: best-before
Copyright (c) 2014, Friedrich Paetzke (paetzke@fastmail.fm)
All rights reserved.Decorate your Python functions with a date of expiry.An example:frombest_beforeimportbest_before@best_before('2014-06-06')defmy_func():passIf you run this code after 2014-06-06 it will explode - or just throw an exception.To installbest-beforejust install withpip.$pipinstallbest-before
Package: bestbuyapi
Python Best Buy API WrapperThis is a small python wrapper implementation for BestBuy API. This
implementation does not cover all the APIs from BestBuy yet. As of now,
it only supports the calls to the Products, Categories, bulk and Cover
APIs. Locations and Reviews API are in the making.The wrapper doesn't assume any design requirements on the user end.
Queries to the API endpoints are done similar to what you would put in
the browser with the convenience of having python prepare for you the
query, url, and interpret the response.NOTICE: This project is only supported by python 3.6, 3.7, 3.8. If you
need support for an older version of python3, please reach out to me.FeaturesQuery Bulk BestBuy APIQuery Stores BestBuy API (by id, currently)Query Products BestBuy APIQuery Categories BestBuy APIObtain queries result in JSON or XMLFor details on how to use the Best Buy API go to:https://developer.bestbuy.com/documentationInstall$ pip install BestBuyAPIHow to use Product, Category, Store and Bulk APIs>>> from bestbuy import BestBuyAPI
>>> bb = BestBuyAPI("YourSecretAPIKey")
>>>
>>> a_prod = bb.products.search(query="sku=9776457", format="json")
>>> a_cat = bb.category.search_by_id(category_id="abcat0011001", format="json")
>>> all_categories = bb.bulk.archive("categories", "json")}FAQIs there any difference between /api.bestbuy.com/ and
api.remix.bestbuy.com?A:// This is the response from BestBuy Dev department: "There is no
difference, they serve the same data - we just consolidated domains.
The official url to use is api.bestbuy.com though."Any questions please feel free to email me at:luis@lv10.me
Package: best-buy-scraper
Best Buy ScraperEnsure you stay ahead of your competitors with our real-timeBest Buy Scraper. Aimed at effortlessly gathering data, it quickly delivers results. We’ve provided a brief guide below that shows precisely how the Best Buy Scraper functions with specific code examples that will help you understand and use the scraper hassle-free.How it worksYou can get Best Buy results by providing your own URLs to our service. We can return the HTML of any Best Buy page you like.Python code exampleThe example below illustrates how you can get an eBay product page result in HTML format.importrequestsfrompprintimportpprint# Structure payload.payload={'source':'universal_ecommerce','url':'https://www.bestbuy.com/site/samsung-galaxy-z-flip4-128gb-unlocked-graphite/6512618.p?skuId=6512618','geo_location':'United States','parse':True,}# Get response.response=requests.request('POST','https://realtime.oxylabs.io/v1/queries',auth=('user','pass1'),json=payload,)# Instead of response with job status and results url, this will return the# JSON response with the result.pprint(response.json())Find code examples for other programming languageshereOutput Example{"results":[{"content":{"url":"https://www.bestbuy.com/site/samsung-galaxy-z-flip4-128gb-unlocked-graphite/6512618.p?skuId=6512618&intl=nosplash","price":{"price":999.99,"currency":"USD"},"title":"Samsung - Galaxy Z Flip4 128GB (Unlocked) - Graphite","rating":{"count":0,"score":0},"product_id":"6512618","is_sold_out":null,"parse_status_code":12000,"additional_information":[{"name":"Model","value":"SM-F721UZAAXAA"},{"name":"SKU","value":"6512618"},{"name":"Release Date","value":"08/26/2022"}]},"created_at":"2022-08-18 14:00:57","updated_at":"2022-08-18 14:01:01","page":1,"url":"https://www.bestbuy.com/site/samsung-galaxy-z-flip4-128gb-unlocked-graphite/6512618.p?skuId=6512618&intl=nosplash","job_id":"6966031187999462401","status_code":200,"parser_type":"bestbuy_product"}]}What is provided above shows the exact process of how you can extract necessary data effortlessly with Best Buy Scraper. Easily collect product information, ranging from reviews and prices to product descriptions and other features, thus allowing you to retain or gain a competitive advantage.
Package: bestcaptchasolverapi2
BestCaptchaSolver.com python2 API wrapperbestcaptchasolver-python2 is a super easy to use bypass captcha python2 API wrapper for bestcaptchasolver.com captcha serviceInstallationgit clone https://github.com/bestcaptchasolver/bestcaptchasolver-python2Dependenciespip install requestsUsage# make sure you've changed access_key, page_url, etc in main.py
python main.pyHow to use?Simply require the module, set the auth details and start using the captcha service:frombestcaptchasolverapi2importBestCaptchaSolverAPISet access_token for authenticationaccess_token='access_token_here'# get your access token from https://bestcaptchasolver.com/accountbcs=BestCaptchaSolverAPI(ACCESS_TOKEN)Once you've set your authentication details, you can start using the APIGet balancebalance=bcs.account_balance()Solve image captchadata={}data['image']='captcha.jpg'# optional parametersdata['is_case']=ifcasesensitivesettoTrue,default:Falsedata['is_phrase']=ifphrase,settoTrue,default:Falsedata['is_math']=Trueifcaptchaismath,default:Falsedata['alphanumeric']=1(digitsonly)or2(lettersonly),default:allcharactersdata['minlength']=minimumlengthofcaptchatext,default:anydata['maxlength']=maximumlengthofcaptchatext,default:anybcs.submit_image_captcha(data)The image submission works with both files and b64 encoded strings.
For setting the affiliate_id, set theaffiliate_idparameterSubmit recaptcha detailsFor recaptcha submission there are two things that are required.page_urlsite_keytype (optional)v3_action (optional)v3_min_score (optional)user_agent (optional)affiliate_id (optional)proxy (optional)captcha_id=bcs.submit_recaptcha({'page_url':'page_url_here','site_key':'sitekey_here')This method returns a captchaID. This ID will be used next, to retrieve the g-response, once workers have
completed the captcha. This takes somewhere between 10-80 seconds.Geetestdomaingtchallengecaptcha_id=bcs.submit_geetest({'domain':'DOMAIN_HERE','gt':'GT_HERE','challenge':'CHALLENGE_HERE'})Use captcha_id to retrievesolutionfor geetestCapypage_urlsite_keycaptcha_id=bcs.submit_capy({'page_url':'PAGE_URL_HERE','site_key':'SITEKEY_HERE'})Use captcha_id to retrievesolutionfor capyRetrieve captcha response (all captchas)image_text = bcs.retrieve(captcha_id)['text']
gresponse = bcs.retrieve(recaptcha_id)['gresponse']
solution = bcs.retrieve(recaptcha_id)['solution']If submitted with proxy, get proxy statusproxy_status = bcs.retrieve(recaptcha_id)['proxy_status']Set captcha badWhen a captcha was solved wrong by our workers, you can notify the server with it's ID,
so we know something went wrong.bcs.set_captcha_bad(captcha_id)ExamplesCheck main.pyLicenseAPI library is licensed under the MIT LicenseMore informationMore details about the server-side API can be foundherecaptcha, bypasscaptcha, decaptcher, decaptcha, 2captcha, deathbycaptcha, anticaptcha,
bypassrecaptchav2, bypassnocaptcharecaptcha, bypassinvisiblerecaptcha, captchaservicesforrecaptchav2,
recaptchav2captchasolver, googlerecaptchasolver, recaptchasolverpython, recaptchabypassscript, bestcaptchasolver
Package: bestcaptchasolverapi3
BestCaptchaSolver.com python3 API wrapperbestcaptchasolver-python3 is a super easy to use bypass captcha python3 API wrapper for bestcaptchasolver.com captcha serviceInstallationgit clone https://github.com/bestcaptchasolver/bestcaptchasolver-python3Dependenciespip install requestsUsage# make sure you've changed access_key, page_url, etc in main.py
python3 main.pyHow to use?Simply require the module, set the auth details and start using the captcha service:frombestcaptchasolverapi3.bestcaptchasolverapiimportBestCaptchaSolverAPISet access_token for authenticationaccess_token='access_token_here'# get your access token from https://bestcaptchasolver.com/accountbcs=BestCaptchaSolverAPI(ACCESS_TOKEN)Once you've set your authentication details, you can start using the APIGet balancebalance=bcs.account_balance()Submit image captchadata={}data['image']='captcha.jpg'# optional parametersdata['is_case']=ifcasesensitivesettoTrue,default:Falsedata['is_phrase']=ifphrase,settoTrue,default:Falsedata['is_math']=Trueifcaptchaismath,default:Falsedata['alphanumeric']=1(digitsonly)or2(lettersonly),default:allcharactersdata['minlength']=minimumlengthofcaptchatext,default:anydata['maxlength']=maximumlengthofcaptchatext,default:anybcs.submit_image_captcha(data)The image submission works with both files and b64 encoded strings.
For setting the affiliate_id, set theaffiliate_idparameterSubmit recaptcha detailsFor recaptcha submission there are two things that are required.page_urlsite_keytype (optional)v3_action (optional)v3_min_score (optional)user_agent (optional)affiliate_id (optional)proxy (optional)bcs.submit_recaptcha({'page_url':'page_url_here','site_key':'sitekey_here')This method returns a captchaID. This ID will be used next, to retrieve the g-response, once workers have
completed the captcha. This takes somewhere between 10-80 seconds.Geetestdomaingtchallengecaptcha_id=bcs.submit_geetest({'domain':'DOMAIN_HERE','gt':'GT_HERE','challenge':'CHALLENGE_HERE'})Use captcha_id to retrievesolutionfor geetestCapypage_urlsite_keycaptcha_id=bcs.submit_capy({'page_url':'PAGE_URL_HERE','site_key':'SITEKEY_HERE'})Use captcha_id to retrievesolutionfor capyRetrieve captcha response (all captchas)image_text = bcs.retrieve(captcha_id)['text']
gresponse = bcs.retrieve(recaptcha_id)['gresponse']If submitted with proxy, get proxy statusproxy_status = bcs.retrieve(recaptcha_id)['proxy_status']Set captcha badWhen a captcha was solved wrong by our workers, you can notify the server with it's ID,
so we know something went wrong.bcs.set_captcha_bad(captcha_id)ExamplesCheck main.pyLicenseAPI library is licensed under the MIT LicenseMore informationMore details about the server-side API can be foundherecaptcha, bypasscaptcha, decaptcher, decaptcha, 2captcha, deathbycaptcha, anticaptcha,
bypassrecaptchav2, bypassnocaptcharecaptcha, bypassinvisiblerecaptcha, captchaservicesforrecaptchav2,
recaptchav2captchasolver, googlerecaptchasolver, recaptchasolverpython, recaptchabypassscript, bestcaptchasolver
Package: bestchange-api
BestChange APIБиблиотека для работы с "api" сервиса bestchange.ru предоставит Вам возможность получить:курсы со всех направлений;валюты;обменные пункты;города;а так же кеширование всех этих данных.Установка:pip install bestchange-apiПример использования:frombestchange_apiimportBestChangeapi=BestChange()exchangers=api.exchangers().get()dir_from=93dir_to=42rows=api.rates().filter(dir_from,dir_to)title='Exchange rates in the direction (https://www.bestchange.ru/index.php?from={}&to={}){}:{}'print(title.format(dir_from,dir_to,api.currencies().get_by_id(dir_from),api.currencies().get_by_id(dir_to)))forvalinrows[:3]:print('{}{}'.format(exchangers[val['exchange_id']]['name'],val))Для обменных пунктов есть возможность сразу получить количество отзывов о них (работает, только если у обменника есть
хоть одно направление на BestChange):frombestchange_apiimportBestChangeapi=BestChange(exchangers_reviews=True)Все методы, реализованные на данный момент:frombestchange_apiimportBestChangeapi=BestChange(cache=True,cache_seconds=300,cache_path='/home/user/tmp/')api.is_error()# Возвращает False, если данные успешно загружены, иначе текст ошибкиapi.currencies().get()# Получить список всех валютapi.currencies().get_by_id(1)# Получить название или словарь определенной валютыapi.currencies().search_by_name('text')# Поиск валют по подстрокеapi.exchangers().get()# Получить список всех обменных пунктовapi.exchangers().get_by_id(1)# Получить название или словарь обменного пунктаapi.exchangers().search_by_name('text')# Поиск обменных пунктов по подстрокеapi.cities().get()# Получить список всех городовapi.cities().get_by_id(1)# Получить название или словарь городаapi.cities().search_by_name('text')# Поиск городов по подстрокеapi.rates().filter(1,2)# Возвращает курсы, отфильтрованный и отсортированных по направлению# Раздел "Популярное"currencies=api.currencies().get()forvalinapi.top().get():print(currencies[val['give_id']]['name'],'->',currencies[val['get_id']]['name'],':',round(val['perc'],2))Работа с прокси:frombestchange_apiimportBestChangeproxy={'http':'127.0.0.1','https':'127.0.0.1'}api=BestChange(proxy=proxy)
Package: best-choice
best-choice1 - pip Installpip install best-choice2 - all function#library
from bestchoice import Generate

#data
#object,price,importance level
table = [['pants',75,10],
         ['jeans',50,7],
         ['shirt',45,8],
         ['dress',65,7],
         ['ball',25,5]]

#call function generate
gen = Generate(table)

#all possibilities
for x in gen.list_all():
  print(x)

#call function to generate calculation results
#parameters 1 and 2 are columns for calculation
#in this case, the price and importance level
calc = gen.list_results([1,2])

#all calculated results
for x in calc:f
  print(x)

#new table after filter
#the first parameter 1 and 2 are index columns
#the second parameter 1 <= 200 filter your new table  
new = gen.list_best([1,2],[[1,'<=',200]])

#all filtered results
for x in new:
  print(x)3 - example to find best choice#library
from bestchoice import Generate

#data
#object,price,importance level
table = [['pants',75,10],
         ['jeans',50,7],
         ['shirt',45,8],
         ['dress',65,7],
         ['ball',25,5]]

#column for calculation
#in this case, the price and importance level
columns = [1,2]

#index of column importance
importance = 2

#filters where 1 is the price <= 200 dollars
filters = [[1,'<=',200]]

#call function generate
gen = Generate(table)

#get all possibilities
lista = gen.list_all()

#new table after filter
#the first parameter 1 and 2 are index columns
#the second parameter 1 <= price filter your new table 
res = gen.list_best(columns,filters)

#saves the best filtered result
top = max([sublist[-1] for sublist in res])

filters.append([importance,'==',top])
#table with new result
new = gen.list_best(columns,filters)

#set index of top values
best = [x[0] for x in new][0]

#result
print(f'This is your best choice: {", ".join([str(x[0]) for x in lista[best]])}')
Package: best-csv
best_csvThis library converts a csv file to a Python dictionary. "So what!?!?" you may ask :). This library does it better, more efficienty and greatly improves your querry times over the built in csv Python library. The built in csv Python library has a lookup complexity
of O(n) where runtime grows directly in proportion to n; best_csv has a lookup complexity of O(1) which means that it takes a constant time to lookup regardless of the dataset size.Now, this library might not be ideal for all csv datasets but is great for datasets that have a column that we can use as a unique identifier for any given row of information. For example, if we have a dataset of employees and each row is an employee record we can use the employee IDs as the key for any given employee in the dictionary.The standard Python csv library will create a list of dicts so if you want to search for specific employee IDs you have to potentialy loop though all of the dataset to find the employee you want; whereas with best_csv you simply call the employee ID you need without having to loop through the dataset. This is great if you have massive datasets and you are running multiple querries.InstallationUse the package manager pip to install dnac_device_list.pipinstallbest_csvUsage/Examplesimportbest_csv# Headers in employee_data.csv# User Id,First Name,Last Name,Email,Phone,Date of birth,Job Title# Convert your csv to dict with column 1 as the unique key for any given row.result=best_csv.csv_to_dict("employee_data.csv",1)print(result['AB123'])# Print info of Employee ID AB123result['AB123'] print simulation{'First Name': 'Wesley', 'Last Name': 'Chung', 'Email': 'wcab123s@acme.org', 'Phone': '(280)277-4903', 'Date of birth': '1953-04-21', 'Job Title': 'Security Engineer'}Authors@Alexios Nersessian