Saravanan666/pypi-org huggingface dataset:
Package: appsflyer
appsflyer-pythonDocumentationThe documentation for AppsFlyer's Server-to-server events API for mobile can be foundhere.InstallationInstall usingpip:pipinstallappsflyerAlternatively, you may download the repository and run the installation directly:gitclonehttps://github.com/fredericojordan/appsflyer-python.gitcdappsflyer-python
pythonsetup.pyinstallGetting StartedTo start generating events, we need only aClientinstance.TheClientneeds your AppsFlyer credentials. You can pass these directly to the constructor:fromappsflyer.restimportClientapp_id="XXXXXXXXXXXXXXXXX"dev_key="YYYYYYYYYYYYYYYY"appsflyer_client=Client(app_id=app_id,dev_key=dev_key)app_id: The app identifier used in the AppsFlyer dashboard. Insert it precisely as it appears on the dashboard.dev_key: The authentication token in the header. To get the dev key, in the AppsFlyer dashboard go to:App Settings > Dev KeyGenerating an EventTo generate an event, simply callClient.generate_event()with keyword arguments:fromappsflyer.restimportClientapp_id="XXXXXXXXXXXXXXXXX"dev_key="YYYYYYYYYYYYYYYY"appsflyer_client=Client(app_id=app_id,dev_key=dev_key)appsflyer_client.generate_event(appsflyer_id="9999999999999-9999999999999999999",customer_user_id="example_customer_id_123",ip="199.0.2.1",app_version_name="example_version_name",event_time="2020-02-25 12:00.000",event_name="af_purchase",event_currency="ZAR",event_value={"af_revenue":"1006","af_content_type":"wallets","af_content_id":"15854","af_quantity":"1",},)The parametersevent_name,event_valueandappsflyer_idare mandatory.Device IdentifiersAdditional data parameters (such as anIDFAorGAIDidentifiers) may be sent as keyword arguments:appsflyer_client.generate_event(appsflyer_id="9999999999999-9999999999999999999",event_name="af_purchase",event_value={"af_revenue":"420"},idfa="9876F1SS-2983-3855-27RR-2R626772VFNB",)AppsFlyer APIexpects one or more of the following device identifiers:idfaidfvadvertising_id(GAID)oaidamazon_aidimei
Package: appsignal
AppSignal for PythonAppSignal solves all your Python monitoring needs in a single tool. You and
your team can focus on writing code and we'll provide the alerts if your app
has any issues.AppSignal.com websiteDocumentationSupportDescriptionThe AppSignal package collects exceptions and performance data from your Python
applications and sends it to AppSignal for analysis. Get alerted when an error
occurs or an endpoint is responding very slowly.UsageFirst make sure you've installed AppSignal in your application by following the
steps inInstallation.AppSignal will automatically monitor requests, report any exceptions that are
thrown and any performance issues that might have occurred.You can also add extra information by adding custom instrumentation and by tags.InstallationPlease follow ourinstallation guidein our documentation. We try to
automatically instrument as many packages as possible, but may not always be
able to. Make to sure follow anyinstructions to add manual
instrumentation.DevelopmentAppSignal for Python usesHatchto manage
dependencies, packaging and development environments.pipinstallhatchPublishingPublishing is done usingmono. Install it
before development on the project.monopublishLinting and type checkinghatchrunlint:all

