Saravanan666/pypi-org huggingface dataset:
Package: apix-core
Documentation:https://apix.orgSource Code:https://github.com/ApixOrg/apixapiXis a full-stack framework for backend developlment.apiXintegrates all necessary components to create
powerful backend applications in Python with just a few lines of code. UseapiXto create with ease
-backed applications with aGraphQLAPI .Integrated technologiesMongoDB: The schemaless and document-oriented database is ideal to effortlessly create powerful applications from scratch.GraphQL: The query language for APIs is perfectly suited to create efficient and well-documented APIs.Google Cloud Storage: The powerful object storage from Google allows you store data of any size and format.InstallationTheapiXlibrary is published onPyPIand can be installed with the following pip command.pip install apix-coreYou can useUvicornto run the application. Uvicorn is an ASGI web server implementation for Python. To install apiX together with uvicorn run this pip command.pip install 'apix-core[uvicorn]'DocumentationGo to our websiteapix.organd check out the detailed documentation.Example AppMake sure that you haveapiXanduvicorninstalled. Before you run the python code, replace the CONNECTION_STRING placeholder
with the connection string to your MongoDB instance.importuvicornfromapix.appimportApixAppfromapix.attributeimportApixIntegerAttribute,ApixStringAttributefromapix.databaseimportApixDatabasefromapix.modelimportApixModelfromapix.resolverimportApixMutationResolver,ApixQueryResolverfromapix.scalarimportApixString# Connection details of your MongoDB instanceDatabase=ApixDatabase(host='CONNECTION_STRING',name='demo',)# User model definitionUser=ApixModel(name='user',attributes=[ApixStringAttribute('name'),ApixIntegerAttribute('age'),],)# Function to create a userdefcreate_user(user:User)->User:Database(User).insert_one(user)returnuser# Function to find a user by namedeffind_user_by_name(name:ApixString)->User:returnDatabase(User).find_one(User.Name.Equal(name))# Create the appapp=ApixApp(resolvers=[ApixMutationResolver(create_user),ApixQueryResolver(find_user_by_name),],)if__name__=='__main__':uvicorn.run(app=app,host='localhost',port=8080,)Once your app is running, the GraphQL API is available athttp://localhost:8080/graphql. Now open your favorite web client (such asInsomniaorPostman)
and create a user with the following request.mutation{createUser(user:{name:"Dan"age:30}){idnameage}}To search for the user by name you can use the request below.query{findUserByName(name:"Dan"){idnameage}}
Package: api-youtube-uc
This API doesn't use API owned by YouTube.It uses "undetected_chromedriver"(basic Selenium).3.7VersionAdduser_data_dir, this is the correct usage, seehere why.Now you can upload multiple videos at once.For your convenience, I have created arepositorythat will help you createProfilescorrectly.Seeexample_3.7.py3.5VersionAdd upload profile.Seeexample_profile.py3.4VersionThis project public the shorts video to the YouTube.You'll need: @gmail, Password and backup_code.Seeexample.pyWhat to get a backup code, enable in your account settings:Manage your Google AccountSecurity2-Step Verification(Turn On)The program has been tested in the Netherlands and expects you to use English.How use?pip install api-youtube-ucCreate YouTube channel(go to the YouTube Studio for the first time)Watch file exampleexample.py
Package: apjson
apjsonapjsonis an asynchonus prettifier for json-like objects and a simple implementation of thejsonmodule and decorators.InstallationInstall via pip:pip install apjsonExamplefromapjsonimportprettify,to_bytesio,jbytesio,jprettyimportasyncio@jbytesio(sort_keys=True,check_circular=True)defsync_json():return'{"in": "this", "example": "the", "json": "function", "is": "sync"}'@jpretty(silent=True)asyncdefasync_json():return"{\"instead\":\"here\",\"is\":\"async\"}"asyncdefmain():print((awaitto_bytesio('{"this": "is", "an": "example", "here": 123}')).read())print(awaitprettify('{"this": "is", "another": "example", "here": True}'))print(awaitprettify(b"{\"X\": 123}"))print(awaitprettify(bytearray("{\"X\": 123}",encoding='utf-8')))#every decorated function should be awaited (even sync)print((awaitsync_json()).read())print(awaitasync_json())loop=asyncio.get_event_loop()loop.run_until_complete(main())Prettifierprettify: Prettifies and dumps the input (str,bytes,bytearray,dict) to json. Accepts every kwarg ofjson.dumps.awaitprettify('{"this": "is", "an_": "example", "here": 123, "even": 1.02, "but": False}')awaitprettify(b"{\"X\": 123}")awaitprettify(bytearray("{\"X\": 123}",encoding='utf-8'))#or use the decorator@jpretty(silent=True)asyncdefasync_json():#return a json-like str, bytes, bytearray, dict and the decorator will convert itreturn"{\"instead\":\"here\",\"is\":\"async\"}"Other Utilitiesto_bytes: converts input (str,bytes,bytearray,dict) toio.BytesIOawaitto_bytesio('{"this": "is", "an_": "example", "here": 123, "even": 1.02, "but": False}')#or use the decorator@jbytesio()asyncdefjson_to_bytesio():#return a json-like str, bytes, bytearray, dict and the decorator will convert itreturn'{"in": "this", "example": "the", "json": "function", "is": "sync"}'NotesYou can use the boolean kwargsilentfor skipping encoding exceptions.For custom encoder use the kwargencoderinstead ofclsin the function that uses the custom encoder.You can decorate both sync and async functions but always return async function that needs to be awaited.
Package: apk2java
READMEGENERAL INFOProject: Lib to decompile ApkContributors: MadSquirrelLicense: GNU General Public License v3.0Version: v1.0Date: 04-15-20GOALDecompile APK to java codeUSAGETo use as library you just need to:importapk2javaapk2java.decompile(<apk_path>,<directory_output>)To use as a program you just need to:apk2java<apk_path><directory_to_decompiled>EXEMPLEimportapk2javaapk2java.decompile("my_apk.apk","temp")INSTALLsudopython3setup.pyinstallBUGCHANGELOG
Package: apk-cheater
None-root memory editor on console$pipinstallfrida-gadget$pipinstallapk-cheater$pipinstallapk-signer$frida-gadget{APK_PATH}>GadgetAPK:{GADGET_APK_PATH}$apk-signer--run--default{GADGET_APK_PATH}$apk-cheater1:scan2:show3:next4:edit>
Package: apkcli
apkcliCommand line tool gathering information on APKs based onandroguard.InstallYou can install apkcli directly frompypi:pip install apkcliYou can also install it from the source code :git clone https://github.com/Te-k/apkcli.git
cd apkcli
pip install .Pluginsapkcli is a CLI tool with multiple plugins :usage: apkcli [-h]
              {arsc,cert,dex,find,frosting,info,json,manifest,permissions,shell,strings,urls,yara}
              ...

