Saravanan666/pypi-org huggingface dataset:
Package: geteventplayback
A pure Python module for recording and processing low-level Android input events (Mouse/Keyboard/Touchpad) - no dependenciespip install geteventplaybackTested against Windows 10 / Python 3.11 / AnacondaGeteventPlayBack is a powerful Python module that simplifies the capture and
processing of input events from Android devices, including not only touch events but also
mouse and keyboard events. It is designed to work entirely with native Python, making it
a versatile choice for Android input event analysis.IMPORTANT: ONLY WORKS ON ROOTED DEVICES/EMULATORShttps://www.youtube.com/watch?v=LyGX7rQ-fLY"""Args:adb_path (str): The path to the 'adb' tool.device (str): The device event file to record, e.g., "/dev/input/event3".device_serial (str): The serial number or address of the Android device.print_output (bool): Whether to print the 'getevent' output to the console.tmpfolder_device (str): The temporary folder on the device to store event data.tempfolder_hdd (str): The temporary folder on the local HDD to store event data.add_closing_command (bool): Whether to add closing commands to the event replay.clusterevents (int): The number of events to cluster together for replay, allowingyou to adjust playback speed.Methods:- start_recording(): Start recording input events, including mouse and keyboard events,and customize the playback speed.- _get_files_and_cmd(unpacked_data): Process the recorded data and generatecommands for event replay.- _format_binary_data(): Format binary data from 'getevent' output into events.Attributes:- alldata (list): The raw 'getevent' output data, stored as bytes.- FORMAT (str): The format string for parsing binary data.- chunk_size (int): The size of each event in bytes.- timestampnow (float): The current timestamp."""importsubprocessfromgeteventplaybackimportGeteventPlayBackpla=GeteventPlayBack(adb_path=r"C:\Android\android-sdk\platform-tools\adb.exe",device="/dev/input/event4",device_serial="127.0.0.1:5555",print_output=True,tmpfolder_device="/sdcard/event4/",tempfolder_hdd=rf"C:\sadxxxxxxxxxxxx",add_closing_command=True,clusterevents=16,)results=pla.start_recording()subprocess.run([pla.adb_path,"-s",pla.device_serial,"shell"],bufsize=0,input=results["adbcommand"],# Can be resused)
Package: get-eyedata
Get-eyedatathis library is an application that allows you to track objects in a video file and save the tracking data to pandas dataframeInstallationyou can use pip to install get-eyedata.pipinstallget-eyedataUsagePreparing Recorded Datayou need video file which is recorded by OBS with original settingshow details ->https://github.com/ikrfun/get_eyedata/wiki/usage-enget OBS ->https://obsproject.com/ja/downloadWhen creating a dataset of actual facial images and their corresponding gaze coordinatesTo use mekeing eye dataset, run the following command in your terminalfromget_eyedataimportvalo# valo_df is pandas dataframevalo_df=valo.make_dataset('{video-file-path}')# save as csvvalo_df.to_csv('out-csv-path')LicenseThis project is licensed under the MIT License. See theLICENSEfile for more information.
Package: getFamaFrenchFactors
getFamaFrenchFactorsThis programme gets data for fame french factors from the Kenneth French library and returns it as a pandas dataframe.InstallationRun the following to install:pipinstallgetFamaFrenchFactorsUsageFactors can be extracted in monthly ('m') and annual ('a') frequencies. The default is monthly.importgetFamaFrenchFactorsasgff# Get the Fama French 3 factor model (monthly data)df_ff3_monthly=gff.famaFrench3Factor(frequency='m')# Get the Fama French 3 factor model (annual data)df_ff3_annual=gff.famaFrench3Factor(frequency='a')Other options:Momentum factor: momentumFactor()Carhart 4 factor: carhart4Factor()Fama French 5 factor: famaFrench5Factor()
Package: get-file
get-fileDownload any file asynchronously with ease using this Python package available on PyPi.This Python package is designed to simplify the process of downloading files asynchronously.
With its easy-to-use interface, users can quickly and efficiently download any file from the internet without the need for complex coding.
Whether you’re downloading large ones, small ones, single or multiple files this package is built to handle it all.This package utilizes concept of Multi-Threading to perform downloads asynchronously, which means that the download process won’t block the main thread and can continue to run in the background while other tasks are being performed.
This feature makes it ideal for developers who need to download large volumes of files or who want to create applications that require efficient file downloading.In addition, this package is available on PyPi, which means that it can be easily installed using pip.
Once installed, you can import it into your Python code and start using it right away.
With its simple and straightforward API, downloading files asynchronously has never been easier.ContributionsActively soliciting contributors!
Have ideas for how get-file can be improved? Feel free to open an issue or a pull request!Installationpip installget-fileUsageDownload Single File :from file_downloader import get_fileget_file.download("https://example.com/file.mp3")Download Multiple Files :from file_downloader import get_fileget_file.download_files(["https://example.com/file1.mp3","https://example.com/file2.pdf"])RestrictionsIt won’t download youtube videosOnly support download links that have files in the prefixExample -Link should contain filenameFor example : www.example.com/file.pdf
Package: get-filename
get_filename我絕對不要再為了這個坑花了整整2小時 Orz......如題，只是一個獲取檔案名稱或副檔名的東東。From a filename(str) get extension or name.用法 how to useget_filename( filename=str, mode='filename', index=0):@param  {str} filename (不能為空)
@param  {str} mode ('filename' or 'extension') or ( 1 or 2)
@param  {int} index (當 mode = 'extension' 或 2 才會作用)
@return {str}ex1 :t = get_filename('explosion.hard.txt')
  t -> 'explosion.hard'ex2 :t = get_filename('/path/to/somefile.ext')