hatchrunlint:fmt# auto-formatting onlyhatchrunlint:style# style checking onlyhatchrunlint:typing# type checking onlyRunning testshatchruntest:pytestRunning the CLI commandhatchshell
appsignalBuilding wheelshatchrunbuild:all# for all platformshatchrunbuild:me# for your current platformhatchrunbuild:for<triple># for a specific agent tripleCustom agent buildhatchrunbuild:me/path/to/agent# or place the desired agent binary at# `src/appsignal/appsignal-agent`, and then:hatchrunbuild:me--keep-agentClean up build artifactshatchclean# clean dist folderrm-rtmp# clean agent build cacheContributingThinking of contributing to our package? Awesome! 🚀Please follow ourContributing guidein our
documentation and follow ourCode of Conduct.Also, we would be very happy to send you Stroopwafles. Have look at everyone
we send a package to so far on ourStroopwafles page.SupportContact usand speak directly with the engineers working on
AppSignal. They will help you get set up, tweak your code and make sure you get
the most out of using AppSignal.Also see ourSUPPORT.md file.
Package: appsignal-beta
AppSignal Python: Deprecated packageTheappsignal-betaPython package is now deprecated.Please installtheappsignalPython packageinstead.ReleaseUpdate thepyproject.tomlfile and update the version number.Run these two commands:rm -rf dist
hatch build
hatch publishTag the release in Git:git tag v#.#.#
git push main v#.#.#
Package: app-skellington
Application framework for Python, features include:Pain-free multi-level command menu: Expose public class methods as commands available to user.Simple to define services and automatic dependency injection based on name (with custom invocation as an option). *WIPINI-style config and and validation (provided through ConfigObj).Colored logging (provided through colorlog)Works on Linux, Windows, and Mac.Principles:Lend to creating beautiful, easy to read and understand code in the application.Minimize coupling of applications to this framework.Compatable with Linux, Windows, and Mac. Try to be compatible as possible otherwise.Try to be compatible with alternate Python runtimes such as PyPy and older python environments. *WIPApplication ConfigurationSite configurations are supported through ConfigObj. There is a config.spec
in the src directory which is a validation file; it contains the accepted
parameter names, types, and limits for configurable options in the
application which is built on app_skellington. The format is multi-level .ini syntax.Reference the ConfigObj documentation for config.ini and config.spec
format. See:https://configobj.readthedocs.io/en/latest/configobj.html#the-config-file-formathttps://configobj.readthedocs.io/en/latest/configobj.html#validationConfig files (config.ini) are created if they don’t exist. The
file always contains the full specification of parameters; i.e. even default
parameters are added into the config file.Linux:/home/<user>/.config/<app_name>/config.ini/home/<user>/.cache/<app_name>/log/<app_name>.logWindows:C:\Users\<user>\<app_name>\Local\<app_name>\config.iniC:\Users\<user>\<app_name>\Local\<app_name>\Logs\<app_name>.logApplication configuration can be overridden ad-hoc through the –config <filename>
argument.Debug - Turn on LoggingSet ‘APPSKELLINGTON_ENABLE_LOGGING’ environment variable to any value which turns
on AppSkellington-level logging. For example,APPSKELLINGTON_DEBUG=1 <executable>orexport APPSKELLINGTON_DEBUG=1
<executable>TestsTests are a WIP. Recommendation is to run ‘pytest’ in the ‘tests’ directory.LicenseI’m releasing this software under one of the most permissive
licenses, the MIT software license. This applies to this source repository
and all files within it.NotesSee official website:https://zavage-software.comPlease report bugs, improvements, or feedback!
Package: appspace
appspaceis a component injection framework that allows any mishmash of Python
classes, objects, functions, or modules to be dynamically cobbled together into
an application.An appspaced application is built with an appconf (application configuration)
similar to a Django urlconf:>>> from appspace import patterns
>>> appconf = patterns(
...    'helpers',
...    ('square', 'math.sqrt'),
...    ('fabulous', 'math.fabs'),
...    include('subapp', 'foo.bar.apps')
... )Once configured, application components can be accessed as object attributes,
dictionary keys, or by calling the component manager directly:>>> fab1 = plug.helpers.fabulous
>>> fab2 = plug['helpers']['fabulous']
>>> fab1(2)
2.0
>>> fab2(2)
2.0
>>> plug.helpers.fabulous(2)
2.0
>>> plug('fabulous', 2)
2.0
Package: appstart
AboutApplication server framework help you write long run application.Installpip install appstartUsageE:\zencore>appserver
Usage: appserver [OPTIONS] COMMAND [ARGS]...

Options:
-c, --config FILENAME  Config file path, use yaml format. Default to
                        config.yaml.
--help                 Show this message and exit.

Commands:
reload  Reload application server.
start   Start application server.
stop    Stop application server.Example Configapplication:
    deamon: true
    pidfile: /tmp/appname.pid
    main: app.mainCreate a new type serverfrom appstart import server
from appstart import set_default_config_path
from appstart import set_default_pidfile
from appstart import set_config_loader
from appstart import default_config_loader

def helloserver_loader(config):
    data = default_config_loader(config)
    data["server-name"] = "hello server v1.0.0"
    return data

if __name__ == "__main__":
    set_default_config_path("/etc/helloserver.yaml")
    set_default_pidfile("/var/run/helloserver.pid")
    set_config_loader(helloserver_loader)
    server()
