{"id":15890649,"url":"https://github.com/digitronik/python-xrectsel","last_synced_at":"2025-03-20T11:36:48.839Z","repository":{"id":57457732,"uuid":"184861576","full_name":"digitronik/python-xrectsel","owner":"digitronik","description":"Geometry of a rectangular screen region","archived":false,"fork":false,"pushed_at":"2022-09-29T18:35:48.000Z","size":31,"stargazers_count":7,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-07T07:07:18.050Z","etag":null,"topics":["area","geometry-library","python-xrectsel","xrectsel"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/digitronik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-04T06:45:26.000Z","updated_at":"2022-12-21T00:01:05.000Z","dependencies_parsed_at":"2022-09-06T02:00:43.940Z","dependency_job_id":null,"html_url":"https://github.com/digitronik/python-xrectsel","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitronik%2Fpython-xrectsel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitronik%2Fpython-xrectsel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitronik%2Fpython-xrectsel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitronik%2Fpython-xrectsel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digitronik","download_url":"https://codeload.github.com/digitronik/python-xrectsel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221756932,"owners_count":16875866,"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":["area","geometry-library","python-xrectsel","xrectsel"],"created_at":"2024-10-06T07:07:20.847Z","updated_at":"2024-10-28T01:02:31.319Z","avatar_url":"https://github.com/digitronik.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e python-xrectsel\u003c/h1\u003e\n\u003ch3 align=\"center\"\u003eGeometry of a rectangular screen region\u003c/h3\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://pypi.org/project/python-xrectsel\"\u003e\u003cimg alt=\"Python Versions\"\nsrc=\"https://img.shields.io/pypi/pyversions/python-xrectsel.svg?style=flat\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/digitronik/python-xrectsel/actions?query=workflow%3ATests\"\u003e\u003cimg alt=\"Build Status\"\nsrc=\"https://github.com/digitronik/python-xrectsel/workflows/Tests/badge.svg?branch=master\"\u003e\u003c/a\u003e\n\u003ca href=\"https://codecov.io/gh/digitronik/python-xrectsel\"\u003e\n  \u003cimg src=\"https://codecov.io/gh/digitronik/python-xrectsel/branch/master/graph/badge.svg\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://pypi.org/project/python-xrectsel/#history\"\u003e\u003cimg alt=\"PyPI version\"\nsrc=\"https://badge.fury.io/py/python-xrectsel.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/digitronik/python-xrectsel/blob/master/LICENSE\"\u003e\u003cimg alt=\"License: GPLV3\"\nsrc=\"https://img.shields.io/pypi/l/miqsel.svg?version=latest\"\u003e\u003c/a\u003e\n\u003ca href=\"https://pypi.org/project/black\"\u003e\u003cimg alt=\"Code style: black\"\nsrc=\"https://img.shields.io/badge/code%20style-black-000000.svg\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nThe project idea based on [xrectsel](https://github.com/lolilolicon/xrectsel). Its Python variant with some enhancements.\n\n### Installation:\n```bash\npip install python-xrectsel\n```\n\n### Usage:\n```shell\n❯ xrectsel --help\nUsage: xrectsel [OPTIONS]\n\nOptions:\n  -f, --format TEXT               Format output string with fallowing options:\n\n                                  %x - start x-coordinate\n\n                                  %y - start y-coordinate\n\n                                  %X - start\n\n                                  %Y - end\n\n                                  %w - width\n\n                                  %h - height\n\n                                  Note: default output is in \"%wx%h+%x+%y\"\n                                  format.\n\n  -ci, --cursor-icon [crosshair|cross|pencil|dotbox]\n                                  Select cursor icon\n  -cf, --cursor-foreground \u003cINTEGER INTEGER INTEGER\u003e...\n                                  Select cursor foreground color\n  -cb, --cursor-background \u003cINTEGER INTEGER INTEGER\u003e...\n                                  Select cursor background color\n  -h, --help                      Show this message and exit.\n\n```\n\n- We can collect selected region geometry just by command `xrectsel`. Default format is `%wx%h+%x+%y`\n```bash\n$ xrectsel\n$ # select rectangle on sreen\n901x634+44+7 #(x-coordinate, y-coordinate, width, height)\n```\n- We can format output geometry string\n```bash\n$ xrectsel -f \"--x=%x --y=%y --width=%w --height=%h\"\n--x=264 --y=387 --width=1204 --height=519\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitronik%2Fpython-xrectsel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigitronik%2Fpython-xrectsel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitronik%2Fpython-xrectsel/lists"}