Saravanan666/pypi-org huggingface dataset:
Package: andreo1
Biblioteca Andreo 🌱Funções atuais:leitura de pdf com textos ou textos em imagens e transformação para string.InstalaçãoUtilize a bibliotecapip install andreo1Dependenciaspip install pdf2image
pip install numpy
pip install pytesseract
pip install opencv-pythonSistema OperacionalPara o bom funcionamento é necessária a instalação do poppler e tesseract.WindowsDeve-se adicionar ao path os seguintes arquivosTesseract Windows x64: Pasta onde fica o tesseract.exeTesseract Windows x86Poppler Windows: pasta /bin🚨🚨🚨
Apos a instalação dos dois no path o sistema, o Windows deve ser reiniciado !! 🚨🚨🚨MacOsUtilizando o HomeBrew execute os comando:brew install popplerbrew install tesseractbrew install tesseract-langExemplosFunção recortaUmaPagina(pdfPath,pagina,aI,aF,lI,lF,mode):pdfPath: String = diretorio completo do arquivo. Ex: '/Users/yourUser/yourFolder/YourPDF.pdf'pagina: Int = o numero da pagina que deseja ler ou verificar os tamanhos. Ex: 0.
!! IMPORTANTE !!: A primeira pagina do seu arquivo PDF é a 0aI, aF, lI, e lF: Int = são as coordenadas de corte. Caso não sejam preenchidas a função perguntará o tamanho do recortemode: String = O modo de uso da função. Para retornar uma string com os tamanhos da imagem use 'definicao',
para retornar o texto da area selecionada use: 'recorte'. !! IMPORTANTE !! se não for preenchido, o padrão é recorte\nExemplosandreo.recortaUmaPagina(r'yourFolder/YourPDF.pdf',0,0,800,0,800)= vai retornar o texto escrito no pdf nas cordenadas [0:800:0:800]andreo.recortaUmaPagina(r'yourFolder/YourPDF.pdf',0,'definicao')= vai permitir testar coordenadas diferentes e retorna-la como stringPara manipular um PDF, página por página para por exemplo pegar mais de uma informação dela use o código abaixo:import andreo                                                        
path = r'/Users/yourUser/yourFolder/YourPDF.pdf'                     
pdf = andreo.PdfCutReader(path)
allPages = pdf.allPages()
for page in range(pdf.pagesCount()):
    img = andreo.img.bytes()
    pg = allPages[page]
    pg.save(img, format='png')
    texto1 = pdf.retornaString(pdf.definicao(img.getvalue(), 0, 1500, 0, 1500))
    texto2 = pdf.retornaString(pdf.definicao(img.getvalue(), 10, 244, 0, 60))
