{"id":13343237,"url":"https://github.com/agoose77/xontrib-mod","last_synced_at":"2025-07-31T02:33:43.158Z","repository":{"id":76067620,"uuid":"424557524","full_name":"agoose77/xontrib-mod","owner":"agoose77","description":"Lazily access modules without importing them first.","archived":false,"fork":false,"pushed_at":"2021-11-20T09:51:28.000Z","size":7,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-13T14:41:52.129Z","etag":null,"topics":["helper","import","shell","xonsh","xontrib"],"latest_commit_sha":null,"homepage":"","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/agoose77.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-11-04T10:39:49.000Z","updated_at":"2022-07-20T00:03:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"04361320-9c03-4f1f-bcd3-a4c4e4ed3b2f","html_url":"https://github.com/agoose77/xontrib-mod","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/agoose77/xontrib-mod","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agoose77%2Fxontrib-mod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agoose77%2Fxontrib-mod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agoose77%2Fxontrib-mod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agoose77%2Fxontrib-mod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agoose77","download_url":"https://codeload.github.com/agoose77/xontrib-mod/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agoose77%2Fxontrib-mod/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267977968,"owners_count":24175239,"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","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["helper","import","shell","xonsh","xontrib"],"created_at":"2024-07-29T19:30:42.862Z","updated_at":"2025-07-31T02:33:43.118Z","avatar_url":"https://github.com/agoose77.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xontrib-mod\n[![pypi-badge][]][pypi] \n\n[pypi-badge]: https://img.shields.io/pypi/v/xontrib-mod\n[pypi]: https://pypi.org/project/xontrib-mod\n\n![image](https://user-images.githubusercontent.com/1248413/140384920-c9c663f7-6f9b-43a3-b217-112bd6e8a5d4.png)\n\n\nXonsh pushes the user towards Pythonic contructs over shell pipelines of general purpose tools (think `xargs` and friends), but these constructs are generally more verbose to use. This is in part due to the need to import them from the Python path with `import ...`. Given that the shell rewards ease-of-writing over verbosity, this can make writing shell script in Python a less enjoyable experience for shell programmers.\n\nEnter `mod`. `mod` is a simple xontrib that defines a `mod` builtin that attempts to resolve modules and their attributes:\n```pycon\n\u003e\u003e\u003e xontrib load mod\n\u003e\u003e\u003e mod.json.loads($(echo \"[1, 2, 3]\"))\n[1, 2, 3]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagoose77%2Fxontrib-mod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagoose77%2Fxontrib-mod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagoose77%2Fxontrib-mod/lists"}