Saravanan666/pypi-org huggingface dataset:
Package: python-amazon-sp-api
PYTHON-AMAZON-SP-APIAmazon Selling-Partner APIA wrapper to accessAmazon's Selling Partner APIwith an easy-to-use interface.SupportsData KioskVersion 1 Upgrade noticeVersion 1 removes AWS IAM or AWS Signature Version 4 authentication.
You can now use the library without AWS credentials.
For compatibility reasons, you can still pass AWS credentials, but they are silently ignored.Q & AIf you have questions, please ask them in GitHub discussionsorDonate:heart: DonateInstallationpip install python-amazon-sp-api
pip install "python-amazon-sp-api[aws]" # if you want to use AWS Secret Manager Authentication.
pip install "python-amazon-sp-api[aws-caching]" # if you want to use the Cached Secrets from AWSUsagefromsp_api.apiimportOrdersfromsp_api.apiimportReportsfromsp_api.apiimportDataKioskfromsp_api.apiimportFeedsfromsp_api.baseimportSellingApiExceptionfromsp_api.base.reportTypesimportReportTypefromdatetimeimportdatetime,timedelta# DATA KIOSK APIclient=DataKiosk()res=client.create_query(query="{analytics_salesAndTraffic_2023_11_15{salesAndTrafficByAsin(startDate:\"2022-09-01\"endDate:\"2022-09-30\"aggregateBy:SKU marketplaceIds:[\"ATVPDKIKX0DER\"]){childAsin endDate marketplaceId parentAsin sales{orderedProductSales{amount currencyCode}totalOrderItems totalOrderItemsB2B}sku startDate traffic{browserPageViews browserPageViewsB2B browserPageViewsPercentage browserPageViewsPercentageB2B browserSessionPercentage unitSessionPercentageB2B unitSessionPercentage}}}}")print(res)# orders APItry:res=Orders().get_orders(CreatedAfter=(datetime.utcnow()-timedelta(days=7)).isoformat())print(res.payload)# json dataexceptSellingApiExceptionasex:print(ex)# report requestcreateReportResponse=Reports().create_report(reportType=ReportType.GET_MERCHANT_LISTINGS_ALL_DATA)# submit feed# feeds can be submitted like explained in Amazon's docs, or simply by calling submit_feedFeeds().submit_feed(<feed_type>,<file_or_bytes_io>,content_type='text/tsv',**kwargs)# PII DataOrders(restricted_data_token='<token>').get_orders(CreatedAfter=(datetime.utcnow()-timedelta(days=7)).isoformat())# or use the shortcutorders=Orders().get_orders(RestrictedResources=['buyerInfo','shippingAddress'],LastUpdatedAfter=(datetime.utcnow()-timedelta(days=1)).isoformat())DocumentationDocumentation is availablehereNew endpointsYou can create a new endpoint file by runningmake_endpoint <model_json_url>make_endpointhttps://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/listings-restrictions-api-model/listingsRestrictions_2021-08-01.jsonThis creates a ready to use client. Please consider creating a pull request with the new code.ADVERTISING APIYou can use nearly the same client for the Amazon Advertising API.@denisneufhas builtPython-Amazon-Advertising-APIon top of this client.
Check it outhereDISCLAIMERWe are not affiliated with AmazonLICENSEBase ClientThe client is pretty extensible and can be used for any other API. Check it out here:API Client
Package: python-amazon-unthrottled-paapi
Amazon Unthrottled Access to Amazon Product Advertising API for PythonA plain simple Python client forAmazon Product Advertising API. This client is implemented following thisNode.js API clientto gives you unthrottled access to Amazon product data using ashared cache. Therefore it might not comply with the Amazon's specifications.FeaturesAccess to Amazon product data from a caching service provided byCommerceDNA, so you no longer run into the RequestThrottled error.DependenciesAn Amazon Product Advertising accountAWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and AWS_ASSOCIATE_TAGInstallationpip install python-amazon-unthrottled-paapiUsageImport libraryfromamazon.apiimportAmazonCreate clientamazon_client=Amazon(AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY,AWS_ASSOCIATE_TAG)ItemSearchThe ItemSearch operation searches for items on Amazon. The Product Advertising API returns up to ten items per search results page.response_text=amazon_client.ItemSearch(Keywords='Quentin Tarantino',SearchIndex='DVD')ItemLookupGiven an Item identifier, the ItemLookup operation returns some or all of the item attributes, depending on the response group specified in the request.response_text=amazon_client.ItemLookup(ItemId='B074J6F41V')BrowseNodeLookupGiven a browse node ID, BrowseNodeLookup returns the specified browse nodeâ€™s name, children, and ancestors. The names and browse node IDs of the children and ancestor browse nodes are also returned. BrowseNodeLookup enables you to traverse the browse node hierarchy to find a browse node.response_text=amazon_client.BrowseNodeLookup(BrowseNodeId='154606011')LicenseCopyright © 2020apptivizSeeMIT Licensefor details.
Package: python-amcards
InstallationTo install python-amcards, simply run this command in your terminal:$ pip install python-amcardsUsageAll interactions with the AMcards API are made through theAMcardsClientclass.First, create anAMcardsClientas follows:>>> from amcards import AMcardsClient
>>> client = AMcardsClient('youraccesstoken')Here'youraccesstoken'will be replaced with a string containing your AMcards access token. You can generate onehere.Now we can perform all operations supported by theclient.Let’s try usingsend_cardto send a card to a single recipient:>>> res = client.send_card(
...     template_id='123',
...     initiator='myintegration123',
...     shipping_address={
...         'first_name': 'Ralph',
...         'last_name': 'Mullins',
...         'address_line_1': '2285 Reppert Road',
...         'city': 'Southfield',
...         'state': 'MI',
...         'postal_code': '48075',
...         'country': 'US'
...     }
... )
>>> res.card_id
1522873
>>> res.total_cost
442
>>> res.message
'Card created successfully!'
>>> res.user_email
'example@example.com'
>>> res.shipping_address
{'last_name': 'Mullins', 'address_line_1': '2285 Reppert Road', 'first_name': 'Ralph', 'country': 'US', 'state': 'MI', 'postal_code': '48075', 'city': 'Southfield'}TheAMcardsClientsupports many more operations, for full documentation seeRead the Docs.
Package: python-android-manager
Android Manager By Python中文文档InfoThis is an Android Manage App Designed By WindowsRegedit.App ScreenshotInstallationUse pip to install (recommend):pipinstallpython-android-managerAnd to boot like that:android-managerUse source code to install:gitclonehttps://github.com/WindowsRegedit/PythonAndroidPhoneManager.gitcdPythonAndroidPhoneManager
pythonsetup.pyinstallAnd boot like Pip Installation:android-managerTranslation SupportOpen the source, You will see a "translations" folder.It contains Chinese Support like that:{"Screen Resolution":"屏幕分辨率","Device Product":"设备分类","Device Model":"设备型号","Transport ID":"传输ID","Android-ID":"Android-ID","IPv4 Address":"IPv4地址","Android Phone Manager":"安卓手机管理器","Common":"常用","Analyze APK":"分析APK","Select File":"选择文件","name":"包名","versionCode":"版本代码","versionName":"版本名称","platformBuildVersionName":"平台编译版本名称","platformBuildVersionCode":"平台编译版本代码","compileSdkVersion":"编译SDK版本","compileSdkVersionCodename":"编译SDK版本名称","APK File":"APK文件","Common Message":"常用信息","LaunchAble-activity":"可启动的服务","SDK Version":"SDK版本","Localization Message":"本地化信息","Localization Language":"本地化语言","Application-Label Localization":"应用名称本地化","device":"正常","offline":"离线(OffLine)","unknown":"未知","unauthorized":"未授权","Device Name":"设备名称","Device Status":"设备状态","Refresh":"刷新","Install App":"安装应用","Reboot Device":"重启设备","Get Root Permission":"获取Root权限","Run Shell Command":"运行Shell命令","Warning":"警告","Please Select A Device":"请选择一个设备","Please Select An Installer":"请选择一个安装包","Info":"提示","Successfully Get Root Permission":"成功获取Root权限","Unable To Get Root Permission\nError":"无法获取Root权限\n错误","Android Terminal":"安卓终端","When You Are Using It, May Be Cause The Device Not Able To Run, Please Use Carefully":"在使用过程中，有可能会导致设备无法正常运行，请谨慎使用","Normal Reboot":"正常重启","Reboot to Recovery":"重启到Recovery","Reboot to Bootloader":"重启到Bootloader","Reboot to SideLoad":"重启到SideLoad(侧载)","Reboot to SideLoad-Auto-Reboot":"重启至SideLoad-Auto-Reboot(侧载并自动重启)","Please Select Reboot Method":"请选择重启方式：","Reboot":"重启","Reboot Successfully":"重启成功","Android File Analyzer":"Android文件分析器","Settings":"设置","App Settings":"软件设置","Confirm":"确认","Success":"成功","Successfully changed language":"成功更改语言","Restart":"重新启动","Please restart the program":"请重新启动程序"}All the keys are needed for translation.Save the new Translation Files FileName as "LanguageName.json",The program will Detect It.[Please Release Issues.]Update Info[Version 3.3]We supportpipinstallation now !For more information, see:Installation[Version 3.0]After This Release, it needs internet connection to download ADB And AAPT Files,
But It uses less disk spaces.[Version 2.0]Second Release!It finally supports Multiple System.(Like Windows, macOS and Linux)[Version 1.0]Android Manager First Release!This is an important release.It contains:Translation Support.APK / APEX File Install Support.Analyze APK File Support.Issues:Only support on Windows Temporarily.
Package: python-andromeda
Andromeda is a Python-based repository management tool for the OpenStack repositories. Similar to Android’s “repo”, but different in these ways.Works in Python 2.6-2.7, migration to Python 3.x will be complete soon.More PEP 8 compliant.It is configured for the OpenStack Gerrit instance, not Google’s.Andromeda does not assume Gerrit user name is the first part of your email address…it must be set in the Git global configuration.This is an actual package instead of runningcurl http://… > file.Better documentation.
Package: python-anilist
python-anilistA simple wrapper with full support forasynciomade inPython 3forAnilistusinghttpx.RequirementsPython 3.7 or higher.httpx 0.14 or higher.InstallationNOTE:Ifpython3is "not a recognized command" try usingpythoninstead.For the latest stable version:python3-mpipinstallpython-anilistFor the latest development version:python3-mpipinstallgit+https://github.com/AmanoTeam/python-anilist.git#egg=python-anilistWhat's left to do?Write the API Documentation.Show some examples.CreditsAnilistPy: for inspiration.LicenseCopyright © 2021-2022AmanoTeamand the python-anilist contributorsLicensed under theExpat/MIT license.
This project is alsoREUSE compliant.
See individual files for more copyright information.ChangelogAll notable changes to this project will be documented in this file.The format is based onKeep a Changelog.1.0.9 (February 16th, 2022)Addedhotfix: queries: add missingpageInfofromhttps://github.com/AmanoTeam/python-anilist/commit/2c9f7efd5127371fd09b6630c1564c13755131d1.1.0.8 (February 16th, 2022)Added.relationsfor animes and mangas.ChangedSeparate queries into separate files.Happy new year (late).1.0.7 (January 18th, 2022)AddedPagination.rewatchedandrereadactivity status.ChangedFix .vscode gitignore.Fix user and staff search queries.Update get_activity type error.1.0.6 (October 20th, 2021)AddedSupport forPython 3.10.ChangedFixed subpackages.1.0.5 (August 4th, 2021)AddedList get query.Staff get query.Staff search query.User search query.Fixed message activity.Addedalternativeattribute to the Name object.Message activities.Support for users, favourites, staff, statistics, rankings, and studios.Support for user list and text activities.ChangedFixed typos & bugs.Addedis_adultto both anime and manga objects.Added user object to text activities.Added profile colors and other fields to the user object.Added timestamps to the date object.Tidied up and organized required fields in every object.1.0.4 (April 5th, 2021)ChangedHotfix, fix a typo on get manga.1.0.3 (April 4th, 2021)AddedSupport for characters.ChangedHTTP2 enabled (async mode only).1.0.2 (March 8th, 2021)AddedSupport for mangas.ChangedSome bug fixes.1.0.1 (March 8th, 2021)ChangedBug fixes.1.0.0 (March 8th, 2021)First release
Package: python-anonymity
PYTHON LIBRARY FOR ANONYMIZATIONThis library supports the application of three classical anonymization techniques for tabular data: k-anonymity, l-diversity and t-closeness.InstallationWe recommend to use Python3 with  virtualenv:> virtualenv .venv -p python3
> source .venv/bin/activateThen run the following command to install the library and all its
requirements:pip install python-anonymityDocumentationThe python-anonymity documentation is hosted on Read the Docs.Getting startedExample using the crime synthetic dataset:> import pandas as pd
> import pycanon
> from anonymity import tools
> from anonymity.tools.utils_k_anon import utils_k_anonymity as utils
> 
> d = {
>         "name": ["Joe", "Jill", "Sue", "Abe", "Bob", "Amy"],
>         "marital stat": [
>             "Separated",
>             "Single",
>             "Widowed",
>             "Separated",
>             "Widowed",
>             "Single",
>         ],
>         "age": [29, 20, 24, 28, 25, 23],
>         "ZIP code": ["32042", "32021", "32024", "32046", "32045", "32027"],
>         "crime": ["Murder", "Theft", "Traffic", "Assault", "Piracy", "Indecency"],
>     }
>     data = pd.DataFrame(data=d)
> 
>     ID = ["name"]
>     QI = ["marital stat", "age", "ZIP code"]
>     SA = ["crime"]
>     age_hierarchy = {"age": [0, 2, 5, 10]}
>     hierarchy = {
>         "marital stat": [
>             ["Single", "Not married", "*"],
>             ["Separated", "Not married", "*"],
>             ["Divorce", "Not married", "*"],
>             ["Widowed", "Not married", "*"],
>             ["Married", "Married", "*"],
>             ["Re-married", "Married", "*"],
>         ],
>         "ZIP code": [
>             ["32042", "3204*", "*"],
>             ["32021", "3202*", "*"],
>             ["32024", "3202*", "*"],
>             ["32046", "3204*", "*"],
>             ["32045", "3204*", "*"],
>             ["32027", "3202*", "*"],
>         ],
>     }
> 
>     mix_hierarchy = dict(hierarchy, **utils.create_ranges(data, age_hierarchy))