positional arguments:
  {arsc,cert,dex,find,frosting,info,json,manifest,permissions,shell,strings,urls,yara}
                        Plugins
    arsc                List strings from resource files
    cert                Show the certificate
    dex                 Extract the dex files
    enum                Enumerate interesting informations
    find                Find something in the APK
    frosting            Check if Google Play metadata (frosting) is in the APK
    info                Show the certificate
    json                Extract information on the APK in JSON format
    manifest            Show the manifest
    permissions         List the permissions required by the app
    shell               Launch ipython shell to analyze the APK file
    strings             Extract strings from the DEX files
    urls                Extract URLs from the DEX files
    yara                Run a Yara run on the Dex file

optional arguments:
  -h, --help            show this help message and exitExample :> apkcli info 1TopSpy.apk
Metadata
================================================================================
MD5:            3018507704917c208762b69e039bdbbf
SHA1:           aebe6e49ca8522cc0e72429028492e099ddf1f44
SHA256:         5e52438f28275dc2a7e83b989e726f86ba53c915b44f126507763850197646f6
Package Name:   com.topspy.system
App:            System Services

Certificate
================================================================================
SHA1:           656CD7890ED79CE8570D1B7156C31958D5AC1606
Serial:         79667C55
Issuer:         C=US/ST=San Jose/L=CA/O=NOVABAY Solutions/OU=HelloSpy LLC/CN=John Nguyen
Subject:        C=US/ST=San Jose/L=CA/O=NOVABAY Solutions/OU=HelloSpy LLC/CN=John Nguyen
Not Before:     Oct 24 09:02:52 2017 UTC
Not After:      Oct 18 09:02:52 2042 UTC