img.close()Função leUmaPaginaInteira(pdfPath: str, pagina: int):pdfPath: String = diretorio completo do arquivo. Ex: '/Users/yourUser/yourFolder/YourPDF.pdf'pagina: Int = o numero da pagina que deseja ler ou verificar os tamanhos. Ex: !! IMPORTANTE !!: A primeira pagina do seu arquivo PDF é a 0
Exemplo 1:andreo.PdfCutReader(r'yourFolder/YourPDF.pdf').leUmaPaginaInteira(0)AuthorGithub@andreonaymayer
Package: andrew-richards-sdk
Lord of the rings sdkSDK for Lord of the rings apiSetupInstallpipinstalllord-of-the-rings-sdkAPI ReferenceImportsfromlord_of_the_rings_sdkimportLordOfTheRings# The first argument is the tokenapi=LordOfTheRings(base_url='url to api',token='your token')Get items example movie# Returns requests.models.Response objectresp=api.movie()# Returns json objectresp.json()Get single item example quote# if the_id is specified it returns item with specified idresp=api.quote(the_id="id of the item")# Returns json objectresp.json()Get single movie with quate# if the_id is specified it returns item with specified idresp=api.quote(the_id="id of the item",extra_path='quote')# Returns json objectresp.json()TestsClone the reporun 'test/name of test'
Package: andrew-robot
Reverse Engineering the Andrew RobotAndrew is a robot designed to automatically perform bioscience experiments through pipetting precise quantities of liquids. The original Andrew robots are no longer supported bythe manufacturer. Additionally, the existing software is old and based on Adobe AIR, a product similar to Flash, which is no longer supported by Adobe. To revitalize old robots, this repo exists to document the hardware and software of the Andrew robots, along with providing a Python library to interface with the robot.Software LibraryTo install the package, run:$ pip install andrew_robotFor basic usage, theAndrewRobotclass can be used to control both the servos and lights of the robot.fromandrew.robotimportAndrewRobotrobot=AndrewRobot('D:\\Resources\\andrew.xml','COM3',250000,'COM4')# Set the max speed to something reasonably slowrobot.max_speed=50The AndrewRobot constructor takes the path to the andrew.xml config file, the serial port for the servos, the baud rate for the servos (this is presumably 250000 for all Andrew robots), and the serial port for the LED controller.To control the servos, themove_servos()fucntion can be used. This method will attempt to move the arm to a safe height before moving the rest of the servos to their desired position, and then changing the arm height to its own desired position.robot.move_servos(shoulder=1065,elbow=1530,wrist=1300,linear=2035,thumb=1779)The right servo values for a desired pose can be found using the examplefind_poses.py.Functions to control the LEDs are also provided. Note that these will need a slight delay after creating anAndrewRobotinstance, as the LED controller restarts upon starting serial communication.# Delay to let the LED controller restarttime.sleep(.1)robot.led_arm(0)robot.led_body(0)Before any code can be run to interface with the servos, you will need tofix the drivers they use.DocumentationCommunicating with the different parts of the robotDeep dive into the hardware of AndrewServo communication and IDsControlling the LEDsSoftware provided by Andrew AllianceLimitationsResearch for this was done largely using the 1000G model of Andrew robot (probably, it's not labeled clearly, but we believe this is one of the first generation of Andrew robots) and briefly double-checked on a 1000R, although not thoroughly. It is very possible that other robots may have issues with this library. Pull requests to improve the information and code here are welcome.
Package: andrewtools
Aboutandrewtoolsis an assortment of handy Python tools made by someone named Andrew.Quick StartSupported Python VersionsPython 3.8+Mac / Linuxpip install andrewtoolsWindowspy -m pip install andrewtoolsExamplesProgress BarIf you are working on a program that uses a loop that takes a significant amount of time to execute, it can be nice to follow the progress of your program while it runs. Useprogress_barto visualize the progress via the command line.import time
from andrewtools import progress_bar

iterations = 10
for i in range(iterations):
    time.sleep(0.5)
    progress_bar(i, iterations, width=10, prefix="Progress")

# Printed to command line:
Progress | ***------- | 30%  <- % and progress bar update in-place while loop runsWarning: this function will not play well if the loop includes other print statements. The progress bar may get printed on a separate line for each iteration, which may not be desirable.Note: in the case of a constant runtime per iteration, the progress bar provides a good estimate of the relative amount of executiontimeremaining. Be aware that in the case of variable runtimes per iteration (e.g. if there is an inner loop with a varying workload), the progress bar isnota good estimate of the remaining execution time. It simply tracks the progress through thenumberof iterations.AndrewTimerAndrewTimerprovides a simple API for a timer to use to measure execution time of your programs.from andrewtools import AndrewTimer

    at = AndrewTimer()
    for i in range(10):
        time.sleep(0.5)
        at.lap()

        # Use in tandem with `progress_bar` as follows:
        end = f"(Last {at.last_lap(format=True)}) (Total: {at.elapsed(format=True)})"
        progress_bar(i, 10, width=10, label="Progress", end=end)

    # Measure total time since instantiation
    total_time = at.elapsed('s', format=True)

    # Measure average time of all laps recorded on the timer
    average_time = at.average('s', format=True)

    # Display formatted times
    print(f"Total: {total_time}, Average: {average_time}")  # approx. 5.000s 0.500s
