{"id":15725101,"url":"https://github.com/eggplants/pimg","last_synced_at":"2025-05-07T21:43:51.412Z","repository":{"id":37955447,"uuid":"364638362","full_name":"eggplants/pimg","owner":"eggplants","description":"Simple CLI + Library to \u003csave image in clipboard | copy image into clipboard\u003e","archived":false,"fork":false,"pushed_at":"2024-11-10T14:23:09.000Z","size":128,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-30T11:11:59.594Z","etag":null,"topics":["cli","library","pygobject","python"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/pimg","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eggplants.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-05T16:22:32.000Z","updated_at":"2024-11-10T14:23:09.000Z","dependencies_parsed_at":"2024-02-08T14:28:03.207Z","dependency_job_id":"71e96eb5-fcf8-4ca4-8c42-0bffc997e9a3","html_url":"https://github.com/eggplants/pimg","commit_stats":{"total_commits":41,"total_committers":3,"mean_commits":"13.666666666666666","dds":0.5365853658536586,"last_synced_commit":"6f90d5a7a4edc746a7371018779ea74727a23cfd"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggplants%2Fpimg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggplants%2Fpimg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggplants%2Fpimg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggplants%2Fpimg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eggplants","download_url":"https://codeload.github.com/eggplants/pimg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227823507,"owners_count":17825077,"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":["cli","library","pygobject","python"],"created_at":"2024-10-03T22:19:30.936Z","updated_at":"2025-05-07T21:43:51.402Z","avatar_url":"https://github.com/eggplants.png","language":"Python","readme":"# `pimg`\n\n[![PyPI version](\n  \u003chttps://img.shields.io/pypi/v/pimg?color=blue\u003e\n  )](\n  \u003chttps://pypi.org/project/pimg\u003e\n) [![pre-commit.ci status](\n  \u003chttps://results.pre-commit.ci/badge/github/eggplants/pimg/master.svg\u003e\n  )](\n  \u003chttps://results.pre-commit.ci/latest/github/eggplants/pimg/master\u003e\n) [![Maintainability](\n  \u003chttps://qlty.sh/badges/b5bbd1cc-cd7b-4beb-bcb5-8fec8591c700/maintainability.svg\u003e\n  )](\n  \u003chttps://qlty.sh/gh/eggplants/projects/pimg\u003e\n) [![Code Coverage](\n  \u003chttps://qlty.sh/badges/b5bbd1cc-cd7b-4beb-bcb5-8fec8591c700/test_coverage.svg\u003e\n  )](\n  \u003chttps://qlty.sh/gh/eggplants/projects/pimg\u003e\n)\n\n- CLI (and library) for saving an image in clipboard to a local file with PyGObject\n- Inspired by [PasteImg](https://github.com/cas--/PasteImg)\n  - requires Python 2.x and PyGTK (Last-Modified: May 2011)\n\n## Install\n\n```bash\npip install pimg\n```\n\n## Example\n\n- First, crop or copy image on browser\n  - e,g) Cropping a screen:\n    - Ubuntu: Shift+PrtScn\n    - Windows: Win+Shift+S\n- To save an image in clipboard in local:\n\n```bash\npimg g sth.png\n```\n\n- To copy a local image into clipboard:\n\n```bash\npimg c sth.png\n```\n\n## Usage\n\n```shellsession\n$ pimg -h\nusage: pimg [-h] [-V] {get,g,copy,c} ...\n\nSave an image in clipboard / Copy an image to clipboard\n\npositional arguments:\n  {get,g,copy,c}\n    get (g)       get/save an image from clipboard\n    copy (c)      copy a local image to clipboard\n\noptions:\n  -h, --help      show this help message and exit\n  -V, --version   show program's version number and exit\n```\n\n```shellsession\n$ pimg g -h\nusage: pimg get [-h] PATH\n\npositional arguments:\n  PATH        path of save file\n\noptions:\n  -h, --help  show this help message and exit\n```\n\n```shellsession\n$ pimg c -h\nusage: pimg copy [-h] PATH\n\npositional arguments:\n  PATH        path of image to copy\n\noptions:\n  -h, --help  show this help message and exit\n```\n\n## license\n\nMIT\n\n## Author\n\nharuna(eggplants)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feggplants%2Fpimg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feggplants%2Fpimg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feggplants%2Fpimg/lists"}