Permissions
================================================================================
android.permission.ACCESS_WIFI_STATE
android.permission.ACCESS_FINE_LOCATION
[SNIP]

Urls
================================================================================
https://goo.gl/NAOOOI.
https://goo.gl/NAOOOI
http://flushdata.1topspy.com
[SNIP]LicenseThis code is released under MIT license.
Package: apkdownload
ApkDownloaderYou Can Easily Download Apk Files Using This Apiinstalling$pipinstallapkdownloadHow To Useimportapkdownloadasapkapk.dl('App Name','Directory')exampleimportapkdownloadasapkapk.dl('Cpu-z','/sdcard/download)exampleimportapkdownloadasapkapk.dl('Subway Surf','/Desktop)
Package: apkdownloader
apk-downloaderuse google api download apk via python3Usage:Download projectgit clone https://github.com/krnick/apk-downloader.gitHow to use:$ pip3 install apk-downloaderimportapkdownloaderapk=apkdownloader.apkdownloader(mail,password,locale,timezone)apk.download("package.name")Problem solved :You need to login on below website before use this package.https://accounts.google.com/b/0/DisplayUnlockCaptchaIf show up SecurityCheckError when you modify the code also need to re-login.Function_description:透過package name 下載 apk
def downloadApkByPackageName(packagename):透過搜尋字串，搜尋最接近apk
def searchApkByKeyWord(search_word, maximum_search):透過package name 取得apk 細節資訊
def getDetailsByPackName(packagename):取得所有分類
def browseCategories():透過大分類取得子分類
def getSubListByCategory(category):透過大分類、子分類 取得對應的package name
def getAppBySubList(category, sub_list):
Package: apkfile
⛏️apkfile• Python library for handling APK, APKM, XAPK, and APKS filesInstall with pippip3install-UapkfileOr, install from source:gitclonehttps://github.com/david-lev/apkfile.gitcdapkfile
python3setup.pyinstallYou also need to installaapt(seeInstall aaptbelow).UsagefromapkfileimportApkFile,XapkFile,ApkmFile,ApksFile# Get apk infoapk_file=ApkFile(path='/home/david/Downloads/wa.apk')print(apk_file.package_name,apk_file.version_name,apk_file.version_code)print(apk_file.as_dict())# Get apkm infoapkm_file=ApkmFile('/home/david/Downloads/chrome.apkm')forsplitinapkm_file.splits:print(split.split_name)apkm_file.install(check=True,upgrade=True)# Using context manager (delete the extracted files when done)withXapkFile(path='/home/david/Downloads/telegram.xapk')asxf:print(xf.base.abis,x.permissions,x.langs)# Get apks infoapks_file=ApksFile(path='/home/david/Downloads/facebook.apks')print(apks_file.base.permissions,apks_file.md5,apks_file.sha256)How this library works?This library usesaaptto extract information from the.APKfile, and then parses the output to get the information.For the zip files (.APKM,.XAPK, and.APKS), the basic information (package_name,version_name,version_code, etc.) is derived from the .json file, and the rest of the information is extracted when it requested (lazy evaluation).The library also provide ways to install the files (and check compatibility;min_sdk_version,abisandlangs) usingadb. Just connect your device/s and run theinstallmethod. (you can use theinstall_apksfunction independently).Install aaptapkfile requiresaaptto be in thePATH.
In each operating system, the way to install aapt is different, if you installed Android Studio, add one of the build-tools paths to thePATH, if you are on a Debian-based Linux system (Ubuntu etc.) you can install withsudo apt install aapt, and on Windows and Mac? Just google "How to install aapt on X".You can manually provide a path to aapt:ApkFile(..., aapt_path='/path/to/aapt').Install adbif you want to use theinstallmethod, you need to installadb.You can manually provide a path to adb:ApkFile(...).install(adb_path='/path/to/adb').
Package: apkg
apkg docs onlineapkg docs on Read the Docsapkg docs on GitLabapkg docs offlineSee docs/index.md and other files in docs/ directory.You can also render docs into HTML using mkdocs:pip install -r doc-requirements.txt
mkdocs build
browser site/index.htmlread thedocsand have a nice packaging ᕕ( ᐛ )ᕗ
Package: apkkit
Authors:A. WilcoxVersion:0.6Status:BetaCopyright:© 2015-2018 Adélie Linux Team.  NCSA open source licence.RequirementsBackgroundAdélie Linux, our distribution, uses the Alpine Linux APK package manager.
We need a pure Python library for manipulating and verifying APK packages.
We also need a pure Python library for maintaining APK repositories.Objectives / success criteriaCompatibility with upstream APK Tools.Stable v1 release by December 2018.Minimal to no external dependencies.Solution visionMajor featuresPull metadata out of an APK file.Sanity check APK files and repositories.Creation of APK files.Read repository INDEX files to gather information on available packages.Project Scope and LimitationsScope of initial release (v1)The initial release will focus primarily on the handling of APK files.  Some
limited repository functionality may be present to further the ends of APK file
management.Scope of next release (v2)The second release will focus further on repository management.Scope of future releasesFurther releases will focus on keeping up to date with the upstream APK format,
and stability and performance fixes.  No further major features are anticipated.Limitations and exclusionsWarningThis isNOTmeant to be used by end users, or as a replacement
package manager!  It is designed for manipulation of APK packages, not
existing APK databases.  It probably has very little use unless you are a
package or repository maintainer.
Package: apk-launcher
Reinstall provided apk -> Start MainActivity -> Logcat(pid of target)How to install$pipinstallapk-launcheror$pipinstallapk-launcher--global-option=build_ext--global-option="-L/usr/local/opt/openssl/lib"--global-option="-I/usr/local/opt/openssl/include"How to use$apk-launcher{YOUR_APK_PATH}Option: no logcat$apk-launcher{YOUR_APK_PATH}--nolog
Package: apkleaks
APKLeaksScanning APK file for URIs, endpoints & secrets.Installationfrom Pypifrom Sourcefrom DockerUsageOptionsOutputPatternPatternArguments (disassembler)LicenseAcknowledmentsInstallationIt's fairly simple to installAPKLeaks:from PyPi$pip3installapkleaksfrom SourceClone repository and install requirements:$gitclonehttps://github.com/dwisiswant0/apkleaks
$cdapkleaks/
$pip3install-rrequirements.txtfrom DockerPull the Docker image by running:$dockerpulldwisiswant0/apkleaks:latestDependenciesAPKLeaks usingjadxdisassembler to decompile APK file. If it doesn't exist in your environment, it'll ask you to download.UsageSimply,$apkleaks-f~/path/to/file.apk# from Source$python3apkleaks.py-f~/path/to/file.apk# or with Docker$dockerrun-it--rm-v/tmp:/tmpdwisiswant0/apkleaks:latest-f/tmp/file.apkOptionsHere are all the options it supports.ArgumentDescriptionExample-f, --fileAPK file to scanningapkleaks -f file.apk-o, --outputWrite to file results(random if not set)apkleaks -f file.apk -o results.txt-p, --patternPath to custom patterns JSONapkleaks -f file.apk -p custom-rules.json-a, --argsDisassembler argumentsapkleaks -f file.apk --args="--deobf --log-level DEBUG"--jsonSave as JSON formatapkleaks -f file.apk -o results.json --jsonOutputIn general, if you don't provide-oargument, then it will generate results file automatically.NOTE:By default it will also save the results in text format, use--jsonargument if you want JSON output format.PatternCustom patterns can be added with the following argument to provide sensitivesearch rulesin the JSON file format:--pattern /path/to/custom-rules.json. If not set, it'll use default patterns fromregexes.jsonfile.Example patterns file:// custom-rules.json{"Amazon AWS Access Key ID":"AKIA[0-9A-Z]{16}",...}$ apkleaks -f /path/to/file.apk -p rules.json -o ~/Documents/apkleaks-results.txtArguments (disassembler)We give user complete discretion to pass the disassembler arguments. For example, if you want to activate threads injadxdecompilation process, you can add it with-a/--argsargument, example:--args="--threads-count 5".$ apkleaks -f /path/to/file.apk -a "--deobf --log-level DEBUG"NOTE:Please pay attention to the default disassembler arguments we use to prevent collisions.Licenseapkleaksis distributed under Apache 2.AcknowledmentsSince this tool includes some contributions, and I'm not an asshole, I'll publically thank the following users for their helps and resources:@ndelphit- for his inspiringapkurlgrep, that's why this tool was made.@dxa4481and y'all who contribute totruffleHogRegexes.@GerbenJavado&@Bankde- for awesome pattern to discover URLs, endpoints & their parameters fromLinkFinder.@tomnomnom- agfpatterns.@pxb1988- for awesome APK dissamblerdex2jar.@subho007for standalone APK parser.SHA2048#4361(Discord user)that help me porting code to Python3.@Ry0taKbecause he had reported anOS command injection bug.@dee__see- for curated potentially sensitive tokens,NotKeyHacks.All contributors.
Package: apkmod
apkpatcherCross-Platform tool used to inject frida scripts and gadget to an APKThis project started as a fork ofapkpatcherNOTEthat you should use this tool for debugging / educational purposes only!InstallationThe cmdline toolapkmod, comes with the toolbuildappInstall using a pypi package, then fetch tools for buildapp:pip install apkmod --upgrade && buildapp_fetch_toolsAutomationYou can useapkmodin your github workflow process!Simply add abuild.ymlat your repo.github/workflowsfolder:name: build patched app
on: [push]

