Saravanan666/pypi-org huggingface dataset:
Package: app-store-scraper
___                _____ _                   _____
  / _ \              /  ___| |                 /  ___|
 / /_\ \_ __  _ __   \ `--.| |_ ___  _ __ ___  \ `--.  ___ _ __ __ _ _ __   ___ _ __
 |  _  | '_ \| '_ \   `--. \ __/ _ \| '__/ _ \  `--. \/ __| '__/ _` | '_ \ / _ \ '__|
 | | | | |_) | |_) | /\__/ / || (_) | | |  __/ /\__/ / (__| | | (_| | |_) |  __/ |
 \_| |_/ .__/| .__/  \____/ \__\___/|_|  \___| \____/ \___|_|  \__,_| .__/ \___|_|
       | |   | |                                                    | |
       |_|   |_|                                                    |_|QuickstartInstall:pip3 install app-store-scraperScrape reviews for an app:fromapp_store_scraperimportAppStorefrompprintimportpprintminecraft=AppStore(country="nz",app_name="minecraft")minecraft.review(how_many=20)pprint(minecraft.reviews)pprint(minecraft.reviews_count)Scrape reviews for a podcast:fromapp_store_scraperimportPodcastfrompprintimportpprintsysk=Podcast(country="nz",app_name="stuff you should know")sysk.review(how_many=20)pprint(sysk.reviews)pprint(sysk.reviews_count)Extra DetailsLet's continue from the code example used inQuickstart.InstantiationThere are two required and one positional parameters:country(required)two-letter country code ofISO 3166-1 alpha-2standardapp_name(required)name of an iOS application to fetch reviews foralso used bysearch_id()method to search forapp_idinternallyapp_id(positional)can be passed directlyor ignored to be obtained bysearch_idmethod internallyOnce instantiated, the object can be examined:>>>minecraftAppStore(country='nz', app_name='minecraft', app_id=479516143)>>>print(app)Country | nzName | minecraftID | 479516143URL | https://apps.apple.com/nz/app/minecraft/id479516143Review count | 0Other optional parameters are:log_formatpassed directly tologging.basicConfig(format=log_format)default is"%(asctime)s [%(levelname)s] %(name)s - %(message)s"log_levelpassed directly tologging.basicConfig(level=log_level)default is"INFO"log_intervallog is produced every 5 seconds (by default) as a "heartbeat" (useful for a long scraping session)default is5Fetching ReviewThe maximum number of reviews fetched per request is 20. To minimise the number of calls, the limit of 20 is hardcoded. This means thereview()method will always grab more than thehow_manyargument supplied with an increment of 20.>>>minecraft.review(how_many=33)>>>minecraft.reviews_count40Ifhow_manyis not provided,review()will terminate afterallreviews are fetched.NOTEthe review count seen on the landing page differs from the actual number of reviews fetched. This is simply because onlysomeusers who rated the app also leave reviews.Optional Parametersafteradatetimeobject to filter older reviewssleepanintto specify seconds to sleep between each callReview DataThe fetched review data are loaded in memory and live insidereviewsattribute as a list of dict.>>>minecraft.reviews[{'userName': 'someone', 'rating': 5, 'date': datetime.datetime(...Each review dictionary has the following schema:{"date":datetime.datetime,"isEdited":bool,"rating":int,"review":str,"title":str,"userName":str}
Package: app-store-scrapr
app-store-scraprapp-store-scrapris a Python library for scraping reviews from the Apple App Store. It provides an easy-to-use interface to gather reviews for iOS apps.FeaturesGet Specific Page Reviews: Retrieve reviews from a specific page for an app.Get All Reviews: Conveniently fetch reviews from all available pages (up to 10 pages).RequirementsPython 3.8 or higherInstallationInstallapp-store-scraprusing pip:pipinstallapp-store-scraprUsageGetting Reviews from a Specific PageTo get reviews from a specific page for an app, use thereviewsmethod:fromapp_store_scrapr.reviewsimportreviews# Parameters:# app_id (str): The app's unique identifier.# country (str, optional): The country code (default is 'us').# page (int, optional): The page number to retrieve (default is 1).# sort (str, optional): The sort order, 'mostRecent' or 'mostHelpful' (default is 'mostRecent').app_reviews=reviews(app_id='123456789',country='us',page=3,sort='mostRecent')print(app_reviews)Getting All ReviewsTo get all reviews (up to 10 pages) for an app, use thereviews_allmethod:fromapp_store_scrapr.reviewsimportreviews_all# Parameters:# app_id (str): The app's unique identifier.# country (str, optional): The country code (default is 'us').# sort (str, optional): The sort order, 'mostRecent' or 'mostHelpful' (default is 'mostRecent').all_reviews=reviews_all(app_id='123456789',country='us',sort='mostRecent')print(all_reviews)ContributingContributions toapp-store-scraprare welcome! If you have an idea or suggestion, please:Open an issue to discuss what you would like to change or add.Once the proposal is discussed and approved, you can fork the repository and create a pull request.Licenseapp-store-scrapris MIT licensed. See theLICENSEfile for more details.
Package: app-studio
app-studioapp-studio is a part ofDash Enterprise,
Plotly's end-to-end Dash application platform. This public copy of the package
is a stub published on pypi.org designed to shield Dash Enterprise users fromdependency confusion,
a remote code execution attack publicly disclosed in 2021 by Alex Birsan.If you are a Dash Enterprise user, you will only see this public package if your
app is not properly configured to find the local package repository built into
Dash Enterprise. Visit the docs for your Dash Enterprise installation for details.If you never see this public package, it's still doing its job of protecting you
from the dependency confusion attack!
Package: appsync-client
appsync-clientUsagedefcallback(client,userdata,msg):#use the msgpassappsyncClient=AppSyncClient()query=json.dumps({"query":"mutation {\nupdateSecret(id:\"1234\",secretString:\"sdfsdf\") {\nid\nsecretString\n}\n}\n"})response=appsyncClient.execute(region="us-east-2",url="https://..../graphql",method="POST",data=query,callback=callback)
Package: appsync-copier
example:pipinstallappsync-copierMake a .env file and addGRAPHQL_URLACCESS_KEYSECRET_KEYMake a schema.graphql
and paste the schema models..Continue with the following example:fromappsync_copierimportAppSyncCopier,AppSyncClientfromdotenvimportload_dotenvimportboto3importosload_dotenv()region=boto3.Session().region_nameclient=AppSyncClient(os.getenv("GRAPHQL_URL"),os.getenv("ACCESS_KEY"),os.getenv("SECRET_KEY"),region)copier=AppSyncCopier(schema_path="schema.graphql",client=client,)copier.copy_model("MODEL_NAME","MODEL_ID")
Package: appsync-function-uploader
This is intended to be used in a CI/CD process for managing AppSync
functions.The function’s name and datasource are used to look up the unique
function id. Failure to have this combination return one function will
result in undefined behavior.Usagepython -m appsync_function_uploader --aws-access-key-id accesskey --aws-secret-access-key secret --aws-region region --api-id id --name name --description description --datasource-name datasource --request-mapping-template request.vtl --response-mapping-template response.vtlArgumentsaws-access-key-idThe AWS Access Key ID for the IAM useraws-secret-access-keyThe AWS Secret Access Key for the IAM useraws-regionThe AWS Region of the AppSync API to updateapi-idThe API ID of the AppSync API to upload the schema tonameThe Function name - does not have to be unique, but it is
highly recommendeddescriptionThe Function descriptiondatasource-nameThe name of the AppSync data source for which the
function is being createdrequest-mapping-templateThe request mapping VTL file to upload -
Optional if the datasource is a Lambdaresponse-mapping-templateThe response mapping VTL file to upload
- Optional if the datasource is a Lambda
Package: appsync-resolver-uploader
This is intended to be used in a CI/CD process for managing AppSync
resolvers. Manages both UNIT and PIPELINE resolvers. For PIPELINE
resolvers referenced functions must exist prior to creating or updating
the resolver.Usagepython -m appsync_resolver_uploader --aws-access-key-id accesskey --aws-secret-access-key secret --aws-region region --api-id id --type-name type --field-name field --datasource-name datasource --request-mapping-template request.vtl --response-mapping-template response.vtl --pipeline-config name,datasource;name,datasourceArgumentsaws-access-key-idThe AWS Access Key ID for the IAM useraws-secret-access-keyThe AWS Secret Access Key for the IAM useraws-regionThe AWS Region of the AppSync API to updateapi-idThe API ID of the AppSync API to upload the schema totype-nameThe name of the GraphQL Typefield-nameThe name of the GraphQL field to attach the resolver
todatasource-nameThe name of the AppSync data source for which the
resolver is being created - not used for pipeline resolversrequest-mapping-templateThe request mapping VTL file to upload -
Optional if the datasource is a Lambdaresponse-mapping-templateThe response mapping VTL file to upload
- Optional if the datasource is a Lambdapipeline-configThe list of functions to use in this resolver.
Including this list changes the resolver to a pipeline
Package: appsync-router
appsync-routerWARNING - Version 4.0.0 is a breaking change from version 3.x.x. Please review the documentation before upgradingA micro-library that allows for the registration of functions corresponding to
AWS AppSync routes. This allows for cleanly creating a single AWS Lambda datasource
without large numbers of conditionals to evaluate the called route.Installationpipinstallappsync-routerBasic Usagefromappsync_routerimportdiscrete_route,route_event# Context is a TypedDict that makes access to# the items passed to your Lambda function simplerfromappsync_router.contextimportContext# Here we are telling the router that when the field "getItems"# is called on the type "Query", call the function "get_items"@discrete_route("Query","getItems")defget_items(context:Context)->list:return[1,2,3,4]deffunction_handler(event,context):# simply route the event and return the resultsreturnroute_event(event)NOTE -appsync-routeris designed to be used as a Direct Invocation AWS AppSync
datasource. If you put a request VTL template in front of it, you must pass in the WHOLE
$ctx/$context object.Route TypesEach route type has an overloaded signature allowing for simple declaration.discrete_route- This discretely routes to a named type and fieldmulti_route- This routes to a set of named type/field combinationspattern_route- This routes to types/fields that match the type and field regex patterns providedglob_route- This routes to the types/fields that match the type and field glob patterns providedRouting EventsAs seen in the example above, the simplest form of event routing is to callroute_eventwith only the event argument. This will do the following:Determine the route for the eventIf no route is found, raiseNoRouteFoundExceptionIf more than one route is found, use the first route foundRoute the event if it is a single context, or map the event to the route if it is multiple contextsMany times this will be sufficient. However, this behavior can be modified:Passing adefault_routeof typeRouteto theroute_eventmethod will call yourdefault_routeif no route is foundPassingshort_circuit=Falseto theroute_eventmethod will cause aMultipleRoutesFoundExceptionto be raised in the case of multiple matched routes.Passing anexecutorof typeconcurrent.futures.Executorto theroute_eventmethod will cause all batch invocations (where theeventhas a list of contexts) to be executed using your executor.ExtensibilityYou may extend theappsync_routerwith your own route types. Any routes that you create must extend from theappsync_router.routes.Routeclass.
Package: appsync-schema-uploader
####A command line tool for uploading GraphQL schemas into AWS AppSyncLThis is intended to be used in a CI/CD process for managing AppSync
schemas###Usagepython -m appsync_schema_uploader --aws-access-key-id accesskey --aws-secret-access-key secret --aws_region region --api-id id --schema schema.graphql###Arguments -aws-access-key-idThe AWS Access Key ID for the IAM
user -aws-secret-access-keyThe AWS Secret Access Key for the IAM
user -aws-regionThe AWS Region of the AppSync API to update -api-idThe API ID of the AppSync API to upload the schema to -schemaThe filename of the SDL formatted schema to upload
Package: appsync-tools
appsync-tools##Provides helpful tools for parsing database responses and handling routes inside of Lambda for AWS Appsync.DB response parsingAurora results are returned as a list of dictionaries with the column names being the key.
Nulls (returned by Aurora as isNull) are returned as None types. Any value that can be parsed as json is cast from a string to a list/dictionary.
Responses are returned formated as:[{"columnOneName":"value","columnTwoName":"value"},{"columnOneName":"value","columnTwoName":"value"}]Where each item in the top level array is a separate row.Dynamodb results are returned as either a dictionary (for get_item operations) or a list of dictionaries (query).Pretty parsing Aurora recordspretty_parse_aurora(records, type_attribute=None) -> listArguments:records -- The records from the API query (execute_statement()["records"])Keyword Args:type_attribute -- If used will pass results to typify(results, type_attribute=type_attribute) before returningfromappsync_toolsimportpretty_parse_auroraresponse=client.execute_statement(secretArn=environ["PG_SECRET"],database=environ["DB_NAME"],parameters=parameters,resourceArn=environ["DB_ARN"],includeResultMetadata=True,sql=sql)print(pretty_parse_aurora(response))Parsing Dynamodb recordspretty_parse_dynamo(records, type_attribute=None) -> list | dictArguments:records -- The Item(s) from a call to query, get_itemKeyword Args:type_attribute -- If used will pass results to typify(results, type_attribute=type_attribute) before returningfromappsync_toolsimportpretty_parse_dynamoresponse=client.get_item(Key={"pk":"foo","sk":"bar"})print(response.get("Item"))Adding __typename to all records based on an attributetypify(records, type_attribute="type") -> list | dictArguments:records -- The Item(s) from a call to query, get_itemKeyword Args:type_attribute -- Attribute name that contains the __typename valueExamplefromappsync_toolsimporttypifyresponse=client.get_item(Key={"pk":"foo","sk":"BarType"})print(typify(response.get("Item"),type_attribute="sk"))
Package: appthreat-vulndb
IntroductionVulndb is a vulnerability database and package search for sources such as NVD, GitHub and so on. It uses a built-in file based storage to allow offline access.Installationpipinstallappthreat-vulndbUsageThis package is ideal as a library for managing vulnerabilities. This is used bydep-scan, a free open-source dependency audit tool. However, there is a limited cli capability available with few features to test this tool directly.Cache vulnerability datavdb--cacheIt is possible to customise the cache behaviour by increasing the historic data period to cache by setting the following environment variables.NVD_START_YEAR - Default: 2016. Supports upto 2002GITHUB_PAGE_COUNT - Default: 5. Supports upto 20Periodic syncTo periodically sync the latest vulnerabilities and update the database cache.vdb--syncBasic searchIt is possible to perform simple search using the cli.vdb--searchandroid:8.0

vdb--searchgoogle:android:8.0

vdb--searchandroid:8.0,simplesamlphp:1.14.11Syntax is package:version,package:version or vendor : package : version (Without space)
Package: appthreat-vulnerability-db
IntroductionThis repo is a vulnerability database and package search for sources such as Aqua Security vuln-list, OSV, NVD, GitHub, and NPM. Vulnerability data are downloaded from the sources and stored in a custom file based storage with indexes to allow offline access and quick searches.Vulnerability Data sourcesLinuxvuln-list(Forked from AquaSecurity)OSV (1)NVD (2)GitHubNPM1 - We exclude linux and oss-fuzz feeds by default. Set the environment variableOSV_INCLUDE_FUZZto include them.2 - We exclude hardware (h) by default. Set the environment variableNVD_EXCLUDE_TYPESto exclude additional types such as OS (o) or application (a). An empty value means include all categories. Comma separated values are allowed. Eg:o,hLinux distrosAlmaLinuxDebianAlpineAmazon LinuxArch LinuxRHEL/CentOSRocky LinuxUbuntuOpenSUSE/SLESPhotonChainguardWolfi OSInstallationpipinstallappthreat-vulnerability-dbUsageThis package is ideal as a library for managing vulnerabilities. This is used bydep-scan, a free open-source dependency audit tool. However, there is a limited cli capability available with few features to test this tool directly.Download pre-built databaseUse theORAS clito download a pre-built database containing all application and OS vulnerabilities.export VDB_HOME=$HOME/vdb
oras pull ghcr.io/appthreat/vdb:v5 -o $VDB_HOMECache vulnerability dataCache application vulnerabilitiesvdb--cacheTypical size of this database is over 1.1 GB.Cache application and OS vulnerabilitiesvdb--cache-osNote the size of the database with OS vulnerabilities is over 3.1 GB.Cache from justOSVvdb--cache--only-osvIt is possible to customise the cache behaviour by increasing the historic data period to cache by setting the following environment variables.NVD_START_YEAR - Default: 2018. Supports upto 2002GITHUB_PAGE_COUNT - Default: 2. Supports upto 20Periodic syncTo periodically sync the latest vulnerabilities and update the database cache.vdb--syncBasic searchIt is possible to perform simple search using the cli.vdb--searchandroid:8.0

vdb--searchgoogle:android:8.0

vdb--searchandroid:8.0,simplesamlphp:1.14.11

vdb--searchpkg:pypi/xml2dict@0.2.2Syntax is package:version,package:version or vendor : package : version (Without space)
Package: appthwack
appthwack-python================The official [AppThwack](https://appthwack.com) python client.Status======Currently under active development.Installation============### Source$ git clone git@github.com:appthwack/appthwack-python.git$ python setup.py install### Pip$ pip install appthwackUsage=====Configure the AppThwack client:```pythonimport appthwackAPI_KEY = '...'api = appthwack.AppThwackApi(API_KEY)```Select a project:```python#...project = api.project(id=1234)project = api.project(name='Mutt Cuts')projects = api.projects()```Select a device pool:```python#...device_pool = project.device_pool(id=42)device_pool = project.device_pool(name='72 Sheepdog')device_pools = project.device_pools()```Upload your app and test content:```python#...apk = api.upload('/src/samsonite.apk')tests = api.upload('/src/gotworms.apk')```Schedule AppThwack AppExplorer test run:```python#...name = 'Seabass and the fellas'run = project.schedule_app_explorer_run(apk, tests, name, device_pool))```Schedule Calabash test run:```python#...name = 'His head fell off!'run = project.schedule_calabash_run(apk, tests, name, device_pool)```Schedule JUnit/Robotium test run:```python#...name = 'Totally redeem yourself!'run = project.schedule_junit_run(apk, tests, name, device_pool)```Get run execution status:```python#...status = run.status() # new, queued, running, completed```Get run results:```python#...results = run.results()print results # [12345]: Run Hello World! by admin is 'completed' with result 'pass'.```Dependencies============This project was built on the shoulders of others:*  [requests](http://docs.python-requests.org/en/latest/) by Kenneth ReitzDocumentation=============The latest AppThwack API documentation can be found [here](https://appthwack.com/docs/api).Contributing============If you would like to contribute, simply fork the repository, push your changes and send a pull request.License=======MIT License. More information can be found [here](https://github.com/appthwack/appthwack-python/blob/master/LICENSE.md).
Package: app-toggles
App toggles libraryThis library has been created taking into account the work done byPete Hodgsonpublished inhttps://martinfowler.com/.How to use itThe example below uses a sample feature to include a cancellation link in a email so the user can cancel the sales order.Create the /tmp/test_app_toggles.json file with the following content:{"isOrderCancellationEnabled":true,"isAutoRefundEnable":false}Run the appimportapp_togglesprovider=app_toggles.JsonToggleProvider("/tmp/test_app_toggles.json")toggles=app_toggles.Toggles(provider=provider)@toggles.toggle_decisiondefusage_of_order_cancellation_email(get_toggles,when_on,when_off):order_cancellation_enabled,auto_refund_enabled=get_toggles(["isOrderCancellationEnabled","isAutoRefundEnable"])iforder_cancellation_enabledandauto_refund_enabled:returnwhen_onreturnwhen_offdefcreate_email_body(client_name:str,sales_order_number:str)->str:header=f"""Dear{client_name},Your order number{sales_order_number}has bee approved."""footer="""Cheers,Your company team"""cancellation_text=usage_of_order_cancellation_email(when_on=f"To cancel your order follow this link: http://cancel/{sales_order_number}",when_off="",)returnf"""{header}{cancellation_text}{footer}"""body=create_email_body("Gustavo","2342937")print(body)Feel free to change the value of the toggles in the JSON file and see how the email body changesHow to extend this libraryThe library exposes a "Provider" interface. You can create your own interface to interact with external services that manage feature flags. Below you' ll find a sample code used to retrieve toggles stored in memory.DON'T FORGET TO CREATE A PR SO WE CAN ADD THE IMPLEMENTATION YOU'VE CREATED!importtypingimportapp_togglesclassInMemoryProvider(app_toggles.Provider):toggles={"isOrderCancellationEnabled":True,"isAutoRefundEnable":True}defget_toggles(self,toggle_names:typing.List[str])->typing.Tuple[bool]:missing_toogles=[togglefortoggleintoggle_namesiftogglenotinInMemoryProvider.toggles]ifmissing_toogles:raiseapp_toggles.ToggleNotFoundError(f"The follwing toggles where not found:{', '.join(missing_toogles)}")return[toggle_valuefortoggle_name,toggle_valueinInMemoryProvider.toggles.items()iftoggle_nameintoggle_names]
Package: apptoolkit
apptoolkit===========.. image:: https://img.shields.io/pypi/v/apptoolkit.svg:target: https://pypi.python.org/pypi/apptoolkit/:alt: Latest Version.. image:: https://img.shields.io/pypi/wheel/apptoolkit.svg:target: https://pypi.python.org/pypi/apptoolkit/.. image:: https://img.shields.io/pypi/pyversions/apptoolkit.svg:target: https://pypi.python.org/pypi/apptoolkit/.. image:: https://img.shields.io/pypi/l/apptoolkit.svg:target: https://pypi.python.org/pypi/apptoolkit/Introduction-----------This is a lightweight set of tools for obtaining information about Android devices in PythonInstalling----------Install and update using `pip`:.. code-block:: textpip install -U apptoolkitA Simple Example----------------.. code-block:: pythonfrom apptoolkit import Deviceandroid_devices = Device.get_android_devices()下面是输出信息：[{"uid": "BY2WKN1519078327","rom_version": "Che2-UL00 V100R001CHNC00B287","brand": "Honor","os_version": "4.4.2","sdk_version": "19","os_type": "Android","model": "Che2-UL00"},{"uid": "GWY0217414001213","rom_version": "MHA-AL00C00B213","brand": "HUAWEI","os_version": "7.0","sdk_version": "24","os_type": "Android","model": "MHA-AL00"}]ios_devices = Device().get_ios_devices()下面是输出信息：[{"uid": "xxxxxxxxxxxxxx1f8a4dcfaac1fd01","rom_version": "11.0.3","brand": "iPhone","device_name": "马飞的 iPhone","os_version": "11.0.3","model": "iPhone6s","os_type": "iOS"}]Learn more-----------You can read this http://mafei.me/ to learn more about the `apptoolkit`.