>     k = 2
>     supp_threshold = 0
>     new_data = tools.data_fly(data, ID, QI, k, supp_threshold, self.mix_hierarchy)
>License:Apache 2.0.Note: the library is under heavy production, only for testing purposes.
Package: python-antenna-pattern
python-antenna-patternGenerate antenna radiation pattern in polar format using pythonFree software: Apache Software License 2.0Documentation:https://python-antenna-pattern.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2020-08-07)First release on PyPI.
Package: python-antsy
python-antsyPython package for integration of Antsy in other applicationsInstallationInstall from PyPi usingpip, a
package manager for Python.pipinstallpython-antsyTest your installationTry to find the attributes of your authentication token. Save the following code sample to your computer with a text editor. Be sure to replacerefresh_token.fromantsyimportAntsy# Your Auth Tokenclient=Antsy(refresh_token="JWT_TOKEN")client.auth.whoami()
Package: python-anvil
Anvil API LibraryThis is a library that provides an interface to access theAnvil APIfrom applications
written in the Python programming language.Anvilprovides easy APIs for all things paperwork.PDF filling API- fill out a PDF template with a web request and structured JSON data.PDF generation API- send markdown or HTML and Anvil will render it to a PDF.Etch e-sign with API- customizable, embeddable, e-signature platform with an API to control the signing process end-to-end.Anvil Workflows (w/ API)- Webforms + PDF + e-sign with a powerful no-code builder. Easily collect structured data, generate PDFs, and request signatures.Learn more on ourAnvil developer page. See theAPI guideand theGraphQL referencefor full documentation.DocumentationGeneral API documentation:Anvil API docsSetupRequirementsPython 3.7.2+InstallationInstall it directly into an activated virtual environment:$pipinstallpython-anvilor add it to yourPoetryproject:$poetryaddpython-anvil
Package: python-anvil-encryption
Anvil EncryptionThis library is a small wrapper around thepypa/cryptographylibrary.
It offers convenience methods for encrypting and decrypting arbitrary payloads in both AES and RSA.For use encrypting / decrypting payloads in Anvil, you can generate an RSA keypair from
yourorganization's settings page.Anvilprovides easy APIs for all things paperwork.PDF filling API- fill out a PDF template with a web request
and structured JSON data.PDF generation API- send markdown or HTML and Anvil will
render it to a PDF.Etch E-sign with API- customizable, embeddable, e-signature platform with
an API to control the signing process end-to-end.Anvil Workflows (w/ API)- Webforms + PDF + E-sign with a powerful
no-code builder. Easily collect structured data, generate PDFs, and request signatures.Learn more about Anvil on ourAnvil developer page.SetupRequirementsPython 3.7+InstallationInstall it directly into an activated virtual environment:$ pip install python-anvil-encryptionor add it to yourPoetryproject:$ poetry add python-anvil-encryptionUsageThis usage example is also in a runnable form in theexamples/directory.importosfrompython_anvil_encryptionimportencryptionCURRENT_PATH=os.path.dirname(os.path.realpath(__file__))# Keys could be read from a file (or preferably from environment variables)public_key=Noneprivate_key=Nonewithopen(os.path.join(CURRENT_PATH,"keys/public.pub"),"rb")aspub_file:public_key=pub_file.read()withopen(os.path.join(CURRENT_PATH,"./keys/private.pem"),"rb")aspriv_file:private_key=priv_file.read()# RSAmessage=b"Super secret message"encrypted_message=encryption.encrypt_rsa(public_key,message)decrypted_message=encryption.decrypt_rsa(private_key,encrypted_message)assertdecrypted_message==messageprint(f"Are equal?{decrypted_message==message}")# AESaes_key=encryption.generate_aes_key()aes_encrypted_message=encryption.encrypt_aes(aes_key,message)# The aes key in the first parameter is required to be in a hex# byte string format.decrypted_message=encryption.decrypt_aes(aes_key.hex().encode(),aes_encrypted_message)assertdecrypted_message==messageprint(f"Are equal?{decrypted_message==message}")
Package: pythonanywhere
PythonAnywhere cli toolpais a single command to manage PythonAnywhere services.It is designed to be run from PythonAnywhere consoles, but many subcommands can be executed directly
from your own machine (seeusagebelow).InstallingOn PythonAnywhereIn a PythonAnywhere Bash console, run:pip3.10 install --user pythonanywhereIf there is nopython3.10on your PythonAnywhere account,
you should upgrade your account to the newest system image.
Seeherehow to do that.paworks with python 3.8, 3.9, and 3.10 but we recommend using the latest system image.On your own machineInstall thepythonanywherepackage fromPyPI.
We recommend usingpipxif you want to use it only as a cli tool, or a virtual environment
if you want to use a programmatic interface in your own code.UsageThere are two ways to use the package. You can just run the scripts or use the underlying api wrappers directly in your scripts.Command line interfaceRunningpaon your local machinepaexpects the presence of some environment variables that are provided when you run your code in a PythonAnywere console.
You need to provide them if you runpaon your local machine.API_TOKEN-- you need to set this to allowpato connect to thePythonAnywere API.
To get an API token, log into PythonAnywhere and go to the "Account" page using the link at the top right.
Click on the "API token" tab, and click the "Create a new API token" button to get your token.PYTHONANYWHERE_SITEis used to connect to PythonAnywhere API and defaults towww.pythonanywhere.com,
but you may need to set it toeu.pythonanywhere.comif you use our EU site.If your username on PythonAnywhere is different from the username on your local machine,
you may need to setUSERfor the environment you runpain.Programmatic usage in your codeTake a look at thepythonanywhere.taskmodule and docstrings ofpythonanywhere.task.Taskclass and its methods.Legacy scriptsSome legacyscripts(separate for each action) are still available.ContributingPull requests are welcome!  You'll find tests in thetestsfolder...# prep your dev environment
mkvirtualenv --python=python3.10 helper_scripts
pip install -r requirements.txt
pip install -e .