jobs:
  build:
    runs-on: windows-latest
    steps:
      - uses: actions/checkout@v3
      - uses: mon231/apkpatcher@master
        with:
          original-apk: 'original.apk'
          output-apk: 'patched.apk'
          frida-script: 'frida.js'Patching processThis tool gets an android app installation file (.apk) and afrida js-scriptThen builds a new apk with frida-gadget & script runner ready to be installed on non-rooted android devices!RequirementsThe tool usesbuildapppackage,Therefore you have to provide it'srequirementsOr run the requirements fetcher toolbuildapp_fetch_toolsafter thepip installcommand
Package: apk-parse
APK parsereferenceandroguard.Example:apkf = APK("myfile.apk")
    apkf = APK(read("myfile.apk"), raw=True)packageReturn the name of the package>>> apkf.package
    com.android.vending

    >>> apkf.get_package()
    com.android.vendingfile_md5Return the file md5 of the apk>>> apkf.file_md5
    40bdd920a3a3d2acf432e3c5b485eb11cert_md5Return the cert md5 of the apk>>> apkf.cert_md5
    cde9f6208d672b54b1dacc0b7029f5ebfile_sizeReturn the apk file size>>> apkf.file_size
    11194863androidversionReturn the apk version>>> apkf.androidversion
    {'Code': u'80341200', 'Name': u'5.4.12'}get_androidversion_code()Return the android version code>>> apkf.get_androidversion_code()
    80341200get_androidversion_name()Return the android version name>>> apkf.get_androidversion_name()
    5.4.12get_min_sdk_version()Return the android:minSdkVersion attribute>>> apkf.get_min_sdk_version()
    9get_target_sdk_version()Return the android:targetSdkVersion attribute>>> apkf.get_target_sdk_version()
    21get_libraries()Return the android:name attributes for libraries>>> apkf.get_libraries()
    []get_files()Return the files inside the APK>>> apkf.get_files()
    [u'AndroidManifest.xml', u'assets/keys/dcb-pin-encrypt-v1/1',...]get_files_types()Return the files inside the APK with their associated types (by using python-magic)