Package: andriller
Andriller CE (Community Edition)Andriller - is software utility with a collection of forensic tools for smartphones. It performs read-only, forensically sound, non-destructive acquisition from Android devices. It has features, such as powerful Lockscreen cracking for Pattern, PIN code, or Password; custom decoders for Apps data from Android (some Apple iOS & Windows) databases for decoding communications. Extraction and decoders produce reports in HTML and Excel formats.FeaturesAutomated data extraction and decodingData extraction of non-rooted without devices by Android Backup (Android versions 4.x, varied/limited support)Data extraction with root permissions: root ADB daemon, CWM recovery mode, or SU binary (Superuser/SuperSU)Data parsing and decoding for Folder structure, Tarball files (from nanddroid backups), and Android Backup (backup.abfiles)Selection of individual database decoders for Android appsDecryption of encrypted WhatsApp archived databases (.crypt to .crypt12, must have the rightkeyfile)Lockscreen cracking for Pattern, PIN, Password (not gatekeeper)Unpacking the Android backup filesScreen capture of a device's display screenPython Requirements3.6-3.10 (64-bit version recommended)It is highly advised to setup a virtual environment to install Andriller and its dependencies in it. However, it is not essential, and the global environment can also be used. Depending on how Python was setup, it may be needed to substitutepythonandpiptopython3andpip3retrospectively for the instructions below.Windows only: when installing Python fromhttps://www.python.org, make sureAdd Python to PATHis ticked.System Dependenciesadbpython3-tk[Ubuntu/Debian] Install from Terminal:sudoapt-getinstallandroid-tools-adbpython3-tk[Mac] Install from brew cask:brewcaskinstallandroid-platform-tools[Windows] :Included.Installation (Recommended way)Create a virtual environment using Python 3:python3-mvenvenvActivate the virtual environment (Linux/Mac):sourceenv/bin/activateActivate the virtual environment (Windows):.\env\Scripts\activateInstall Andriller with its Python dependencies (same command to upgrade it):pipinstallandriller-UQuick Start (run GUI)python-mandrillerLicenseMIT LicenseContributingContributions are welcome, please make your pull requests to thedevbranch of the repository.Bug TrackerBugs and issues can be submitted in the (Issues) section.DonationsYou may make donations to the projects, or you can also justbuy me a beer:
Package: androguard
AndroguardInstallationQuick installation:pip install androguard[!IMPORTANT]
Versions >= 4.0.0 are new releases after a long time, where the project has substantial differences from the previous stable version 3.3.5 from 2019. This means that certain functionalities have been removed. If you notice an issue with your project using tha latest version, please open up anissue.DocumentationDocumentation contains outdated information - In progress of updatingThewikipage is the most recently updated source.Additional documentation that contains outdated information is available atReadTheDocs.FeaturesAndroguard is a full python tool to play with Android files.DEX, ODEXAPKAndroid's binary xmlAndroid resourcesDisassemble DEX/ODEX bytecodesBasic Decompiler for DEX/ODEX filesFrida support for easy dynamic analysisSQLite database to save the sessionAuthors: Androguard TeamAndroguard + tools: Anthony Desnos (desnos at t0t0.fr).DAD (DAD is A Decompiler): Geoffroy Gueguen (geoffroy dot gueguen at gmail dot com)Projects using AndroguardIn alphabetical orderAndroPyToolAppKnoxCuckoo SandboxDeckardDroidbotDroidstatxεxodusF-Droid ServergplaycliKoodousMobSFqiewQuark-EngineViper Framework... and many more!You are using Androguard and are not listed here? Just create aticketor send us apull requestwith your project!LicensesAndroguardCopyright (C) 2012 - 2023, Anthony Desnos (desnos at t0t0.fr)
All rights reserved.Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS-IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.DADCopyright (C) 2012 - 2016, Geoffroy Gueguen (geoffroy dot gueguen at gmail dot com)
All rights reserved.Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS-IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: androguard-en
Androguard is a tool and python library to interact with Android Files.Usually they come in the form of Android Packages (APK) or Dalvik Executeable (DEX) files.
Androguard has tools to read Android’s binary format for XML files (AXML) and is also suited with a decompiler for DEX.Androguard might not only be used as a tool for reverse engineering single applications, but features a lot of functions
for automated analysis. It provides a pure python framework to build your own analysis tools.If you encounter bugs while using androguard, please feel free to report them in ourbugtracker.
Package: androguard-p
AndroguardInstallationPlease see thewiki... let's start reversing!FeaturesAndroguard is a full python tool to play with Android files.DEX, ODEXAPKAndroid's binary xmlAndroid resourcesDisassemble DEX/ODEX bytecodesBasic Decompiler for DEX/ODEX filesFrida support for easy dynamic analysisSQLite database to save the sessionAuthors: Androguard TeamAndroguard + tools: Anthony Desnos (desnos at t0t0.fr).DAD (DAD is A Decompiler): Geoffroy Gueguen (geoffroy dot gueguen at gmail dot com)DocumentationFind the documentation for master onReadTheDocs.There are some (probably broken/outdated) examples and demos in the foldersdemosandexamples.Projects using AndroguardIn alphabetical orderAndroPyToolAppKnoxCuckoo SandboxDeckardDroidbotDroidstatxεxodusF-Droid ServergplaycliKoodousMobSFqiewQuark-EngineViper Framework... and many more!You are using Androguard and are not listed here? Just create aticketor send us apull requestwith your project!LicensesAndroguardCopyright (C) 2012 - 2023, Anthony Desnos (desnos at t0t0.fr)
All rights reserved.Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS-IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.DADCopyright (C) 2012 - 2016, Geoffroy Gueguen (geoffroy dot gueguen at gmail dot com)
All rights reserved.Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS-IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: android-asset-generator
android-asset-generatorDescriptionandroid-assset-generator is a command line program for generate ldpi, mdpi, hdpi, xhdpi, xxhdpi and xxxhdpi density images for your Android Studio Project.What's new on v1.0.6?Now you can use relative paths.Requerimentspython-resize-imageView packageInstallingpip install android-asset-generatorUsagePrepare a folder that contains only the images you want to convert to the different densities or may be a single image file.Run the following command.android-asset-generator  path   densityArgumentDescriptionValid ValuespathFull or relative path string of your asset folder or asset file (png or jpg). Set "this" if your console current workspace is the asset folder. If your path contains spaces, use quotation marks ( " ). Example: "C:\Users\MyUser\Pictures\Camera Roll\pp.jpg"C:\Users\MyUser\Desktop\img or C:\Users\MyUser\Desktop\img\image1.png or src/asset/image1.pngdensityThe source density. If your images are mdpi, set mdpi as argumentldpi, mdpi, hdpi, xhdpi, xxhdpi or xxxhdpiNote:Preferably do not change the order of the arguments.The generated images will be saved in different folders within the specified path following the Android Studio standard:
drawable-ldpi
drawable-mdpi
drawable-hdpi
drawable-xhdpi
drawable-xxhdpi
drawable-xxxhdpiThe source images will be moved to the corresponding folder without having suffered alterations.The last step is to import the generated folders to your Android Studio. projectExamplesandroid-asset-generator C:\Users\MyUser\Desktop\img xhdpiThe asset folder path is C:\Users\MyUser\Desktop\img and asset density is xhdpiandroid-asset-generator "C:\Users\MyUser\Pictures\Camera Roll\pp.jpg"  xhdpiThe file path contains spaces in between, so quotes are used to make it a single stringandroid-asset-generator thisThe asset folder path is the console current directory and asset density is hdpi by defaultandroid-asset-generator img/photo.pngThe asset folder path is a relative path starting at the current console working directory.CompatibilityOperating SystemTest ResultsWindows 10PassedMacOSTestingLinuxTestingYour test results are welcome!RepositoriesGitHubandroid-asset-generatorPyPIandroid-asset-generatorYou are welcome if you want to colaborate!LicenceThe project is licensed under the MIT License
Package: android-asset-resizer
The Android asset resizer can be used to generate drawable assets from a larger
source image, like an iOS@2xasset or anxhdpidrawable.The script will generate the expectedmdpi,hdpi,xhdpiandxxhdpiassets from the source image.If you like this library and it’s saved you some time, please consider
supporting further development with aGittip donation!RequirementspillowInstalling$ pip install android-asset-resizerIf you’d like to use the pillow imaging library instead of PIL you can install
the script with this command:$ pip install --no-deps android-asset-resizer && pip install pillowExamplesYou can easily generate Android assets from your@2xiOS assets:$ aaresize assets/icon@2x.pngRunning this command will generate the following assets:- res
  - drawable-mdpi
    - icon.png
  - drawable-hdpi
    - icon.png
  - drawable-xhdpi
    - icon.png
  - drawable-xxhdpi
    - icon.pngThese assets were created from the original@2xasset where the icon in