Package: appstartup
📦 setup.py (for humans)This repo exists to providean example setup.pyfile, that can be used
to bootstrap your next Python project. It includes some advanced
patterns and best practices forsetup.py, as well as some
commented–out nice–to–haves.For example, thissetup.pyprovides a$ python setup.py uploadcommand, which creates auniversal wheel(andsdist) and uploads
your package toPyPiusingTwine, without the need for an annoyingsetup.cfgfile. It also creates/uploads a new git tag, automatically.In short,setup.pyfiles can be daunting to approach, when first
starting out — even Guido has been heard saying, "everyone cargo cults
thems". It's true — so, I want this repo to be the best place to
copy–paste from :)Check out the example!Installationcdyour_project# Download the setup.py file:#  download with wgetwgethttps://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.py-Osetup.py#  download with curlcurl-Ohttps://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.pyTo DoTests via$ setup.py test(if it's concise).Pull requests are encouraged!More ResourcesWhat is setup.py?on Stack OverflowOfficial Python Packaging User GuideThe Hitchhiker's Guide to PackagingCookiecutter template for a Python packageLicenseThis is free and unencumbered software released into the public domain.Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any means.
Package: app-stle
app: Adaptive Pressure Profile (APP) Shock Train TrackingThe APP method is an approach to adaptive realtime shock train tracking from pressure transducer data.SoftwareThepython packageis available on pypihereVignettesA basic vignette of how to use APP is availablehere(.py|.ipynb)Papers1. "Adaptive Pressure Profile Method to Locate the Isolator Shock Train Leading Edge Given Limited Pressure Information" AIAA 2020 P&EOurpublicationin AIAA P&E is availablehere
Package: app_store
The app-store module is a simple Python module for interacting with Apple’s public iTunes APIs. At the moment this only
involves fetching recent reviews from the App Store.Project website:https://github.com/rrueth/app-storeTravis Continuous Integration:https://travis-ci.org/rrueth/app-storeUsageimport app_store.reviews