# running the tests:
pytest

# make sure that the code that you have written is well tested:
pytest --cov=pythonanywhere --cov=scripts

# to just run the fast tests:
pytest -m 'not slowtest' -v
Package: pythonanywhere_cli
pythonanywhere-cli==============*A PythonAnywhere Command Line Interface.*.. image:: https://travis-ci.org/cfc603/pythonanywhere-cli.png?branch=master:target: https://travis-ci.org/cfc603/pythonanywhere-cli.. image:: https://codecov.io/github/cfc603/pythonanywhere-cli/coverage.svg?branch=master:target: https://codecov.io/github/cfc603/pythonanywhere-cli?branch=masterUsage-----Set your environment variables::# Your API_KEY can be found at https://www.pythonanywhere.com/account and select the "API token" tab.$ export PYTHONANYWHERE_CLI_API_KEY="API_KEY"# Your PythonAnywhere username$ export PYTHONANYWHERE_CLI_USER="USER"Webapps::# Create a new webapp$ pythonanywhere webapps create username.pythonanywhere.com python27# Delete a webapp$ pythonanywhere webapps delete username.pythonanywhere.com# Reload Webapp$ pythonanywhere webapps reload username.pythonanywhere.com# Update Webapp python version or virtualenv path$ pythonanywhere webapps update username.pythonanywhere.com --python_version=2.7 --virtualenv_path=/path/to/envStatic File Mappings::# Create new static mapping$ pythonanywhere static_mapping create username.pythonanywhere.com /static/ /path/to/static# Delete static mapping$ pythonanywhere static_mapping delete username.pythonanywhere.com 123456# Display a list of static mappings$ pythonanywhere static_mapping list username.pythonanywhere.com# Update a static mapping url and/or path$ pythonanywhere static_mapping update username.pythonanywhere.com --url=/new-static/ --path=/new/path/to/staticHelp::# Display help$ pythonanywhere -hCredit------This application uses Open Source components. You can find the source code of their open source projects along with license information below. We acknowledge and are grateful to these developers for their contributions to open source.:Project: helper_scripts https://github.com/pythonanywhere/helper_scripts:Copyright: Copyright (c) 2017 PythonAnywhere LLP:License: (MIT) https://github.com/pythonanywhere/helper_scripts/blob/master/LICENSEHistory-------UNRELEASED++++++++++0.3.0 (2017-10-21)++++++++++++++++++* Update to use pythonanywhere-wrapper0.2.0 (2017-10-14)++++++++++++++++++* Command takes optional --api_key & --user argument* Add History0.1.1 (2017-10-13)++++++++++++++++++* Fix typo with repo URL0.1.0 (2017-10-12)+++++++++++++++++* Initial release on PyPI