Pleasepip install python-magic>>> apkf.get_files_types()
    {u'res/layout/play_card_bundle_item_small.xml': "Android's binary XML",...}get_main_activity()Return the name of the main activity>>> apkf.get_main_activity()
    com.android.vending.AssetBrowserActivityget_activities()Return the android:name attribute of all activities>>> apkf.get_activities()
    ['com.android.vending.AssetBrowserActivity', ...]get_services()Return the android:name attribute of all services>>> apkf.get_services()
    ['com.android.vending.GCMIntentService', ...]get_receivers()Return the android:name attribute of all receivers>>> apkf.get_receivers()
    ['com.google.android.gcm.GCMBroadcastReceiver', ...]get_providers()Return the android:name attribute of all providers>>> apkf.get_providers()
    ['com.google.android.finsky.providers.RecentSuggestionsProvider', ...]get_permissions()Return permissions>>> apkf.get_permissions()
    ['com.android.vending.permission.C2D_MESSAGE', ...]show()Return FILES, PERMISSIONS, MAIN ACTIVITY...>>> apkf.show()
    FILES: ...parse_icon()Parse ICON of the apk, storage on icon_path>>> apkf.parse_icon(icon_path='/tmp')
    ...cert_text>>> apkf.cert_text
    Certificate:
    Data:Version: 3 (0x2)
    ...