app_store.reviews.fetch_reviews(app_id=383298204, page_num=1)
Package: appstoreconnect
App Store Connect ApiThis is a Python wrapper around theApple App Store Api:https://developer.apple.com/documentation/appstoreconnectapiSo far, it handles token generation / expiration, methods for listing resources and downloading reports.InstallationThe project is published on PyPI, install with:pip install appstoreconnectUsagePlease follow instructions onApple documentationon how to generate an API key.With yourkey ID,key file(you can either pass the path to the file or the content of it as a string) andissuer IDcreate a new API instance:fromappstoreconnectimportApi,UserRoleapi=Api(key_id,path_to_key_file,issuer_id)# use a proxyapi=Api(key_id,path_to_key_file,issuer_id,proxy='http://1.2.3.4:3128')# set a timeout (in seconds) for requestsapi=Api(key_id,path_to_key_file,issuer_id,timeout=42)Here are a few examples of API usage. For a complete list of available methods please seeapi.py.# list all appsapps=api.list_apps()forappinapps:print(app.name,app.sku)# sort resourcesapps=api.list_apps(sort='name')# filter appsapps=api.list_apps(filters={'sku':'DINORUSH','name':'Dino Rush'})print("%dapps found"%len(apps))# read app informationapp=api.read_app_information('1308363336')print(app.name,app.sku,app.bundleId)# get a related resourceforgroupinapp.betaGroups():print(group.name)# list bundle idsforbundle_idinapi.list_bundle_ids():print(bundle_id.identifier)# list certificatesforcertificateinapi.list_certificates():print(certificate.name)# modify a useruser=api.list_users(filters={'username':'finance@nemoidstudio.com'})[0]api.modify_user_account(user,roles=[UserRole.FINANCE,UserRole.ACCESS_TO_REPORTS])# download sales reportapi.download_sales_and_trends_reports(filters={'vendorNumber':'123456789','frequency':'WEEKLY','reportDate':'2019-06-09'},save_to='report.csv')# download finance reportapi.download_finance_reports(filters={'vendorNumber':'123456789','reportDate':'2019-06'},save_to='finance.csv')Define a timeout (in seconds) after which an exception is raised if no response is received.api=Api(key_id,path_to_key_file,issuer_id,timeout=30)api.list_apps()APIError:Readtimeoutafter30secondsPlease note this is a work in progress, API is subject to change between versions.Anonymous data collectionStarting with version 0.8.0 this library anonymously collects its usage to help better improve its development.
What we collect is:a SHA1 hash of the issuer_idthe OS and Python version usedwhich enpoints had been usedYou can review thesource codeIf you feel uncomfortable with it you can completely opt-out by initliazing the API with:api=Api(key_id,path_to_key_file,issuer_id,submit_stats=False)The is also anopen issueabout this topic where we would love to here your feedback and best practices.DevelopmentProject development happens onGithubTODOSupport App Store Connect API 1.2Support the include parameterhandle POST, DELETE and PATCH requestssales reporthandle related resourcesallow to sort resourcesproper API documentationadd testsCreditsThis project is developed byPonytech
Package: appstoreconnectapi
App Store Connect ApiThis is a Python wrapper around theApple App Store Api:https://developer.apple.com/documentation/appstoreconnectapiSo far, it handles token generation / expiration, methods for listing resources and downloading reports.InstallationThe project is published on PyPI, install with:pip install appstoreconnectapiUsagePlease follow instructions onApple documentationon how to generate an API key.With yourkey ID,key fileandissuer IDcreate a new API instance:fromappstoreconnectapiimportAppStoreConnectasc=AppStoreConnect(key_id,path_to_key_file,issuer_id)Here are a few examples of API usage# list all profilesprofiles=asc.getProfiles()printprofiles#list all certificatescertificates=asc.getCertificates()printprofiles#download profileasc.downloadProfile(profileID='xxxxx',saveFolderPath='./'):#download certificateasc.downloadCertificate(certificatID='xxxxx',saveFolderPath='./'):#other api，for example list all bundleids#method: get or postres=asc.fetch(uri='/v1/bundleIds',method='get',post_data=None)printresmore api gotohttps://developer.apple.com/documentation/appstoreconnectapi
Package: appstoreconnect-BPHvZ
App Store Connect Api for Home AssistantThis is a fork ofappstoreconnect:https://pypi.org/project/appstoreconnect/This project removes some of the dependencies.This is a Python wrapper around theApple App Store Api:https://developer.apple.com/documentation/appstoreconnectapiSo far, it handles token generation / expiration, methods for listing resources and downloading reports.InstallationThe project is published on PyPI, install with:pip install appstoreconnectUsagePlease follow instructions onApple documentationon how to generate an API key.With yourkey ID,key file(you can either pass the path to the file or the content of it as a string) andissuer IDcreate a new API instance:fromappstoreconnectimportApi,UserRoleapi=Api(key_id,path_to_key_file,issuer_id)# use a proxyapi=Api(key_id,path_to_key_file,issuer_id,proxy='http://1.2.3.4:3128')# set a timeout (in seconds) for requestsapi=Api(key_id,path_to_key_file,issuer_id,timeout=42)Here are a few examples of API usage. For a complete list of available methods please seeapi.py.# list all appsapps=api.list_apps()forappinapps:print(app.name,app.sku)# sort resourcesapps=api.list_apps(sort='name')# filter appsapps=api.list_apps(filters={'sku':'DINORUSH','name':'Dino Rush'})print("%dapps found"%len(apps))# read app informationapp=api.read_app_information('1308363336')print(app.name,app.sku,app.bundleId)# get a related resourceforgroupinapp.betaGroups():print(group.name)# list bundle idsforbundle_idinapi.list_bundle_ids():print(bundle_id.identifier)# list certificatesforcertificateinapi.list_certificates():print(certificate.name)# modify a useruser=api.list_users(filters={'username':'finance@nemoidstudio.com'})[0]api.modify_user_account(user,roles=[UserRole.FINANCE,UserRole.ACCESS_TO_REPORTS])# download sales reportapi.download_sales_and_trends_reports(filters={'vendorNumber':'123456789','frequency':'WEEKLY','reportDate':'2019-06-09'},save_to='report.csv')# download finance reportapi.download_finance_reports(filters={'vendorNumber':'123456789','reportDate':'2019-06'},save_to='finance.csv')Define a timeout (in seconds) after which an exception is raised if no response is received.api=Api(key_id,path_to_key_file,issuer_id,timeout=30)api.list_apps()APIError:Readtimeoutafter30secondsPlease note this is a work in progress, API is subject to change between versions.Anonymous data collectionStarting with version 0.8.0 this library anonymously collects its usage to help better improve its development.
What we collect is:a SHA1 hash of the issuer_idthe OS and Python version usedwhich enpoints had been usedYou can review thesource codeIf you feel uncomfortable with it you can completely opt-out by initliazing the API with:api=Api(key_id,path_to_key_file,issuer_id,submit_stats=False)The is also anopen issueabout this topic where we would love to here your feedback and best practices.DevelopmentProject development happens onGithubTODOSupport App Store Connect API 1.2Support the include parameterhandle POST, DELETE and PATCH requestssales reporthandle related resourcesallow to sort resourcesproper API documentationadd testsCreditsThis project is developed byPonytech
Package: app-store-notifications-v2-validator
AppStore Notifications V2 ValidatorLibrary to read and validateApp Store Server Notifications V2in Python.pip install app-store-notifications-v2-validatorDownload "Apple Root CA - G3 Root" fromhttps://www.apple.com/certificateauthority/. Store the file path in an environment variable namedAPPLE_ROOT_CAor pass file path as apple_root_cert_path param in asn2.parse or put it in the directory where the code is run.Usageimportapp_store_notifications_v2_validatorasasn2request_body=b'{"signedPayload":"eyJh .... "}'try:data=asn2.parse(request_body)exceptInvalidTokenError:passdatais a dictionary:{
  "notificationType": "SUBSCRIBED",
  "subtype": "RESUBSCRIBE",
  "notificationUUID": "00000000-0000-0000-0000-000000000000",
  "data": {
    "bundleId": "com.example.App",
    "bundleVersion": "1",
    "environment": "Sandbox",
    "signedTransactionInfo": {
      "transactionId": "0000000000000000",
      "originalTransactionId": "0000000000000000",
      "webOrderLineItemId": "0000000000000000",
      "bundleId": "com.example.App",
      "productId": "com.example.App.pro",
      "subscriptionGroupIdentifier": "00000000",
      "purchaseDate": 0000000000000,
      "originalPurchaseDate": 0000000000000,
      "expiresDate": 0000000000000,
      "quantity": 1,
      "type": "Auto-Renewable Subscription",
      "inAppOwnershipType": "PURCHASED",
      "signedDate": 000000000000
    },
    "signedRenewalInfo": {
      "originalTransactionId": "0000000000000000",
      "autoRenewProductId": "com.example.App.pro",
      "productId": "com.example.App.pro",
      "autoRenewStatus": 1,
      "signedDate": 0000000000000
    }
  },
  "version": "2.0"
}© 2022-2023 Rick Wierenga
Package: app-store-reviews-reader
App store reviews readerTo fetch app store reviews from publicly available RSS feeds.App store provide RSS feed as follows -https://itunes.apple.com/{country}/rss/customerreviews/id={app_id}/xmlIt provides feed inxmlandjsonformat butxmlfeed have more information likereview_idandvote_countetc. Hencexmlfeed is used along withfeedparserto parse feed.InstallationInstall via PyPi:pipinstallapp-store-reviews-readerInstall from master branch (if you want to try the latest features):gitclonehttps://github.com/lalitpagaria/app_store_reviews_readercdapp_store_reviews_reader
pipinstall--editable.How to useAppStoreReviewsReaderrequire two parametersapp_idandcountry.app_idcan be found at the end of the url of app in app store. For example -https://apps.apple.com/us/app/xcode/id497799835310633997is theapp_idfor xcode andusis country.Now you can run the followingexample-importpprintfromdatetimeimportdatetime,timedeltaimportpytzaspytzfromapp_store.app_store_reviews_readerimportAppStoreReviewsReader# app_id, and country of xcodereader=AppStoreReviewsReader(app_id="497799835",country="us")# To fetch reviews entered in past 5 dayssince_time=datetime.utcnow().astimezone(pytz.utc)+timedelta(days=-5)# fetch_reviews will fetch all reviews if not parameters are passed.# If `after` is passed then it will fetch all reviews after this date# If `since_id` is passed then it will fetch all reviews after this review_idreviews=reader.fetch_reviews(after=since_time)pp=pprint.PrettyPrinter(indent=4)forreviewinreviews:pp.pprint(review.__dict__)Review contains following information -@dataclassclassReview:version:strrating:intid:inttitle:strcontent:strdate:datetimeauthor_link:strauthor_name:strcountry:strvote_count:Optional[int]=0vote_sum:Optional[int]=0The output is given with UTF-8 charsets, if you are scraping non-english App Store set the environment to use UTF -exportLANG=en_US.UTF-8exportPYTHONIOENCODING=utf-8