René's URL Explorer Experiment


Title: Using Fire with Xonsh shell · Issue #655 · google/python-fire · GitHub

Open Graph Title: Using Fire with Xonsh shell · Issue #655 · google/python-fire

X Title: Using Fire with Xonsh shell · Issue #655 · google/python-fire

Description: Hey! Thank you for Fire! I'm trying to use Fire with Xonsh shell. For example I want to have a CLI to operate with @.env - xonsh session environment that has PATH, LS_COLORS, etc. Start from making an alias: @.env # xonsh.environ.Env({'U...

Open Graph Description: Hey! Thank you for Fire! I'm trying to use Fire with Xonsh shell. For example I want to have a CLI to operate with @.env - xonsh session environment that has PATH, LS_COLORS, etc. Start from making...

X Description: Hey! Thank you for Fire! I'm trying to use Fire with Xonsh shell. For example I want to have a CLI to operate with @.env - xonsh session environment that has PATH, LS_COLORS, etc. Start from ma...

Opengraph URL: https://github.com/google/python-fire/issues/655

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Using Fire with Xonsh shell","articleBody":"Hey! Thank you for Fire!\n\nI'm trying to use Fire with [Xonsh shell](https://xon.sh/). For example I want to have a CLI to operate with `@.env` - xonsh session environment that has `PATH`, `LS_COLORS`, etc.\n\nStart from making an alias:\n\n```xsh\n@.env\n# xonsh.environ.Env({'USER':'pc' ...\n\n@aliases.register\ndef _env_cli(args):\n    echo @(@.env.keys())\n\nenv-cli\n# PATH LS_COLORS ...\n```\n\nLet's add more fire:\n\n```xsh\n@aliases.register\ndef _env_cli(args):\n    \"\"\"Alias that represents xonsh session environment as CLI.\"\"\"\n    @.imp.fire.Fire(@.env, command=args, name=$__ALIAS_NAME)\n\nenv-cli\n# InternalEnvironDict({'USER':'pc' ...\n\n# Nice! But\n\nenv-cli --help\n# INFO: Showing help with the command 'env-cli -- --help'.\n# Exception in thread {'cls': 'ProcProxyThread', 'name': 'Thread-13', 'func': FuncAlias({'name': 'env-cli', 'func': '_env_cli', 'return_what': 'result'}), 'alias': 'env-cli', 'pid': None}\n# Traceback (most recent call last):\n#   File \"/Users/pc/.local/xonsh-env/lib/python3.12/site-packages/xonsh/procs/proxies.py\", line 470, in run\n#     r = run_with_partial_args(\n#         ^^^^^^^^^^^^^^^^^^^^^^\n#   File \"/Users/pc/.local/xonsh-env/lib/python3.12/site-packages/xonsh/cli_utils.py\", line 383, in run_with_partial_args\n#     return func(**kwargs)\n#            ^^^^^^^^^^^^^^\n#   File \"/Users/pc/.local/xonsh-env/lib/python3.12/site-packages/xonsh/aliases.py\", line 99, in __call__\n#     return run_alias_by_params(\n#            ^^^^^^^^^^^^^^^^^^^^\n#   File \"/Users/pc/.local/xonsh-env/lib/python3.12/site-packages/xonsh/aliases.py\", line 565, in run_alias_by_params\n#     return func(**kwargs)\n#            ^^^^^^^^^^^^^^\n#   File \"\u003cstdin>\", line 4, in _env_cli\n#   File \"/Users/pc/.local/xonsh-env/lib/python3.12/site-packages/fire/core.py\", line 157, in Fire\n#     Display(output, out=sys.stderr)\n#   File \"/Users/pc/.local/xonsh-env/lib/python3.12/site-packages/fire/core.py\", line 169, in Display\n#     console_io.More(text, out=out)\n#   File \"/Users/pc/.local/xonsh-env/lib/python3.12/site-packages/fire/console/console_io.py\", line 99, in More\n#     signal.signal(signal.SIGINT, signal.SIG_IGN)\n#   File \"/Users/pc/.local/xonsh-env/lib/python3.12/signal.py\", line 58, in signal\n#     handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler))\n#               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n# ValueError: signal only works in main thread of the main interpreter\n```\n\nCould you please help to understand what I'm doing wrong?\nThanks!","author":{"url":"https://github.com/anki-code","@type":"Person","name":"anki-code"},"datePublished":"2026-03-20T12:39:16Z","url":"https://github.com/google/python-fire/issues/655"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ca47718d-c20b-c8ef-5752-f622c5a11644
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBFB8:34BCDE:DF42E9:124BD30:6AFFF00E
html-safe-nonce54c28902cb4f0bc6da29586300713c5057d2e1cf5a153b05b35dc8194eed54e7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRkI4OjM0QkNERTpERjQyRTk6MTI0QkQzMDo2QUZGRjAwRSIsInZpc2l0b3JfaWQiOiI3NzIzNzkxNjg0Nzg5NTk2MTc0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac99f82a8bc3651ceee45cb338dc4da94b6e9dddb26f1d603c331f205b357384fa
hovercard-subject-tagissue:4107659951
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/google/python-fire/655/issue_layout
twitter:imagehttps://opengraph.githubassets.com/eedf7fcfb18be3a830785c304d84a58b18805bbfcd4eab3da55561c104fa9c50/google/python-fire/issues/655
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/eedf7fcfb18be3a830785c304d84a58b18805bbfcd4eab3da55561c104fa9c50/google/python-fire/issues/655
og:image:altHey! Thank you for Fire! I'm trying to use Fire with Xonsh shell. For example I want to have a CLI to operate with @.env - xonsh session environment that has PATH, LS_COLORS, etc. Start from making...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameanki-code
hostnamegithub.com
expected-hostnamegithub.com
None0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729
turbo-cache-controlno-preview
go-importgithub.com/google/python-fire git https://github.com/google/python-fire.git
octolytics-dimension-user_id1342004
octolytics-dimension-user_logingoogle
octolytics-dimension-repository_id82729529
octolytics-dimension-repository_nwogoogle/python-fire
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id82729529
octolytics-dimension-repository_network_root_nwogoogle/python-fire
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release16a11879678aaf97e2a42c33ee70830aa084fa37
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/google/python-fire/issues/655#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogle%2Fpython-fire%2Fissues%2F655
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogle%2Fpython-fire%2Fissues%2F655
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=google%2Fpython-fire
Reloadhttps://github.com/google/python-fire/issues/655
Reloadhttps://github.com/google/python-fire/issues/655
Reloadhttps://github.com/google/python-fire/issues/655
googlehttps://github.com/google
python-firehttps://github.com/google/python-fire
Codehttps://github.com/google/python-fire
Issues146 (146)https://github.com/google/python-fire/issues
Pull requests85 (85)https://github.com/google/python-fire/pulls
Actionshttps://github.com/google/python-fire/actions
Projectshttps://github.com/google/python-fire/projects
Security and qualityhttps://github.com/google/python-fire/security
Insightshttps://github.com/google/python-fire/insights
https://github.com/google/python-fire
New issuehttps://github.com/login?return_to=https://github.com/google/python-fire/issues/655
New issuehttps://github.com/login?return_to=https://github.com/google/python-fire/issues/655
Using Fire with Xonsh shellhttps://github.com/google/python-fire/issues/655#top
https://github.com/anki-code
anki-codehttps://github.com/anki-code
on Mar 20, 2026https://github.com/google/python-fire/issues/655#issue-4107659951
Xonsh shellhttps://xon.sh/
https://github.com/anki-code
anki-codehttps://github.com/anki-code
on Mar 20, 2026https://github.com/google/python-fire/issues/655#issuecomment-4097734731
#188 (comment)https://github.com/google/python-fire/issues/188#issuecomment-1528976874
anki-codehttps://github.com/anki-code
completedhttps://github.com/google/python-fire/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Mar 20, 2026https://github.com/google/python-fire/issues/655#event-23751198013
https://github.com/anki-code
anki-codehttps://github.com/anki-code
on Mar 20, 2026https://github.com/google/python-fire/issues/655#issuecomment-4097946575
Sign up for freehttps://github.com/signup?return_to=https://github.com/google/python-fire/issues/655
Sign in to commenthttps://github.com/login?return_to=https://github.com/google/python-fire/issues/655
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.