Saravanan666/pypi-org huggingface dataset:
Package: apk-signature
Command line tool to print MD5 / SHA1 / SHA256 fingerprints of Android APK package.Why we need it?keytool no longer print MD5 after java8.But sometimes we do need the MD5 for example, in WeChat and AliPay developer console.Some alternative tools do not work well:Gen_Signature_Android.apk, need to be install to Android device, sometimes refused by Android device.jadx, a powerful to decompile APK, we can view details of APK package, but it's too heavy.To view the fingerprints, a very tiny command line tool will be enough.InstallationPlease make sure your Python is v3.7 or above.python3--version
python3-mpipinstallapk-signatureOr, clone from GitHub:gitclonehttps://github.com/floatinghotpot/apk-signature.gitcdapk-signature
python3-mpipinstall-e.How To Useapk-signature<path_to_apk_file>Example:apk-signaturemyapp.apkHow It WorksHere are the steps that the tool actualy runs:# unzip the IPA file to tmp foldermkdir./tmp
unzip<path_to_apk_file>-d./tmp# run openssl to extract certificate file from CERT.RSAopensslpkcs7-informDER-in./tmp/META-INF/CERT.RSA-print_certs-out./tmp/CERT.cert# print the fingerprints in upper caseopensslx509-in./tmp/CERT.cert-fingerprint-noout-md5
opensslx509-in./tmp/CERT.cert-fingerprint-noout-sha1
opensslx509-in./tmp/CERT.cert-fingerprint-noout-sha256# print the fingterprints in lower caseopensslx509-in./tmp/CERT.cert-outformDER|openssldgst-md5
opensslx509-in./tmp/CERT.cert-outformDER|openssldgst-sha1
opensslx509-in./tmp/CERT.cert-outformDER|openssldgst-sha256# clean up the tmp folderrm-r./tmpDependencyIt will call openssl, so make sure it's installed first.If not installed, install  it with Homebrew:brewinstallopensslCreditsA simple tool created by Raymond Xie, to print the MD5/SHA1/SHA256 signature of APK package with command line.Any comments are welcome.
Package: apksigtool
apksigtoolparse & verify android apk signing blocks... FIXME ...Python API... FIXME ...FAQ... FIXME ...Tab CompletionFor Bash, add this to~/.bashrc:eval"$(_APKSIGCOPIER_COMPLETE=source_bashapksigtool)"For Zsh, add this to~/.zshrc:eval"$(_APKSIGCOPIER_COMPLETE=source_zshapksigtool)"For Fish, add this to~/.config/fish/completions/apksigtool.fish:eval(env_APKSIGCOPIER_COMPLETE=source_fish apksigtool)InstallingFrom gitNB: this installs the latest development version, not the latest
release.$gitclonehttps://github.com/obfusk/apksigtool.git
$cdapksigtool
$pipinstall-e.NB: you may need to add e.g.~/.local/binto your$PATHin order
to runapksigtool.To update to the latest development version:$cdapksigtool
$gitpull--rebaseDependenciesPython >= 3.5 + apksigcopier + asn1crypto + click + cryptography + simplejson.Debian/Ubuntu$aptinstallapksigcopierpython3-{asn1crypto,click,cryptography,simplejson}License
Package: apkutils
apkutils介绍一个用于解析APK、Dex、AXML、ARSC、ELF的库。安装教程❯ pip install apkutils

❯ apkutils
Usage: apkutils [OPTIONS] COMMAND [ARGS]...

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  arsc      打印arsc
  certs     打印证书
  files     打印文件
  manifest  打印清单
  mtds      获取指定方法中的所有字符串
  strings   打印Dex中的字符串
  unzip     解压文件，默认显示zip文件
  xref      获取方法的引用方法用法fromapkutilsimportAPK# NOTE 按需解析，这里仅仅解析清单，不解析dex、图标。apk=APK.from_file(file_path).parse_resource()manifest=apk.get_manifest()apk.close()# orwithAPK.from_file(file_path)asapk:apk.get_manifest()请参考examples目录。备注从1.3.0开始，默认不解析清单、不解析图标、不解析Dex，而是按需解析。感谢Storyyeller/enjarifyandroguard/androguard