thedrawable-xhdpifolder is just a copy of the original.You can also resize an entire directory of images:$ aaresize assets/*@2x.pngAn Androidxhdpiasset is roughly equivalent to an@2xasset, so you
can easily resize those too:$ aaresize res/drawable-xhdpi/*.pngIf you have a largedrawable-xxhdpiasset you can use the--densityflag to generate the smaller assets:$ aaresize res/drawable-xxhdpi/*.png --density=xxhdpiYou can also easily add a prefix to your new assets:$ aaresize assets/*@2x.png --prefix=ic_Use the--ldpiflag to generate low density assets:$ aaresize res/drawable-xhdpi/*.png --ldpiUse the--excludeflag to specify a list of files that should not be
resized:$ aaresize res/drawable-xhdpi/*.png --exclude=ic_launcher.png,ic_status.pngYou can also import theAssetResizerclass and incorporate it into your
own scripts:from PIL import Image
from android_asset_resizer.resizer import AssetResizer

# Create our resizer
resizer = AssetResizer(out_dir, source_density='xhdpi',
    prefix='ic_', image_filter=Image.ANTIALIAS)

# Make our resource directories
resizer.mkres()

# Resize an image
resizer.resize(path)Bug reportsIf you encounter any issues, please open a new issue on the project’sGitHub page.LicenseCopyright 2013 Tristan Waddington

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: android-auto-play-opencv
android-auto-play-opencvOpenCV の画像認識を使って、Android を自動操作するライブラリです。Android を操作する時にAndroid Debug Bridge (adb)を使うので、マウスカーソルが奪われません。NoxPlayer を操作することも出来ます。Readmehttps://noitalog.tokyo/android-auto-play-opencv/Installationライブラリのインストールpip install android-auto-play-opencvこのライブラリを使うには、Android SDK Platform-Toolsに含まれるadb.exeが必要です。How to use# This Python file uses the following encoding: utf-8# pip install android-auto-play-opencvimportandroid_auto_play_opencvasamadbpath='..\\platform-tools\\'defmain():aapo=am.AapoManager(adbpath)whileTrue:# 画面キャプチャaapo.screencap()# 早送りボタンは常にタップifaapo.touchImg('./umamusume/hayaokuri.png'):# タップ出来たら待機aapo.sleep(1)# Google Playダイアログが出たら、キャンセルの位置をタップelifaapo.chkImg('./umamusume/google-play.png'):aapo.touchPos(135,630)aapo.sleep(1)if__name__=='__main__':main()完成品ウマ娘自動リセマラ周回Referencestartアプリを起動する。# FGOを起動する.aapo.start('com.aniplex.fategrandorder/jp.delightworks.Fgo.player.AndroidPlugin')endアプリを終了する。# FGOを終了する.aapo.end('com.aniplex.fategrandorder')sleep処理を待機させる。# 5秒待機.aapo.sleep(5)screencapAndroid の画面をキャプチャする。# 画面キャプチャaapo.screencap()chkImgscreencapで取得したスクリーンショットに、テンプレート画像があるか確認します。タップはしません。ifaapo.chkImg('./template/stage_clear.png'):# あった時の処理.passchkImg2screencapで取得したスクリーンショットに、テンプレート画像があるか確認します。タップはしません。見つけた座標も返してくれます。# 古龍の心臓 が見つかったら位置を戻す。result,x,y=aapo.chkImg2('./template/koryunosinzo.png')print('result='+str(result)+', x='+str(x)+', y='+str(y))ifresult:# 見つかった位置から指定ピクセルズラしてロングタップ(5秒)aapo.longTouchPos(x+50,y+50,5000)touchImgscreencapで取得したスクリーンショットに、テンプレート画像があればタップします。タップ結果を返してくれます。aapo.touchImg('./template/stage_clear.png')touchPos指定位置をタップします。# X=750、Y=400 の位置をタップする.aapo.touchPos(750,400)第3引数を指定すると、ロングタップします。# X=750、Y=400 の位置を5秒間タップする.aapo.longTouchPos(750,400,5000)swipeTouchPos指定位置をスワイプします。# X=750、Y=800 から、X=750、Y=400 まで、1秒かけてスワイプする.aapo.swipeTouchPos(750,800,750,400,1000)inputtext文字を入力します。# abc を入力する.aapo.inputtext('abc')inputkeyeventHOMEキーやバックキーを送ります。# ホームキーを押す.aapo.inputkeyevent(3)# バックキーを押す.aapo.inputkeyevent(4)inputkeyeventscreencapで取得したスクリーンショットを保存します。# キャプチャ画像を保存aapo.imgSave('screenshot.png')# 現在の日時でキャプチャ画像を保存aapo.imgSave('img/screenshot_'+datetime.datetime.now().strftime('%Y%m%d%H%M%S')+'.png')# ↑をする場合「import datetime」をファイルの先頭に書くこと。デバイス選択複数の端末で同時実行できます。importinquirer# pip install inquireraapo=am.AapoManager('C:\\Program Files\\Nox\\bin\\')devicesselect=[inquirer.List("device",message="デバイスを選択して下さい。",choices=aapo.adbl.devices)]selected=inquirer.prompt(devicesselect)aapo.adbl.setdevice(selected['device'])aapo.screencap()
Package: android-bp
android-bpA python module to parse Android.bp files (wrapper for android_bp rust module)Non-GoalsThis module is only intended to parse Android.bp files, not to generate or rewrite them.Usagefromandroid_bpimportBlueprint# bp is a rust object, but behave mostly like a read only python objectbp=Blueprint.from_file("Android.bp")# for debug, you can print any of internal objects# they will be printed as rust would in debug fmtprint(bp)# internal variables are accessible as a python dictprint(bp.variables)# modules are accessible as a python listforminbp.modules:ifm.__type__=="rust_binary":# module properties can be accessed directly as python attributesprint(m.name)# or iter them by typeforminbp.modules_by_type("rust_host_test"):# or via __dict__print(m.__dict__["name"])# for convenience, unknown properties return None (not an AttributeError)print(m.unknown_attribute)# prints None# map properties are accessible as python dictsprint(m.test_options['unit_test'])print()