{"id":19088429,"url":"https://github.com/naelstrof/slop-python","last_synced_at":"2025-04-30T10:05:09.400Z","repository":{"id":57468403,"uuid":"98831260","full_name":"naelstrof/slop-python","owner":"naelstrof","description":"Slop bindings for python3. Requires slop: https://github.com/naelstrof/slop","archived":false,"fork":false,"pushed_at":"2018-06-25T05:10:21.000Z","size":4,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-11T03:47:37.987Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/naelstrof.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-30T23:46:11.000Z","updated_at":"2020-12-23T18:34:18.000Z","dependencies_parsed_at":"2022-09-19T08:41:00.224Z","dependency_job_id":null,"html_url":"https://github.com/naelstrof/slop-python","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naelstrof%2Fslop-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naelstrof%2Fslop-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naelstrof%2Fslop-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naelstrof%2Fslop-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/naelstrof","download_url":"https://codeload.github.com/naelstrof/slop-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249493931,"owners_count":21281635,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T03:01:09.621Z","updated_at":"2025-04-18T12:32:25.118Z","avatar_url":"https://github.com/naelstrof.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python bindings for slop\n\nJust a quick python extension for region selecting. Read https://github.com/naelstrof/slop for info on what kind of region selecting.\n\n## Usage\n\n```python\nimport slop\nrect = slop.select(border=30,r=1,g=0,b=0,a=0.5)\nprint(rect)\n```\nreturns\n```python\n{'x': 308, 'y': 179, 'w': 654, 'h': 447, 'id': 4199883, 'cancelled': 0}\n```\n\nAvailable arguments:\n\n| Argument      | Type     | Description                                                                                     |\n|---------------|----------|-------------------------------------------------------------------------------------------------|\n| border        | Float    | The border width in pixels.                                                                     |\n| padding       | Float    | Space between the actual selection and the returned pixels, this is visible during selection.   |\n| tolerance     | Float    | The distance the mouse has to move in pixels before detecting a drag selection.                 |\n| highlight     | Bool     | Draws an overlay over the selection with the given color. Only useful with alpha.               |\n| noopengl      | Bool     | Disables OpenGL accelleration, as well as shaders.                                              |\n| nokeyboard    | Bool     | Disables being able to cancel a selection with the keyboard.                                    |\n| nodecorations | Bool     | Set to 0, 1 or 2. Enables different methods for removing window frame decorations.              |\n| shaders       | List     | A list of shader names. Example [\"wiggle\", \"blur1\", \"blur2\"]. Requires files, see slop website. |\n| r             | Float    | The red component of the rectangle color.                                                       |\n| g             | Float    | The green component of the rectangle color.                                                     |\n| b             | Float    | The blue component of the rectangle color.                                                      |\n| a             | Float    | The alpha component of the rectangle color.                                                     |\n| xdisplay      | String   | The desired X display string.                                                                   |\n| quiet         | Bool     | If set to true, keeps slop from printing info to std::cout.                                     |\n\n## Installation\n\nWindows: `python setup.py install`\nLinux: `sudo python setup.py install`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaelstrof%2Fslop-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaelstrof%2Fslop-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaelstrof%2Fslop-python/lists"}