Package: apkutils3
apkutils3A library that gets infos from APK.Type hinting added for many functions.Many getter functions are replaced by properties.Install and Testpipinstallapkutils3Usage$python3-mapkutils-h
usage:apkutils[-h][-m][-s][-f][-c][-V]p

positionalarguments:ppath

optionalarguments:-h,--helpshowthishelpmessageandexit-mShowmanifest-sShowstrings-fShowfiles-cShowcerts-V,--versionshowprogram'sversionnumberandexitGUI tool$python-mapkutils.gui# Click BindRight click an*.apkfile. SelectAPK Parser. You will seeReferenceapkutils\axml fromkin9-0rz/axmlparserapkutils\dex fromStoryyeller/enjarify, license under Apache License 2.0.Original projects:apkutils2,apkutils, license under MIT License.LibCheckerused for classes list generation, license under Apache License 2.0.
Package: aplazame-sdk
Aplazame Python SdkAplazame, a consumer credit company, offers a payment system that can be
used by online buyers to receive funding for their purchases.InstallationTo install aplazame-sdk, simply:$pipinstallaplazame-sdkUsage>>>importaplazame_sdk>>>client=aplazame_sdk.Client('token',sandbox=True,version='1',ctype='json')>>>r=client.orders(page=2)>>>r.json(){"cursor":{"after":3,"before":1},"paging":{"count":314,"next":"https://api.aplazame.com/orders?page=3","previous":"https://api.aplazame.com/orders?page=1"},"results":[]}>>>r.status_code200Exceptions>>>importaplazame_sdk>>>client=aplazame_sdk.Client('token')>>>try:...r=client.get_order('buh')...exceptaplazame_sdk.AplazameErroraserr:...err.code404HttpGET/ordersHTTP/1.1Accept:application/vnd.aplazame.sandbox.v1+jsonAuthorization:Bearer ->token<-Host:api.aplazame.comHTTP/1.1 200 OK
Content-Type: application/vnd.aplazame.sandbox.v1+jsonDocumentationDocumentation is available atdocs.aplazame.com.Change Log0.2.6(2015-12-11)Full Changelog v0.2.6Replace detail by getFix tests0.2.5(2015-12-11)Full Changelog v0.2.5Operations and payments summaryTests0.2.4(2015-12-05)Full Changelog v0.2.4Instalment paymentsTests0.2.3(2015-10-13)Full Changelog v0.2.3PaymentsMerchant requestsTests0.2.2(2015-09-15)Full Changelog v0.2.2Fix lists kwargsAdd /me and operationsci pull request strategyci publish on pypici package versioning0.2.1(2015-08-24)Full Changelog v0.2.1ci deploy masterSimulator requestFix minor errors0.2.0(2015-07-20)Makefileci with drone.ioCoverage 100%Test and build requirementsAdd badgesGet method params strategy
Package: apldx-test
apldx_test========Test to delete and remake packageUsage-----# Build the virtualenv and install required modules,# including this one in editable mode0/make_venv.sh. Venv/bin/activate# Build the module0/build.sh# Register the built module with PyPI0/register.sh# Upload a new build to PyPI0/upload.sh# Delete all built files0/clean.shDevelopment-----------Run `0/make_venv.sh` first. Venv/bin/activate# This IPython config will set autoreloadipython --config=0/ipython_config.py
Package: aplotly
aplotlyInstallationpipinstallaplotlyUsageFor examples please refer to the code in theexamplesfolder.Color PalettesThe following color palettes are available:default: The default color palette with a white background, black text and lots of different color tracesgreys: A palette with a white background, black text and traces from black to light greynight: A palette with a black background, white text and traces in green, white and greydark_mode: A palette with a dark grey background, white text and traces in light green, white and grey
Package: aplpy
AboutAPLpy (the Astronomical Plotting Library in Python) is a Python module
aimed at producing publication-quality plots of astronomical imaging
data in FITS format.PyPI:https://pypi.python.org/pypi/APLpyWebsite:http://aplpy.github.ioDocumentation:http://aplpy.readthedocs.ioAPLpy is released under an MIT open-source license.InstallingYou can install APLpy and all its dependencies with:pip install aplpy
Package: apluslms-roman
Abstract:Course material builder for online learning systemsAuthor:Jaakko Kantojärvi <jaakko.kantojarvi@aalto.fi>Roman is course material builder for A+ and other learning management systems.
Roman usesdockerto run different build steps.
Course building steps are configure incourse.yml, which is read by roman.Roman is in experimental development stateCheck outAriel.
It is an extension to sphinx build process that is used to build RST course material to HTML and YAML files.
It can simple be used by addingapluslms/arielto build steps.Course configurationRoman reads configuration filecourse.yml,course.yamlorcourse.jsonand then
runs course build steps defined instepslist.
Steps can be strings describing docker image or objects containing at leastimg.
Here is small example:# course.yml---version:2theme:aplussteps:-hello-world-img:apluslms/compile-rstcmd:make touchrst htmlmnt:/compileenv:STATIC_CONTENT_HOST:"http://localhost:8080/static/default"InstallationYou can use prebuild binaries with graphical user inteface fromreleases page.
Alternatively, you can install cli version via pippip3 install--userapluslms-roman[docker], which will add$HOME/.local/bin/roman.
Presuming you have that in yourPATH, then you can executeroman--helpto get started.List of graphical user inteface binaries*-linux.AppImageis anAppImagepackage of Roman.
Download, mark file executable and run it.
RequiresFUSE(installed on typical linux desktop).*-linux.zipcontains a single-file executable.
Download, extract, runroman.
Requires that files in/tmp/can be executed.*-mac.dmgcontainsRoman.appin a disk image.
Download, open, dragRoman.appto e.g.Applications, run.Note: On the first time you need to right or control-click the app, selectopenin the menu and finallyopenin the dialog.*-mac.zipcontainsRoman.appin a zip.
Same prosess as with above version.If you are not sure what file to use, then use the first one for your operating system.Documentation on how these files are build, can be found under ``packaging`` in the source repo.DevelopingThis repository curently holds few different python packages, which makes things problematic.
There is set of scripts under./scripts/to make this ok.For example, you can setup development environment for you:# install venv (you can skip this part)python3-mvenvvenv# orpython3-mvirtualenv-ppython3venv# activate../venv/bin/activate# install roman packages./scripts/install_for_development.shTo run tests:# run all tests in the repo
#  creates virtual env, if none is active./scripts/run_all_tests.sh# run all tests for a packagepython3setup.pytestpython3-munittestdiscover-t.-stests# run a single test filepython3-munittesttests.test_cli# run a single test classpython3-munittesttests.test_cli.TestGetConfig
Package: apm4py
apm4pyapm4py is Python API forAppian Process Mining. It focuses on resource management, but provides methods that can be used to access the processed data as well.This package is still in initial development state. Anything may change at any time. The public API should not be considered stable.InstallationYou can install apm4py directly from PyPi with e.g.$pipinstallapm4pyHow to get startedTo connect with an api at e.g. 'https://cloud-backend.lanalabs.com', first create an API withfromapm4pyimportcreate_apiapi=create_api('https','cloud-backend.lanalabs.com',API_KEY)Using the Command LineCommand line currently only supports uploading event logs. Four files for the event log have to be in one folder and follow the convention:event log CSV has "event" in the file namecase attribute CSV has "case" in the file nameevent log semantics json have "event" in the file namecase attribute log semantics json have "case" in the file nameSee ./tests/data/incident_management as an example.To install the CLI globally, usepipx:pipxinstallapm4py
apmupload--name"Incident Management"tests/data/incident_management
apmlist-logsIt will prompt you for host settings on the first run and also supports having multiple profiles with different hosts. Similar as the aws-cli. Profiles are saved in~/.apm/.If you want to run the command line client from source, you have to prependpoetry runbefore anyapmcommand. For examplepoetry run apm list-logs.Growing event logsapm4py comes with a utility calledlog growerthat allows to grow existing event logs by copying there content as many times as wanted. While copying the events and cases it makes sure to alter the CaseIDs so that new cases are created. Thereby, the structure of the event log is preserved. That is, the number of activities and the number of variants stay the same.It expects an existing event log with four files in one folder as described above. In order to generate a 10 times larger event log from the incident management data set provided in the test data of this repository, you can runapmgrow-log./tests/data/incident_management\--csv-separator";"\--output-csv\--growth-factor10Building and installing from sourcepoetryinstall
poetrybuild
pipinstall/dist/apm4py-0.X.Y-py3-none-any.whlHow to contributeSee the details inCONTRIBUTING.md.LicenseApache License 2.0
Package: apm-agent-utils
Elastic APM Agent UtilsThis package can help you create Elastic APM instrumentations using regex.Dependenciespython2.7+ || python3.6+elastic-apm 5.4.0+Installationpipinstallapm-agent-utilsUsageCreate a file namedinstrumentations.py# instrumentations.pyfromapm_agent_utils.instrumentationimportInstrumentationBuilderbuilder=InstrumentationBuilder("Test")builder.add_instrument("logic.logic1",r"^hello.*")# finding and wrapping your funtions by regexbuilder.add_instrument("logic.logic2",r".*")Test=builder.create_instrument()In yourapp.py, adding the following lines at top of the file.importelasticapmfromapm_agent_utils.utilsimportadd_instrumentationadd_instrumentation("instrumentations.Test")elasticapm.instrument()==>app.py# app.pyimportelasticapmfromapm_agent_utils.utilsimportadd_instrumentationfromelasticapm.contrib.flaskimportElasticAPMfromflaskimportFlaskadd_instrumentation("instrumentations.Instrument")elasticapm.instrument()app=Flask(__name__)app.config['ELASTIC_APM']={'SERVICE_NAME':'vuonglv_test','SECRET_TOKEN':'#####','SERVER_URL':'http://##.##.##.##:8200/','DEBUG':True}apm=ElasticAPM(app)main.py- your controllers# main.pyfromappimportappfromlogic.logic1importhellofromlogic.logic2importfoo,bar@app.route("/")defrun():print(hello())print(foo())print(bar())return{"ok":True}if__name__=="__main__":app.run(debug=True)Project structure look like this:Run apppython3main.pyGet your endpointcurl --location --request GET 'http://localhost:5000'Goto your APM dashboard, result look like this:
Package: apmath
AppmathSekcja 1To jest mĂłj przykĹ‚adowy projekt wykorzystujÄ…cy moduĹ‚ setuptools i Pythona.Sekcja 2PrzykĹ‚adowy kod pÄ™tlifor:foriinrange(100):ifi%2==0:print(i)Sekcja 3To jest tekstpogrubiony.To jest tekstpochylony.
Package: apminsight-site24x7-py
Python Application Performance MonitoringMonitor and optimize your Python application performance with a Site24x7 APM Insight Python agent. The agent provides you information on your application's response time, throughput, database operations, and errors. Track these metrics over time to identify where to optimize them for enhanced performance.Before you can use an APM Insight agent to monitor metrics, ensure that you have a Site24x7 account.Requirements : Python version 3.8 and aboveSupported frameworks : Django, Flask
Supported components : pymysql, psycopg2, pymemcache, redis, sqlite, jinjaInstallationInstall APM Insight Python agent using pip or poetrypip install apminsight-site24x7-py
  poetry add apminsight-site24x7-pyFor Django applications, addapminsight.contrib.djangoas the first ofINSTALLED_APPSin django settings.pyFor Flask applications, addimport apminsightin the first line of main fileAdd the license key in environmentS247_LICENSE_KEYas well asAPM_APP_NAMEandAPM_APP_PORTexport S247_LICENSE_KEY=<license-key>
  export APM_APP_NAME=<your-app-name>
  export APM_APP_PORT=<your-app-port>
