{"id":37067954,"url":"https://github.com/frostidaho/dynmen","last_synced_at":"2026-01-14T07:59:12.610Z","repository":{"id":12520463,"uuid":"64730491","full_name":"frostidaho/dynmen","owner":"frostidaho","description":"Python wrappers for dynamic menus (dmenu, rofi, fzf, ...)","archived":false,"fork":false,"pushed_at":"2021-11-04T09:50:01.000Z","size":474,"stargazers_count":32,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2025-09-27T20:01:53.441Z","etag":null,"topics":["dmenu","dynamic-menus","fzf","percol","python","rofi"],"latest_commit_sha":null,"homepage":null,"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/frostidaho.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":"2016-08-02T06:30:03.000Z","updated_at":"2025-02-09T00:11:38.000Z","dependencies_parsed_at":"2022-07-26T16:02:30.482Z","dependency_job_id":null,"html_url":"https://github.com/frostidaho/dynmen","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/frostidaho/dynmen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frostidaho%2Fdynmen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frostidaho%2Fdynmen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frostidaho%2Fdynmen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frostidaho%2Fdynmen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frostidaho","download_url":"https://codeload.github.com/frostidaho/dynmen/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frostidaho%2Fdynmen/sbom","scorecard":{"id":412235,"data":{"date":"2025-08-11","repo":{"name":"github.com/frostidaho/dynmen","commit":"a39aa2840dbf184ba83668d1f214495630bb396f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'develop'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-18T23:00:17.071Z","repository_id":12520463,"created_at":"2025-08-18T23:00:17.072Z","updated_at":"2025-08-18T23:00:17.072Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28413527,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["dmenu","dynamic-menus","fzf","percol","python","rofi"],"created_at":"2026-01-14T07:59:11.827Z","updated_at":"2026-01-14T07:59:12.600Z","avatar_url":"https://github.com/frostidaho.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dynmen [![Build Status](https://travis-ci.org/frostidaho/dynmen.svg?branch=develop)](https://travis-ci.org/frostidaho/dynmen) [![Coverage Status](https://coveralls.io/repos/github/frostidaho/dynmen/badge.svg?branch=develop)](https://coveralls.io/github/frostidaho/dynmen?branch=develop) [![Supported python versions](https://img.shields.io/badge/python-2.7%2C%203.x-blue.svg)](https://pypi.python.org/pypi/dynmen)\n\u003e a python interface to dynamic menus\n\n- [Introduction](#introduction)\n- [General Usage](#general-usage)\n- [Installation](#installation)\n- [Code Reference](#code-reference)\n\n## Introduction\n**Dynmen** is a python library for controlling dynamic menus like [dmenu](http://tools.suckless.org/dmenu/), [rofi](https://github.com/DaveDavenport/rofi), [fzf](https://github.com/junegunn/fzf), and [percol](https://github.com/mooz/percol).\nA primary use for dynamic menus is to prompt users to filter and select an entry from a list.\nThey typically read entries from *STDIN* and write the selection to *STDOUT*.\n\n**Dynmen** simplifies working with dynamic menus by having:\n- Input entries to menus as any iterable python object (*dict*, *list*, etc)\n- Menu run in blocking or non-blocking modes\n- Structured results with error checking\n- Introspectable classes which expose all of a menu's options\n\n## General Usage\nUsing *dynmen* to drive any dynamic menu can be broken down into two main steps\n1. Create and configure a menu instance (e.g., `menu = dynmen.Menu(['fzf', '--prompt=Name of person:'])`)\n   - Optionally set menu options like font, color, or sorting\n   - Optionally set process mode to blocking or non-blocking (`concurrent.futures` or `asyncio`)\n   - Menu objects may be created from a few classes\n     * The barebones `dynmen.Menu`\n     * Menu-specific classes like `dynmen.rofi.Rofi` or `dynmen.dmenu.DMenu` which use property descriptors for all of the menu's options\n2. Call the instance with some data (e.g., `result = menu({'a':1, 'b':2, 'c':3})`)\n\nTo get a feel for how this is used refer to the [examples directory](examples/) which contains a number of self-contained example scripts using *dynmen*. The following gif records using one of those examples [fzf_example.py](examples/fzf_example.py).\n```python\nexdict = {\n    'Alyssa Boyd': ('Brownmouth', '09044'),\n    'Candice Huber': ('New Kimberly', '11698'),\n    'Dr. Kelli Sharp MD': ('North Rhondashire', '71761'),\n    'Gary Hernandez': ('Burnshaven', '62267'),\n    'Hannah Williams': ('North Stacy', '50983'),\n    'Monique Mccoy': ('Katherinemouth', '42023'),\n    'Trevor Kelly': ('South Jenniferport', '73366'),\n}\nfrom dynmen import Menu\nmenu = Menu(['fzf', '--prompt=Name of person:'])\nout = menu(exdict)\nprint('Output from fzf:', out)\n```\n\u003c!-- ![fzf simple example](https://user-images.githubusercontent.com/8061555/35477530-06e6967e-0393-11e8-919d-5e4461d29aa0.gif \"fzf_example.py\") --\u003e\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/8061555/35477530-06e6967e-0393-11e8-919d-5e4461d29aa0.gif\" width=\"80%\"\u003e\n\u003c/p\u003e\n\nPlease see the [examples](examples/) folder for more examples. I've also used it in other a number of other projects like [dynmen_scripts](https://github.com/frostidaho/dynmen_scripts) and [python-vpnmenu](https://github.com/frostidaho/python-vpnmenu).\n\n## Installation\ndynmen is supported on python versions 2.7-3.x\n\n### Installing from pypi\n```bash\npip install --user dynmen\n```\n\n### Installing development version from github\n```bash\ngit clone https://github.com/frostidaho/dynmen.git\ncd dynmen\nmake install-user\n```\n\n## Code Reference\nPlease read [General Usage](#general-usage) first before reading this section.\n\n### Creating and configuring menu objects\n#### Using the dynmen.Menu class\nThe `dynmen.Menu` class is the foundational menu class in the package. The application specific menu classes\n`DMenu` and `Rofi` are built on top of it. If you want to use some dynamic menu which doesn't have a *dynmen*\nspecific class, you can launch the menu through `dynmen.Menu`.\n\n\u003cimg align=\"right\" src=\"https://cloud.githubusercontent.com/assets/8061555/25921100/3249cae4-35a2-11e7-8144-403803107131.png\" width=\"45%\"\u003e\n\n```python\nfrom dynmen import Menu\nrofi = Menu(['rofi', '-dmenu'])\nresult = rofi({'first': 1, 'second': 2, 'third': 3})\nprint(result)\n```\n\n------------------------------------------------------------\n\n#### Using a menu in non-blocking mode\nThe `menu.process_mode` attribute can be set to `blocking`, `futures`, or `asyncio`.\n```python\nfrom dynmen import Menu\nrofi = Menu(['rofi', '-dmenu'], process_mode='futures')\nfuture = rofi(list('abcdefghijklmnopqrstuvwxyz'))\nprint(future.result())\n```\n\n#### Using application-specific classes like `dynmen.rofi.Rofi` or `dynmen.dmenu.DMenu`\nThis example uses the `Rofi()` class which is generated from\nthe rofi man page, and whose attributes correspond to rofi\ncommand-line flags. For example, `rofi ... -font 'monospace 20'` is\nequivalent to `menu = Rofi(); menu.font = 'monospace 20'`. You can\nalso set attributes through the constructor `Rofi(font='monospace 20')`.\n\n```python\nexdict = {\n    'Alyssa Boyd': ('Brownmouth', '09044'),\n    'Amy Martin': ('Mikechester', '33477'),\n    'Angela Mcdonald': ('North Gwendolynberg', '29053'),\n    'Bradley Santos': ('Andrewsmouth', '72513'),\n    'Brittany Manning': ('South Danielmouth', '44482'),\n    'Candice Huber': ('New Kimberly', '11698'),\n    'Cheyenne Thornton': ('New Anthony', '88618'),\n    'Dr. Kelli Sharp MD': ('North Rhondashire', '71761'),\n    'Evan Osborne': ('Andrewsside', '14378'),\n    'Gary Hernandez': ('Burnshaven', '62267'),\n    'George Elliott': ('Calebton', '55053'),\n    'Hannah Williams': ('North Stacy', '50983'),\n    'James Taylor': ('Gallegoshaven', '95677'),\n    'John White': ('Hansenhaven', '44559'),\n    'Monique Mccoy': ('Katherinemouth', '42023'),\n    'Randy Campos': ('South Scotthaven', '47692'),\n    'Rebecca Wolfe': ('Torresburgh', '37979'),\n    'Ronald Parks': ('Turnerland', '96367'),\n    'Russell Schroeder': ('Smithfurt', '39696'),\n    'Trevor Kelly': ('South Jenniferport', '73366'),\n}\n\nfrom dynmen.rofi import Rofi\nmenu = Rofi(lines=10, hide_scrollbar=True)\nmenu.prompt = \"Name of person: \"\nmenu.font = 'DejaVu Sans 30'\nmenu.case_insensitive = True\nout = menu(exdict)\nprint(out)\n```\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://cloud.githubusercontent.com/assets/8061555/25920153/010360f6-359f-11e7-8497-f3608c8ead2b.gif\" width=\"80%\"\u003e\n\u003c/p\u003e\n\u003c!-- ![rofi dynmen.Rofi example](https://cloud.githubusercontent.com/assets/8061555/25920153/010360f6-359f-11e7-8497-f3608c8ead2b.gif \"rofi dynmen.Rofi example\") --\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrostidaho%2Fdynmen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrostidaho%2Fdynmen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrostidaho%2Fdynmen/lists"}