t = 'somefile'ex3 :t = get_filename('explosion.hard.txt','extension',-3)
t = get_filename('explosion.hard.txt',2,0)
t -> 'explosion'ex4 :t = get_filename('/path/to/somefile.txt','extension',-1)
t = get_filename('/path/to/somefile.txt',2,-1)
t -> 'txt'
Package: getfilenuitkapython
A function that locates files in python environments and compiled exe files (Nuitka)nuitkais certainly the best py2exe- compiler, but it is not always easy to include additional files.ÂThe first time I tried that, the compiled EXE wasn't able to find the included files, and it took me some time to make all the necessary code adjustments.Â  This is why I wrote a little function that locates files in the mostÂ likely locations (python env/nuikta exe).pip install getfilenuitkapythonThis module contains a function called get_filepath which returns the full path to a file, given its filename. It uses the os and sys modules to search for the file in multiple locations.Parameters----------filename:Astringrepresentingthenameofthefiletolocate.Returns----------Astringrepresentingthefullpathtothefile,ifitisfound.Ifthefileisnotfoundinanyofthelocations,thefunctionreturnsthefilenameitself.Description----------Theget_filepathfunctionsearchesforthefileinthefollowinglocations:1.Thedirectorycontainingthescriptthatwasinvokedfromthecommandline.2.Thedirectorycontainingthecurrentmodulefile(__file__).3.Theparentdirectoryofthedirectorycontainingthescriptthatwasinvokedfromthecommandline.4.Theparentdirectoryofthedirectorycontainingthecurrentmodulefile(__file__).5.Thedirectorycontainingthecallingfunction(sys._getframe(1)).6.Theparentdirectoryofthedirectorycontainingthecallingfunction.7.SearchinPATH8.SearchineveryfolderinbasedirsIfthefileisfoundinanyoftheselocations,thefunctionreturnsthefullpathtothefile.Ifthefileisnotfoundinanyoftheselocations,thefunctionreturnsthefilenameitself.fromgetfilenuitkapythonimportget_filepathget_filepath('pythonw.exe')Out[3]:'C:\\ProgramData\\anaconda3\\envs\\dfdir\\pythonw.exe'
Package: get-files-list
Get Files ListPython package that provides a utility function to recursively get files that match a pattern.InstallationInstall using pip:pipinstallget_files_listUsageExample of this package usage in a folder with the following structure:├──      LICENSE
 ├──      README.md
 ├──      deploy.sh
 └──      get_files_list/
 │  ├────      __init__.py
 │  └────      get_dir_content.py
 ├──      requirements.in
 ├──      requirements.txt
 └──      setup.pyThe following code:fromget_files_listimportget_dir_content# Print every fileprint("Print every file\n")forfileinget_dir_content("./"):print(file)# Print everyPython fileprint("\n\nPrint every Python file\n")forfileinget_dir_content("./",pattern="*.py"):print(file)# Print every Python file without the prepended folder nameprint("\n\nPrint every Python file without the prepended folder name\n")forfileinget_dir_content("./",prepend_folder_name=False,pattern="*.py"):print(file)# Print every file without recursionprint("\n\nPrint every file without recursion\n")forfileinget_dir_content("./",recursive=False):print(file)# Print every file that is not a Python fileprint("\n\nPrint every file that is not a Python file\n")forfileinget_dir_content("./",exclude_pattern="*.py"):print(file)Would output:Print every file