Package: ap-motif
ap-motifMotif is an opinionated templating toolkit built in PythonRequirementsPython 3.8.x, 3.9.xAppropriate virtualizationInstallationpip install ap-motifUsage:# validate a configuration filemotifvalidatePATH/TO/CONFIG.YML# create a new tool via configuration filemotifcreatePATH/TO/CONFIG.YMLConfig File Definitionversion:'VERSION'config:namespace:'NAMESPACE_IDENTIFIER'name:'TOOL_NAME'version:'MAJOR.MINOR.PATCH'description:'DESCRIPTION'author:'AUTHOR_NAME'author_email:'AUTHOR_EMAIL'tool:'TOOL_IDENTIFIER'tool_specific:command:'COMMAND_NAME'VERSIONis the motif config version, currently1.0NAMESPACE_IDENTIFIERis the name of your python namespace, i.e.apfor things I createTOOL_NAMEis the name of the tool, i.e.motifMAJOR.MINOR.PATCHis an optional field that defaults to0.1.0AUTHOR_NAMEis the author's nameAUTHOR_EMAILis the author's email (use your github anonymous email for security purposes)TOOL_IDENTIFIERis one of the following:clito create a new CLI tooltool_specificoptions change based on the tool in questioncliCOMMAND_NAMEis an optional field and will revert to theTOOL_NAMEif not provided. this is the command line command used to execute the tool
Package: apmultitool
MultitoolmultiToolis a command line interface with an array of features that can generally make life easier.PrerequisitesBefore you begin, ensure you have met the following requirements:You havepython3installedInstalling MultitoolTo installmultitool, follow these steps:in a terminalgitclonehttps://github.com/alexpdev/multitool.gitcdmultitool
pythonsetup.pyinstallUsing MultitoolTo usemultitool, follow these steps:TODOContributing to MultitoolTo contribute tomultitool, follow these steps:Fork this repository.Create a branch:git checkout -b <branch_name>.Make your changes and commit them:git commit -m '<commit_message>'Push to the original branch:git push origin <project_name>/<location>Create the pull request.Alternatively see the GitHub documentation oncreating a pull request.ContactIf you want to contact me you can reach me through Github Issues for the repository.LicenseThis project uses the following license:MIT.
Package: apn
apnValidate or lookup Assessor’s Parcel Number (APN) formats for any given state/county in the United States.Lookup or validate an APN format for
a given county and/or state.Installationpip install apnUsageusage: apn.py [-h] [-s STATE] [-c COUNTY] [-l] [-v]

