Saravanan666/pypi-org huggingface dataset:
Package: desktop-env
DesktopEnv: An Environment towards Human-like Computer Task MasterySLOGANWebsite•PaperUpdates2024-03-01:InstallInstall VMWare and configurevmruncommand:
Please refer toguidanceInstall the environment package, download the examples and the virtual machine image.pipinstalldesktop_env
mkdir-p~/.desktop_env
wgetxxxx
wgetxxxxQuick StartRun the following minimal example to interact with the environment:importjsonfromdesktop_env.envs.desktop_envimportDesktopEnvwithopen("evaluation_examples/examples/gimp/f723c744-e62c-4ae6-98d1-750d3cd7d79d.json","r",encoding="utf-8")asf:example=json.load(f)env=DesktopEnv(path_to_vm=r"path_to_vm",action_space="computer_13",task_config=example)observation=env.reset()observation,reward,done,info=env.step({"action_type":"CLICK","parameters":{"button":"right","num_clicks":1}})Annotation Tool UsageWe provide an annotation tool to help you annotate the examples.Agent UsageWe provide a simple agent to interact with the environment. You can use it as a starting point to build your own agent.Road map of infra (Proposed)Explore VMWare, and whether it can be connected and control through mouse packageExplore Windows and MacOS, whether it can be installedMacOS is closed source and cannot be legally installedWindows is available legally and can be installedBuild gym-like python interface for controlling the VMRecording of actions (mouse movement, click, keyboard) for humans to annotate, and we can replay it and compress itBuild a simple task, e.g. open a browser, open a website, click on a button, and close the browserSet up a pipeline and build agents implementation (zero-shot) for the taskStart to design on which tasks inside the DesktopENv to focus on, start to wrap up the environment to be publicStart to annotate the examples fortrainingand testingError handling during file passing and file opening, etc.Add accessibility tree from the OS into the observation spaceAdd pre-process and post-process action support for benchmarking setup and evaluationMultiprocess support, this can enable the reinforcement learning to be more efficientExperiment logging and visualization systemAdd more tasks, maybe scale to 300 for v1.0.0, and create a dynamic leaderboardRoad map of benchmark, tools and resources (Proposed)Improve the annotation tool base on DuckTrack, make it more robust which align on accessibility treeAnnotate the steps of doing the taskBuild a website for the projectCrawl all resources we explored from the internet, and make it easy to accessSet up ways for community to contribute new examplesCitationIf you find this environment useful, please consider citing our work:@article{DesktopEnv,
  title={},
  author={},
  journal={arXiv preprint arXiv:xxxx.xxxx},
  year={2024}
}
Package: desktop-file
Desktop FileAboutdesktop-file is a tool to create desktop shortcuts for windows and linux.InstallationTo install desktop-file you needpython3 or later withpipinstalled.Then you can install it by typingpip install desktop_fileor by cloning or downloading this repository on github and executingpython setup.py installUsagePythonYou can use it in your python script like this:>>> import desktop_file
>>> # get desktop and start menu folders
>>> desktop_file.getDesktopPath()
/home/PyRectangle/Desktop
>>> desktop_file.getMenuPath()
/home/PyRectangle/.local/share/applications
>>> # create a xterm shortcut
>>> shortcut = desktop_file.Shortcut("/home/PyRectangle/Desktop", "xterm", "/usr/bin/xterm")
>>> # Setting the title causes the file to have a different name instead of the file name (only affects linux)
>>> shortcut.setTitle("XTerm")
>>> shortcut.setWorkingDirectory("/home/PyRectangle")
>>> shortcut.setComment("A desktop file to start xterm")
>>> # Only files that contain icons work on Windows
>>> shortcut.setIcon("/usr/share/pixmaps/mini.xterm_48x48.xpm")
>>> # Categories don't have any effects on Windows
>>> shortcut.setCategories("System;")
>>> shortcut.save()You will find a working shortcut named "XTerm" in the folder "/home/PyRectangle/Desktop"CommandYou can usepython -m desktop_fileordesktop-fileto create shortcuts like this:desktop-file --exec /usr/bin/xterm --workpath /home/PyRectangle --title XTerm --comment "A desktop file to start xterm" --icon /usr/share/pixmaps/mini.xterm_48x48.xpm --categories "System;" /home/PyRectangle/Desktop/xterm.desktopYou will need to type ".lnk" instead of ".desktop" if you are on Windows.
Package: desktop-helper
desktop-helperOverallA simple desktop helper for various kinds of tedious jobs on your desktop. Previously, supported modules includes:Process ManagerSupport platform:WindowsUsageInstallpython3 -m pip install desktop_helperorgit clone https://github.com/BARaphael/desktop-helper.git
cd desktop-helper
python3 -m pip install .Quick Startpython3 -m desktop_helper.helperProcess ManagerYou may write plenty of python scripts for different kinds of work. Process manager allows centralized management of your scripts in a single location.What can you do?You can start, stop, restart your scripts.When your scripts are running, you can monitor their status via a table. Scripts' health (whether an error occurs), start time, running time, etc. are shown.You can view output of your scripts by double-clicking corresponding row of the process manager table.You can save your process manager table, and load it after next launch. You can also set them to be autostarted.Q & AQ: Why can't I see my scripts' output in real-time?A: This maybe because you didn't flush your stdout. Set flush = True when using Python's built-in print function. For example,print("something", flush=True)Q: Why my script meets an error, but process manager still says that my script doesn't have one?A: Currently, only error goes into stderr can be recognized. Notice that errors in try-except block don't go into stderr. So, if you don't raise it again, no error will be noticed.
Package: desktop-notify
DESKTOP-NOTIFYUtil for sending desktop notifications over dbus. Supports replace_id, hints and actions(mainloop required).Package usageBasic notify:notify=desktop_notify.aio.Notify('summary','body')awaitnotify.show()notify=desktop_notify.glib.Notify('summary','body')notify.set_on_show(callback)# optionalnotify.show()# ornotify.show_async()Usage with server:server=desktop_notify.aio.Server('app_name')notify=server.Notify('summary')awaitnotify.show()Configure notify.You can setnotify options by default property setternotify.body = 'body'or using fluent setters:notify.set_id(0)\.set_icon('icon')\.set_timeout(10000)# msExtra optionsHintsFor workings with hints use this methods:notify.set_hint(key,value)notify.get_hint(key)notify.del_hint(key)ActionsFor using actions and event you need to specify notify server mainloop.You can add or delete action:notify.add_action(desktop_notify.Action('label',callback))notify.del_action(desktop_notify.Action('label',callback))Also supportedon_showandon_closeevent:notify.set_on_show(callback(notify))notify.set_on_close(callback(notify,close_reason))Console usageusage:desktop-notify[--help][--iconICON][--idREPLACE_ID][--timeoutTIMEOUT][--hintskey:value[key:value...]]Summary[Body]Senddesktopnotification.Returnscreatednotification'sid.