./LICENSE
./requirements.txt
./get_files_list/get_dir_content.py
./get_files_list/__init__.py
./README.md
./setup.py
./deploy.sh
./requirements.in


Print every python file

./get_files_list/get_dir_content.py
./get_files_list/__init__.py
./setup.py


Print every python file without the prepended folder name

get_files_list/get_dir_content.py
get_files_list/__init__.py
setup.py


Print every file without recursion

./LICENSE
./requirements.txt
./README.md
./setup.py
./deploy.sh
./requirements.in


Print every file that is not a Python file

./LICENSE
./requirements.txt
./README.md
./deploy.sh
./requirements.inGeneratorget_dir_contentis a Pythongeneratorso the following code would not work:fromget_files_listimportget_dir_contentnum_py_files=len(get_dir_content("./",pattern="*.py"))# TypeError: object of type 'generator' has no len()# You have to explicitely generate a listnum_py_files=len(list(get_dir_content("./",pattern="*.py")))# This worksThis is also valid if you want to order, shuffle or slice the list of files.InspirationThis code is inspired by this StackOverflowQuestion/Answer.
Package: get-firefox-urls
Copyright 2019 Luís Gomes <luismsgomes@gmail.com>, all rights reserved.This program/library is now based on thefirefox_profilemodule (https://github.com/luismsgomes/firefox-profile).Installationpip3installget-firefox-urlsUsage from PythonPlease take look atfirefox_profilemodule, which offers a more interesting API:https://github.com/luismsgomes/firefox-profilefromget_firefox_urlsimportget_firefox_urlsforw,t,urlinget_firefox_urls():print("window%dtab%d:%s"%(w,t,url))Usage from command lineget-firefox-urlsWill output something like:window 0 tab 0: https://github.com/luismsgomes/get-firefox-urls
window 0 tab 1: https://pypi.org/project/get-firefox-urls/LicenseThis software is licensed under the MIT license.https://opensource.org/licenses/MIT
Package: getfoldersize
getfoldersizePython3 module to easily get a folder size.InstallationInstall with pippip3 install -U getfoldersizeUsageIn [1]: import getfoldersize

In [2]: from pathlib import Path

In [3]: getfoldersize.get_folder_size(
    Path("/home/user/Documents")
    )
Out[3]: 954460474

In [4]: getfoldersize.get_folders_size(
    Path("/home/user/Documents")
    )
Out[4]: 466944

In [5]: getfoldersize.get_files_size(
    Path("/home/user/Documents")
    )
Out[5]: 953993530
Package: getfr
getfrFossology combined Notice report generater for all pkgs in a specified folderDescriptionThis is intended for generating the reports(readmeoss,spdx2,spdx2tv,dep5,unifiedreport) using folder_id in fossology.Getting StartedDependencieseasy_fossyInstallingpip install dist/getfr-v.v.v.tar.gzExecuting programHow to run the programpip install getfr

COMMAND FORMAT:
getfr [-h] [--sbom | --no-sbom] folder_id clearing_status userid since_yyyy_mm_dd report_format

example command:
getfr 107 closed all 2024-02-01 readmeoss --sbomconfigure your server in config.ini(config.ini file with below contents is essential & effortless kickstart)[prod]
url = http://fossology.com:port/repo/api/v1/
uname =
pwd =
access = write
bearer_token = Bearer OHNSUFaI6OtoFNz
token_valdity_days = 365
token_expire = 2022-10-29
reports_location = reports/
group_name = fossyHelp>getfr -h
usage: getfr [-h] [--sbom | --no-sbom] folder_id clearing_status userid since_yyyy_mm_dd report_format

positional arguments:
  folder_id          get the folder id from the fossology. organize > folders > Edit properties > select the folder to edit
                     >check the folder id form url
  clearing_status    closed , open, inprogress, rejected
  userid             all, or give single specific user id
  since_yyyy_mm_dd   files uploaded date from 2024-02-01s
  report_format      readmeoss,spdx2,spdx2tv,dep5,unifiedreport

options:
  -h, --help         show this help message and exit
  --sbom, --no-sbom  create sbomAuthorsDinesh RaviVersion History0.1.0Initial ReleaseLicenseThis project is licensed under the MIT License - see theMITfile for detailsAcknowledgmentseasy_fossy
Package: get-free-port
Get free dynamic / registered portsTested against Windows 10 / Python 3.10 / Anacondapip install get-free-portfromhttps://www.techtarget.com/searchnetworking/definition/dynamic-port-numbersThe registries for these protocols are divided into three categories,
based on the available range of numbers (0 to 65535):System ports, also known as well-known ports, include ports 0 to 1023 and
support commonly used services.
User ports, also known as registered ports, include ports 1024 to 49151 and
are assigned to specific services, based on service applications submitted to IANA.
Dynamic ports, also known as private or ephemeral ports, include
ports 49152 to 65535 and are never assigned.fromget_free_portimportget_dynamic_ports,get_registered_portsprint(get_dynamic_ports(3))print(get_registered_ports(3))[49152,49153,49154][1025,1026,1027]
Package: getfrompexels
GetFromPexelsGetFromPexels is an elegant Pexels API wrapper that is available for everyone to use with the Python programming language.ExamplesFinding images# Finding 3 images of catsfromgetfrompexelsimportPexelsSessionsession=PexelsSession(API_KEY)query=session.search_for_photos("cat",per_page=3)forphotoinquery.contents:print(photo.pexels_url)Finding videos# Searching for dogs barkingfromgetfrompexelsimportPexelsSessionsession=PexelsSession(API_KEY)# Turning to page 2query=session.search_for_videos("dog barking",page=2,per_page=3)forvideoinquery.contents:print(video.pexels_url)Saving to files# Downloading the first image that pops up when you search "bird"fromgetfrompexelsimportPexelsSessionsession=PexelsSession(API_KEY)# Searching for the first result for "bird"results=session.search_for_photos("bird",per_page=1).contentsphoto=results[0]# Downloading the photophoto.download(PATH,"large2x")# Several sizes acceptedDocumentationAll classes and functions contain docstrings using the reST format as code documentation.Additional InformationThe library requires for therequestsmodule to be installed.If it isn't, runningpip install requestsin the terminal should install the library.The earliest Python version that can use this library is Python 3.11.To request an API key, you must make a Pexels account and get one from the official Pexels website.The official documentation for the Pexels APi ishttps://www.pexels.com/api/documentation/, which contains information about endpoints
and their results. GetFromPexels' main purpose is to provide anyone access to all the endpoints and provide an easy wrapper.
Package: get-fshare
A Fshare API tool built with PythonImportantFshare APIs now serve only VIPs accounts! What a dick move. I hope they can public their API because their website is BAD, I mean REALLY BAD!Application for vip accounts onlyGetting startedFirst, installget_fsharewithpip:$pipinstallget_fshareThen you can use normaly.Example codefromget_fshareimportFSAPIURL='https://www.fshare.vn/folder/THFVWDY4YT'bot=FSAPI(email="Your email",password="Your password")bot.login()sillicon_valley_ss1=bot.get_folder_urls(URL)forepisodeinsillicon_valley_ss1:print(episode['name'],bot.download("https://www.fshare.vn/file/{}".format(episode['linkcode'])))ResultSilicon.Valley.S01.720p.HDTV.E002-PhimVIPvn.net.mp4 http://download003.fshare.vn/dl/DDw36kqC+XtnxDDabH3A9WxhgvC5dnROeIhBefBDTSHwtO-OGzVKi3JVTEHeR4f1YO+1QVBogiKQiHj5/Silicon.Valley.S01.720p.HDTV.E002-PhimVIPvn.net.mp4
Silicon.Valley.S01.720p.HDTV.E001-PhimVIPvn.net.mp4 http://download008.fshare.vn/dl/H709d9NNl-p5kexaSvch+R9NrTzO16qBg2MdecmkU6fp797Y0gUNH6EinO6d0sRd4l4LRC57v6LTefFo/Silicon.Valley.S01.720p.HDTV.E001-PhimVIPvn.net.mp4
Silicon.Valley.S01.720p.HDTV.E003-PhimVIPvn.net.mp4 http://download015.fshare.vn/dl/-PzHlZBIkJBzRY6SpkeoYuiAKOiG004BGeyx35rYSWdsfgX+00sB32oBNZIIpNivmUjR7iYQFA8dPE3p/Silicon.Valley.S01.720p.HDTV.E003-PhimVIPvn.net.mp4
Silicon.Valley.S01.720p.HDTV.E004-PhimVIPvn.net.mp4 http://download019.fshare.vn/dl/4jIObmhjP76LcLvKNaKDVB43F2Y-sSrsirX5fzYPqXPJqi+p180Cv7mcnOAYO00djvUfKJi0tqgys4ar/Silicon.Valley.S01.720p.HDTV.E004-PhimVIPvn.net.mp4
Silicon.Valley.S01.720p.HDTV.E005-PhimVIPvn.net.mp4 http://download016.fshare.vn/dl/c4lknf1YF3VmfZ5Uf6GL6RFDWH-OE+87a6eSCb4S39SKDIaI8ZjVEazwHctkX8I+jBIthKbF69GPpEb-/Silicon.Valley.S01.720p.HDTV.E005-PhimVIPvn.net.mp4
Silicon.Valley.S01.720p.HDTV.E006-PhimVIPvn.net.mp4 http://download014.fshare.vn/dl/W7OsskpPLzZQJniLGOGublqpW7LqX0yRRW0pShFAmqhoXYMU-Qm9xIDMAJo9XNNx00yq+lipJH+vMLMW/Silicon.Valley.S01.720p.HDTV.E006-PhimVIPvn.net.mp4
Silicon.Valley.S01.720p.HDTV.E007-PhimVIPvn.net.mp4 http://download001.fshare.vn/dl/QGxNHPMoPVghhSpiamBqNhrtLnqsjjz3xO1DVMEnkyR4Jd2aBrcuvnhbpSd7iBgOPeZBhCHvEvrcX0yA/Silicon.Valley.S01.720p.HDTV.E007-PhimVIPvn.net.mp4
Silicon.Valley.S01.720p.HDTV.E008-PhimVIPvn.net.mp4 http://download014.fshare.vn/dl/+kYq54+P2Bo6rwx6JmSMDKSdbogsya8dlRPiwxIs6RK2mQ90VCgOv2fgsLyXkA5fBu9XALh6tmmZAmOF/Silicon.Valley.S01.720p.HDTV.E008-PhimVIPvn.net.mp4RequirementsPython 3.5+requestslxmlCurrent functionsGet Fshare download linkExtract links from Fshare folderGet file name from linkGet file size from linkUpload file to your Fshare accountTestJust runpytestQuestion?Please create issues so I can improve or fix my lib.Enjoy and have fun :)Fork what you can, pushnothingsomething back!
Package: getfx
GetFXGetFX is a tool to download average FX rates from National Bank of Poland
(NBP). All NBP exchange rates are to Polish Złoty (PLN).CheckResultBuildCoverageInstallationIf you have already installed Python, then simply usepip install getfxto install the package.Prerequisites to install GetFX:pipsetuptoolsTypically above applications are installed by default when you install python
frompython.org.Alternatively you can install GetFX from this repository source code. After you
clone the repository execute from shell:make build.More details on installation can be found indocumentationUsageYou can use the package from command line (example using Linux or MacOS):getfx- will return today FX from default currency (CHF)getfx USD- will return today FX for USDgetfx USD -d 2020-10-03- will return USD FX on 3rd October 2020getfx -h- display helpEventually you can run package usingpython3command:python3 -m getfx- same as first example abovepython3 -m getfx USD- same as second example aboveDocumentationIf you would like to:deploy and develop this package please checkDEVELOPMENT.mdcontribute to the project please checkCONTRIBUTING.mdread general purpose documentation please check:documentation
Package: getgauge-cli
PIP Installer for getgauge-cli toolThissetup.pyfile is used for installed getgauge-cli tool.
the version number is manually bumped for now.Python package can be installed through multiple waysusing setup.pyNavigate to the current directorygauge\build\pip\Runpython build.py --installon command prompt (it will install the latest released version)To install a specific version setGAUGE_VERSIONenvironment variable.using pippre-requisite: pip should be installed and available on machinerun the commandpip install getgauge-cliCheck to ensure getgauge-cli is installedOnce the package has been setup. please exit the current terminal and relaunch terminal againrun the commandgauge, you should be able to see similar outputUsage:
  gauge <command> [flags] [args]

Examples:
  gauge run specs/
  gauge run --parallel specs/

Commands:
  config      Change global configurations
  daemon      Run as a daemon
  docs        Generate documentation using specified plugin
  format      Formats the specified spec files
  help        Help about any command
  init        Initialize project structure in the current directory
  install     Download and install plugin(s)
  list        List specifications, scenarios or tags for a gauge project
  man         Generate man pages
  run         Run specs
  uninstall   Uninstalls a plugin
  update      Updates a plugin
  validate    Check for validation and parse errors
  version     Print Gauge and plugin versions

Flags:
  -d, --dir string         Set the working directory for the current command, accepts a path relative to current directory (default ".")
  -h, --help               Help for gauge
  -l, --log-level string   Set level of logging to debug, info, warning, error or critical (default "info")
  -m, --machine-readable   Prints output in JSON format
  -v, --version            Print Gauge and plugin versions

Use "gauge [command] --help" for more information about a command.
Complete manual is available at https://manpage.gauge.org/.Using setup.pyInstall required dep by runningpython/python3 -m pip install requirements.txt.Check through and obtain a valid tag/build number fromreleasesRun the commandpython build.py --install(set GAUGE_VERSION env to install specific version)This would install the version as specified along with latest release of Gauge-CLI VersionRun the commandpython build.py --distto generate the PyPi distrubutable (set GAUGE_VERSION env to install specific version)Uninstalling Gauge CLIGauge CLI uninstall should be done manually for now.
Run the following command on your prompt$ pip uninstall gauge-cli
Package: get-gcp-secret
get_gcp_secretGet value from Google Cloud Secret Manager.Installation;pip install get_gcp_secret google-cloud-secret-managerpip install get_metadata  # optionalOR Writeget_gcp_secretin requirements.txt.# requirements.txt sample
get_gcp_secret
google-cloud-secret-manager  # required
get_metadata  # optionalHow to use.importget_gcp_secret# GCP Project ID will be automatically detected("get_metadata" required).# OR set GCP project ID manually.get_gcp_secret.set_project_id("Project ID string")# get secret textsecret_name="secret name string"secret_ver=2# or "2"secret_text=get_gcp_secret.get_secret_text(secret_name,secret_ver)# when secret_ver is omitted, 'latest' will be used.# secret_text = get_gcp_secret.get_secret_text(secret_name)# get secret text(secret name/version from env)env_secret_name="secret name env name"env_secret_ver="secret ver env name"secret_text=get_gcp_secret.get_secret_text_from_env(env_secret_name,env_secret_ver)# when secret_ver is omitted, 'latest' will be used.# secret_text = get_gcp_secret.get_secret_text_from_env(env_secret_name)