Look up APN format by State and/or County

optional arguments:
  -h, --help            show this help message and exit
  -s STATE, --state STATE
                        US state to lookup APN format
  -c COUNTY, --county COUNTY
                        by specific county
  -l, --list            list all APNs
  -v, --version         current versionMore examples of how to use in command line or in code$ apn -s WA -c King
> import apn
> results = apn.lookup('WA','King)AuthorsEric Proulx-Owner-WebsiteKen Harmon-Owner-WebsiteNotesWorks with Python2 and Python3apn uses pkl files to store APN, state dataDevelopmentClone repoRunpython-mapn.cli.apnfor consoleChanges/improvements welcome!To add data, please edit the apn.db Sqlite db and then runpython build.pyNews2.0.7WE’LL DO IT LIVEAdded Python3.6 support
Package: apnews
APNews Web ScraperThis Python package,apnews, provides a simple way to scrape top news articles from the Associated Press website.InstallationYou can installapnewsfrom PyPI:pipinstallapnewsUsageHere is an example of how to useapnews:importapnewsarticles=apnews.scrape_top_news()fortitle,articleinarticles:print(title,article)LicenseThis project is licensed under the terms of the MIT license.
Package: apng
A Python module to deal with APNG file.FeaturesMerge multiple images into one APNG file. (It use Pillow to convert images into PNG format)Read APNG file and extract each frames into PNG file.It doesn’t do any optimization but only concat the images. This might be changed in the future.DependenciesPillow-Optional. You can still use pyAPNG without PIL but it can only read PNG files.Development dependenciespngcheckSee requirements.txt for other dev-dependencies.InstallationFrompypi:pip install apngUsageConvert a series of images into APNG animation:fromapngimportAPNGAPNG.from_files(["1.jpg","2.jpg","3.jpg"],delay=100).save("result.png")Use different delays:fromapngimportAPNGfiles=[("1.jpg",100),("2.jpg",200),("3.jpg",300)]im=APNG()forfile,delayinfiles:im.append_file(file,delay=delay)im.save("result.png")Extract frames from an APNG file:fromapngimportAPNGim=APNG.open("animation.png")fori,(png,control)inenumerate(im.frames):png.save("{i}.png".format(i=i))Add a text chunk to the PNG file:fromapngimportPNG,make_text_chunkim=PNG.open("image.png")im.chunks.append(make_text_chunk(key="Comment",value="Some text"))im.save("image.png")PerformanceIf you want to convert some large JPGs into animation, the library has to convert your JPGs into PNGs then merge them into a single animation APNG file. The problems are:It is extremely slow.The file size of the APNG is extremely large. Probably 5x of the original or more.In this case, I suggest trying an animation format called “ugoira”, which is implemented by Pixiv.net. There is also an image viewer named “HoneyView” which can view it locally.Documenthttp://pyapng.readthedocs.io/en/latest/TodosAdd optimizer?Changelog0.3.4 (Mar 11, 2020)Fix: exclude test files from the package.0.3.3 (Feb 11, 2019)Fix: failed to extract frames containing multiplefdATchunks.0.3.2 (Jul 20, 2018)Add:make_text_chunkfunction.Add:Chunkdata class.Change: nowparse_chunksyieldsChunkinstead of a tuple. This should be safe sinceChunkis a namedtuple.0.3.1 (May 13, 2018)Add: universal wheel.0.3.0 (May 13, 2018)Support Python 2.Add: PNG methodopen_any,from_bytes.Add: APNG methodappend_file,from_bytes.Add: module functionparse_chunks.Drop: module function `is_png` and `chunks`.Change: `PNG.open` now only reads PNG images. To read non-PNG images, use `PNG.open_any`.Change: `APNG.append` now only accepts `PNG` instance. To append PNG files, use `APNG.append_file`.0.2.1 (Apr 19, 2018)Add: support num_plays. (#4)0.2.0 (Dec 8, 2017)Add test.Add documents.Add: support path-like object.Fix: some chunks must appear before IDAT. (#1)Fix: change chunks order in APNG. Some chunks are moved to the end of the file.Fix: remove tRNS hack.Fix: is_png shouldn’t move file pointer. (#2)0.1.0 (May 30, 2016)First release.
Package: apng2gif
APNG2GIF將 APNG 圖片轉換成 GIF 圖片What is APNG?APNG（Animated Portable Network Graphics）格式是PNG的點陣圖動畫擴充，但未獲PNG組織官方認可。其擴充方法類似GIF 89a，仍對原版PNG保持向下相容。APNG第1影格為標準PNG圖像，剩餘的動畫和影格速等資料放在PNG擴充資料塊，因此只支援原版PNG的軟體會正確顯示第1影格。APNG與Mozilla社區關係密切，格式標準文件設在Mozilla網站。在哪邊看的到 APNG?在台灣最常看到的就是 LINE 的貼圖，就是使用 APNG或者 LINE Store 的貼圖預覽也是使用 APNG如何使用# 安裝 Install
pip install apng2gif使用指令 CLI# 輸出 GIF 至目前工作目錄
apng2gif -i 'apng_path'

# 指定輸出路徑及檔案名稱
apng2gif -i 'apng_path' -o 'output_gif_path'

# 設定 GIF 播放次數，不包含第一次
apng2gif -i 'apng_path' -l 3

# 查看所有設定
apng2gif -h匯入 importfrom apng2gif import APNG2GIF

test = APNG2GIF()
test.apng2gif(apngfile, loop=0, output=None)
Package: apnggif
apnggifPython interface toapng2gif.Both APNG (Animated PNG) are GIF are major animation formats nowadays, however there is no good python library to convert from APNG to GIF.apnggifis modern, easy-to-use python conversion library (and CLI) built on top ofapng2gifwhich is written in C++ and also used inEZGIF.com.Usageapnggifrequires python>=3.6.pip install apnggifCLIIf you pip install apnggif, a command line clientapnggifis already installed in your system. Try the following command to convert APNG image to GIF.apnggif <GIF> ...For more information about options, checkapnggif --helpIn a Python programfromapnggifimportapnggifapnggif("ball.png")Licensezlib/libpng License.
Package: apns2-client
# apns2-clientapns2-client is a python package designed for simple, flexible and fast Apple Push Notifications on iOS, OSX and Safari using the new HTTP/2 Push provider API.Creation of this package was inspired by @sideshow's [apns2](https://github.com/sideshow/apns2) golang package.## Features- Uses new Apple APNs HTTP/2 connection- Supports new iOS 10 features such as Collapse IDs, Subtitles and Mutable Notifications- Supports persistent connections to APNs## Cautions- Works only with Python 3.5 and later## Install- Make sure you have [pip](https://pip.pypa.io/en/stable/installing/) installed.- Install `apns2-client`:```shpip install apns2-client```## Example```pythonimport apns2cli = apns2.APNSClient(mode="dev", client_cert="/your/path.pem")alert = apns2.PayloadAlert(body="body!", title="title!")payload = apns2.Payload(alert=alert)n = apns2.Notification(payload=payload, priority=apns2.PRIORITY_LOW)response = cli.push(n=n, device_token="your_token")assert response.status_code == 200, response.reasonassert response.apns_id```