positionalarguments:SummaryThesummarytextbrieflydescribingthenotification.BodyTheoptionaldetailedbodytext.Canbeempty.

optionalarguments:--helpshowthishelpmessageandexit--iconICON,-iICONTheoptionalprogramiconofthecallingapplication.Shouldbeeitherafilepathoranameinafreedesktop.org-complianticontheme.--idREPLACE_IDAnoptionalIDofanexistingnotificationthatthisnotificationisintendedtoreplace.--timeoutTIMEOUT,-tTIMEOUTThetimeouttimeinmillisecondssincethedisplayofthenotificationatwhichthenotificationshouldautomaticallyclose.--hintskey:signature:value[key:signature:value...],-hkey:signature:value[key:signature:value...]use"--"toseparatehintslistfrompositionalargs
Package: desktopography
Desktopography command lineseehttp://www.desktopography.netUsage$pipinstalldesktopography$desktopography-hTODOAdd more verbose documentation and docstringsAdd testsSetup CIAuto-detect screen sizeFix XDG supportAdd changelogDevelopment$gitclonehttps://gitlab.com/fbochu/desktopography.git$cddesktopography$poetryinstallTests$poetryrunprospectorsrc/$poetryrunblacksrc/$poetryrunisortsrc/$poetryrunmypysrc/Publishing$poetryversion<patch|minor|major>$poetrybuild$poetrypublish
Package: desktop-parser
Desktop ParserThis is a parser for the.desktopfile format. It's used inDesktop Creator.InstallationFrom pypipipinstalldesktop-parserFrom sourcegitclonehttps://github.com/DesktopCreatorTeam/desktop-parsercddesktop-parser
poetryinstallFrom the AURyay-Spython-desktop-parserUsagefromdesktop_parserimportDesktopFile# Parse a filedesktop_file=DesktopFile.from_file("path/to/file.desktop")desktop_file.data["Name"]="New Name"desktop_file.data["Exec"]="new-exec"# Save the filedesktop_file.save("path/to/file.desktop")DocumentationThe documentation is availablehere.LicenseThis project is licensed under the GNU GPLv3 license - see theLICENSE.mdfile for details.AcknowledgmentsDesktop Entry SpecificationContributingPlease readCONTRIBUTING.mdfor details on our code of conduct, and the process for submitting pull requests to us.Authors and ContributorsDesktop Creator Team0xMRTT
Package: desktop-security-assistant
Desktop security assistantAn easy to use tool for desktop users to improve the security of their system.It scans your Linux desktop or laptop and provide a set of suggestions.How is it different from security scanners like Tiger?Focused on desktop users rather than servers administratorsProvides suggestions on every aspect of security: software and hardware configuration and usageHints on risk level and work required to mitigate itDevelopment statusIn development. Testing and contributions are welcome!ScreenshotsRoadmapImplement more checksPackage for Debian
Package: desktop-shop
Desktop ShopThis is a mock shop application, running completely offline on a desktop. The graphical interface connects with a generated, local database of customers, products and transactions (Python / SQLite3). As the application runs completely offline, it does away with any networking or server complexity and showcases a bare implementation of an application interfacing with a production database.DisclaimerAny personal information shown in the gui or stored in the database is not related to any natural people. All information was generated automatically. Any names or other user data which coincide with real individuals are pure coincidence.Getting startedRun the shop application by installing the package using pip, then calling it:python -m pip install desktop_shop
python -m desktop_shopNote that the first time the package is called, it automatically generates a fresh database filled with random data. This make take a few seconds.ContributionsTo contribute to this repository, please read thecontribution guidelines.PythonWritten in Python 3.8.3.LicenseThis repository is open-source software available under theMIT License.ContactPlease raise an issue for code changes. To reach out, please send an email torichard@baltrusch.net.
Package: desktopspy
desktopspyThis library contains utility functions for recording desktop activity on windows and linuxI created this for my productivity toolActivity MonitorFeaturesCross platform [windows, linux(ubuntu, X window system)]FunctionsGet foreground window name, process, pidfromdesktopspy.trackersimportgetForegroundWindow>>>getForegroundWindow()('New Tab`, 2500)>>>importpsutil>>>psutil.Process(2500).name()'chrome.exe'isUserActivefromdesktopspy.trackersimportisUserActive>>>isUserActive()TrueInstallationThis library is now available on the python package index.Visit thepypi page.pipinstalldesktopspyor with python-poetrypoetryadddesktopspyPlease note that this software is in very early stage of development.
Package: desktoptools
DesktopTools桌面端小工具进度和计划进度和计划可在查看:此处同时计划中包含了需求原型, 以及最一开始的代码实现原型, 有兴趣可以查看😄功能介绍工作时长统计工作时长按键记录疲惫提醒-强制锁屏😄粘贴板操作时间转换表格数据格式化dict json 格式化TODO无限粘贴板自定义kv存储工作时长统计原理检测鼠标以及键盘移动/输入,判断正在工作中.
macOS因隐私权限问题,需要额外设置,具体详参此处实现编程语言Python(不会卡的太死lol)所用库/包PyQt5: 实现简单界面(不想用其它包,卡的比较死^_^.....弃用,因为其授权协议问题,虽然我的是MIT不要紧,但是用了它我的协议就被升级...虽然PySide6也会升级本项目授权,但比PyQt5要好.)PySide6: 实现简单界面(不想用其它包,卡的不死^_^, 有MIT的实现方式欢迎改造)pynput: 监控鼠标键盘sqlalchemy: 数据库ORM,手拼字符累了,试试新东西yapf: 代码格式化使用PyPi# 源码gitclonegit@github.com:IanVzs/Halahayawa.gitDesktopToolscdDesktopTools/
makebuild
DesktopTools# pypipipinstallDesktopTools[ui]# 可选 -i https://pypi.tuna.tsinghua.edu.cn/simpleDesktopTools源码gitclonegit@github.com:IanVzs/Halahayawa.gitDesktopToolscdDesktopTools/
mkdirenv
python3-mvenv./envsource~/env/bin/activate
pipinstall-rrequirements.txt-ihttps://pypi.tuna.tsinghua.edu.cn/simple
makerun# or python test.py可根据实际情况进行适当调整-i https://pypi.tuna.tsinghua.edu.cn/simple是使用国内pip清华源, 如果有timeout的情况可自行搜索其他源来使用,或者不使用国内源pip install -r requirements.txt可执行程序下载地址在releases的Assets中, 目前只上传了windowsx64版本。windows打包--icon经测必须使用绝对路径.pyinstaller--specpath=executable_files--distpath=executable_files--hidden-import=pynput.keyboard._xorg--hidden-import=pynput.mouse._xorg--hidden-import=sqlalchemy.sql.default_comparator--hidden-import=sqlalchemy.ext.baked--icon="C:\\Users\\{USERNAME}\\Desktop\\Halahayawa\\DesktopTools\\harry_potter.ico"-w-D--clean.\test.py# cp harry_potter.ico executable_files/halahayawa 复制harry_potter.ico到程序目录linux打包pyinstaller --specpath=executable_files --distpath=executable_files --hidden-import=pynput.keyboard._xorg --hidden-import=pynput.mouse._xorg --hidden-import=sqlalchemy.sql.default_comparator -w -D --clean test.pyPoetry介绍pip 管理
安装方式:pip install poetry添加依赖是的，Poetry提供了多种方式来自动添加依赖库。其中一种方式是使用命令poetry add，该命令允许您在不编辑pyproject.toml文件的情况下添加新的依赖项。例如，要添加requests包，版本为^2.25.1，可以运行以下命令：poetry add requests "^2.25.1"。这将会自动更新pyproject.toml文件并安装所需的依赖项。另外，如果您已经安装了一个包，并且想要将其添加到项目中作为依赖项，可以使用poetry add命令并指定包的名称或路径。例如，要将已经安装的numpy包添加到项目中，可以运行以下命令：poetry add numpy --dev。这将在pyproject.toml文件中添加numpy作为开发依赖项，并更新虚拟环境以包含此包。总之，Poetry提供了多种自动添加依赖项的方式，使得管理依赖项变得更加方便和高效。手动添加依赖要增加依赖库，可以按照以下步骤在pyproject.toml文件中进行：打开pyproject.toml文件。找到[tool.poetry.dependencies]部分，这是声明项目所需依赖的位置。在该部分下方添加一个新的依赖项，格式为包名 = 版本号。例如，如果要添加requests包，版本为^2.25.1，则可以将以下行添加到文件中：[tool.poetry.dependencies]
requests = "^2.25.1"保存文件并关闭。需要注意的是，当您添加新的依赖项时，Poetry会自动更新项目的虚拟环境以包含这些依赖项。因此，在添加新依赖后，请运行poetry install以更新项目的虚拟环境。
Package: desktop-wrapper
Desktop Wrapper ToolBuild Python + React desktop applications in secondsDependencies:PywebviewFlaskReactInstallation$ pip install desktop-wrapperCreate a new app# With the cli tool$dw-create-appyour_app_name# With the python modulefromdesktop_wrapperimportcreate_new_app

create_new_app("your_app_name")UseBaseAppand add the assets and templates foldersfromdesktop_wrapperimportBaseAppapp=BaseApp('File Recovery',__name__,static_folder='./your_app_name/assets',template_folder='./your_app_name/templates')Add your custom functions with the@app.binddecorator@app.bind()defcustom_function(name):# Do some stuffreturn"Finish"Start the app and you are ready to goapp.start(gui=True,debug=True,port='5000')You can also check athttp://localhost:5000Full Codefromdesktop_wrapperimportBaseAppapp=BaseApp('My App',__name__,static_folder='./your_app_name/assets',template_folder='./your_app_name/templates')@app.bind()defcustom_function(name):print(name)return"Finish"if__name__='__main__':app.start(gui=True,debug=True,port='5000')AutoGenerated FilesEach custom function will be translated as javascript interface modules underyour_app_name/assets/js/generated.those will follow the pattern/*Autogenerated File, any change will be overwriten at reloadTODO:Add a way to block modifications when Debugging*/asyncfunctioncustomFunctionInterface(value){try{console.log(pywebview);letres=awaitpywebview.api.custom_function(value);returnres;}catch(err){letres=awaitfetch('/api/v1/customFunction',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({values:[value]})});if(res.status==200){return(awaitres.json()).response;}}}export{customFunctionInterface}This allows the interface to:First, try to fetch the pywebview objectThen if the pywebview is not available it can perform a request to the Flask http serverFunctions List (Javascript)your_app_name/assets/js/functions.jsContains the organized map of custom functions accesible for the React Components.Note: This file is autogenerated please do not modify/*Auto Generated FileDo not modify this file, it could break the appList of Available custom functions imported from the Autogenerated interfaces*/import{customFunctionInterface}from'./generated/customFunction.js';constcustomFunction=(value)=>{returncustomFunctionInterface(value)};constFunctionsMap={customFunction:customFunction}export{customFunction,FunctionsMap}You can then use this map as following in theeditable Filesyour_app_name/assets/js/App.jsimport{FunctionsMap}from'./functions.js';classAppextendsReact.Component{...render(){...return(<div>...<buttononClick={()=>FunctionsMap.customFunction('value')}></button>...</div>)}}...
Package: deskviewer
DeskViewerA tool that allows remote computer control.
Open source alternative of Teamviewer and Anydesk.InstallingInstall and update usingpip3:$ pip3 install deskviewerPython 3.3 and newer.Basic UsagePublish the computer and control it remotely.$deskviewer.publishServerStarting0.0.0.0:8765$deskviewer.connect-H192.168.x.xConnectingServer192.168.x.x:8765or$python-mdeskviewer.serverServerStarting0.0.0.0:8765$python-mdeskviewer.client-H192.168.x.xConnectingServer192.168.x.x:8765Advanced UsageSupport Basic AuthenticationQuality options low | medium | highdeskviewer.publish  args (serve):-u –username-p –password-b –bind–port-h –helpdeskviewer.connect args (client):-u –username-p –password-H –host-q –quality ( Options: low | medium | high | default: medium)–port-h –help$deskviewer.publish-uuser-ppass-b0.0.0.0--port8765ServerStarting0.0.0.0:8765$deskviewer.connect-uuser-ppass-H192.168.x.x--port8765--qualityhighConnectingServer192.168.x.x:8765SupportPython 3.3 and aboveSupports all operating systemsLinksLicense:MIT LicenseCode:https://github.com/dinceraslancom/deskviewer
Package: deslackify
deslackifyA tool to remove your own slack messages.InstallationpipinstalldeslackifyObtaining Slack Legacy TokenGenerate a token via:https://api.slack.com/custom-integrations/legacy-tokensRunningdeslackify--tokenTOKENUSERNAMEBy defaultdeslackifywill remove USERNAME's messages that are more than a
year old. You may also manually specify abeforedate via:deslackify--tokenTOKEN--beforeYYYY-MM-DDUSERNAME
Package: desman
desmanDesman is console HTTP API requests tool. Desman uses .yml files to save request information. You can use enviroment files wich are also .yml files, to substitute variables to request.InstallationPippipinstalldesmanDocker on Unix-likeDesman can be installed as .sh script running docker image:sudo curl -L --fail https://raw.githubusercontent.com/kirillsulim/desman/master/scripts/run/run.sh -o /usr/local/bin/desman
sudo chmod +x /usr/local/bin/desmanDefault tag in script is latest. If you want to fix specific version, change corresponding variable in script.Docken on WindowsDesman can be installed as .ps1 script running docker image.Download scriptand set required permissions.
Default tag in script is latest. If you want to fix specific version, change corresponding variable in script.How to useSimple requestCreate .yml file with request description:method: get
url: http://host.com/then pass file path to desmandesmanpath/to/file.ymland desman prints the body of response to console.Request with parametersQuery parameters can be passed in urlmethod: get
url: http://host.com/?param=valueor be passed separatelymethod: get
url: http://host.com/
params:
  param: valueHeadersHeaders can be passed in headers fieldmethod: get
url: http://host.com/
headers:
  Authorization: Bearer some-auth-token
params:
  param: valueBodyBody content can be passed in body field in request filemethod: post
url: http://host.com/post
headers:
  Authorization: Bearer some-auth-token
body: |
  {
      "stringField": "JSON value",
      "nestedObject": {
          "nestedField": [1, 2, 3]
      }
  }Output parametersThe output of HTTP response is controlled by these optional paramters:-sprint status of response-Hprint heafers of response-bprint body of responseIf none of these parameters are passed desman prints only body of response.Using environmentsAll request files areJinja2templates.# request.yml
method: post
url: http://{{server.host}}:{{server.port}}/post
headers:
  Authorization: Bearer {{my-token}}
body: |
  {
      "stringField": "JSON value",
      "nestedObject": {
          "nestedField": [1, 2, 3]
      }
  }Variables are substituted from enviroment .yml files# env.yml
server:
  host: host.com
  port: 8080
my-token: "some-auth-token"which are passed in optional parameter-edesman-eenv.ymlrequest.ymlYou can use many enviroment files. If they have similar fields desman will use the last occurence of value.With many enviroment files# env.yml
server:
  host: host.com
  port: 8080
my-token: "some-auth-token"# new-token.yml
my-token: "new-token"if both passed asdesman-eenv.yml-enew-token.ymlrequest.ymlrequest will be performed withAuthorization: Bearer new-tokenheader.
Package: desmo-api
desmofylakas-apiMotivationdocker on aika nolo tälleen vuonna 2024 anyway~Jan, 2024ConfigurationDNS_ZONE=desmofylakas.cloud
HCLOUD_DNS_ZONE_ID=zone-id
HCLOUD_DNS_KEY=secret
NETWORK_PREFIX=2001:1234:1234:1234
SSH_KEY_FILE=/path/to/id_rsa
DATABASE_DSN=postgres://user:password@host:5432/db
RUNNER_HOSTS=bsd-1.example.com,bsd-2.example.com,bsd-3.example.com
API_KEY=supersecret
Package: desmos2python
convert Desmos equations to executable Python codeLinksdesmos2python (PyPI)Desmos Graphing CaculatorDependenciesBuild/DevGNU MakedockerLibrariesrequiredpandoc (e.g.apt-getinstall pandocfor Debian-based, orpacman-Spandocfor Arch Linux)(optional) For headless browser functionality (uses ``selenium``):pyenvlibxext6libxt6geckodriverandfirefoxCompatibilitypython3.10NOTE:working on expanding compatibility…NOTE:still a work in progress for sure.Helpful tips…definitely recommend using a virtual environment, e.g. via docker or
conda.InstallFrom PyPi:python3-mpip install desmos2pythonExamplesDesmosLatexParserAPI Example:importdesmos2pythonasd2p# `file` contains a JSON-formatted list of latex equations# loads the example defined in 'resources/latex_json/ex.json'dlp=d2p.DesmosLatexParser(file='ex.json')# `pycode_string` contains the ready-to-eval Desmos model namespaceprint(dlp.pycode_string)# Instantiate a model namespace# The attributes define any formulas, parameters from the specified Desmos graphdmn=dlp.DesmosModelNS()# for example, evaluate the function E(x) over the domain x=(1, 2, 3)result=dmn.E([1,2,3])print(result)# see ./tests for more examples!DevelopmentBuild locally:make buildTesting:pytest
Package: desota
DeSOTA Preferred Installer Programpip install desotaPackagesdetoolsfrom desota import detoolsTool Methodsdetools.get_model_reqConverts the model request, a YAML file created BYDeRunner, into a python dictionary.detools.get_model_argsGet Pro-Arguments from DeSOTA Model requestModel Methodsdetools.get_request_audioGet (download) Audio Arguments from DeSOTA Model requestdetools.get_request_videoGet (download) Video Arguments from DeSOTA Model requestdetools.get_request_imageGet (download) Image Arguments from DeSOTA Model requestdetools.get_request_fileGet (download) File Arguments from DeSOTA Model requestdetools.get_request_qaGet Question-Answer Arguments from DeSOTA Model requestdetools.get_request_urlGet URL Arguments from DeSOTA Model requestdetools.get_request_htmlGet HTML Files from DeSOTA Model request