Package: apkpatcher
READMEGENERAL INFOProject: Library to patch apk (inject frida gadget)Contributors: MadSquirrelLicense: GNU General Public License v3.0Version: v1.0Date: 02-06-21GOALLibrary to patch apk (inject frida gadget)
this code is inspired by this project :https://github.com/badadaf/apkpatcher.
The improvements added by this fork are the following:modification of xml files such as AndroidManifest without extracting the
resources. Extracting the resources usually prevents to rebuild the apk.Use as an APIInstallation as a packageUSAGETo use as library you just need to:importapkpatcherpatcher=apkpatcher.Patcher(<apk_path>,<sdktools>,<version>)patcher.patching(<path_gadget>,<arch>,output_file=<output_file>,user_certificate=<true|false>)To use as a program you just need to:apkpatcher-a<apk_path>-g<path_gadget>-s<sdktools>-b<version>-r<arch>-o<output_file>EXEMPLEimportapkpatcherpatcher=apkpatcher.Patcher(<apk_path>,<sdktools>,<version>)# not mandatorypatcher.add_network_certificate(<custom_certificate>)patcher.set_arch(<arch>)patcher.pause(<True|False>)# end not mandatorypatcher.patching(<path_gadget>,<arch>,output_file=<output_file>,user_certificate=<true|false>)INSTALLsudopython3setup.pyinstallRequirementsetup your sktools as follow:https://madsquirrels.gitlab.io/mobile/asthook/how.install.html#setup-sdktoolsinstall:apktoolpip install -r requirements.txtCHANGELOG
Package: apkpuller
APKPullerTool extract APKs from device to desktop directoriesInstallpip3installapkpullerHow to useHelp menuList all packagesapkpuller-lGrep the package listapkpuller-l-ginstallview paths of the APKs in a packageapkpuller-v[PackageName]ADB extracts APK into directoriesapkpuller-p<packagename><directory>