Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add support for Typer #14

Merged
merged 5 commits into from
Sep 20, 2024
Merged

feat: Add support for Typer #14

merged 5 commits into from
Sep 20, 2024

Conversation

evanmags
Copy link
Contributor

Hey @willmcgugan, You don't have a CONTRIBUTING.md on this repo, so I'm not sure if/how I can contribute to this, but these are the changes I made on my fork to get Trogon working in my Typer app. I have a few TODOs below but would like your input for desired usage and best practice. Thank you 🙏

TODO:

  • match desired usage
  • tests based on best practice

trogon/trogon.py Outdated Show resolved Hide resolved
@evanmags evanmags force-pushed the main branch 3 times, most recently from b05c7fe to 49e8807 Compare May 22, 2023 16:58
@evanmags
Copy link
Contributor Author

Removed the dependency requirement on typer and created an extra for it. This pattern of init_tui(app) feels more intuitive than shoehorning the decorator to work with a library that suggests creating many nested apps.

I'm weighing the benefits of being able to add this to a single command in typer, as the pattern set out in the docs would be to create a nested app for that.

@evanmags evanmags marked this pull request as ready for review May 24, 2023 11:47
README.md Outdated Show resolved Hide resolved
Fix the description for Typer support.

Signed-off-by: Michael Gielda <mgielda@antmicro.com>
@mgielda
Copy link
Contributor

mgielda commented Dec 28, 2023

Hi @darrenburns - I made a PR against @evanmags' branch fixing the docs. When he merges that, your review will be included; is there anything else that needs to be done to make this land?

@daneah daneah added the enhancement New feature or request label Sep 20, 2024
* upstream/main: (44 commits)
  Downgrade macos runner
  Bump actions versions to latest
  Update textualize dependency spec
  Update README.md
  fix: prefix binding actions with app namespace
  Tweak the styling to make the sidebar less greedy
  Strip trailing whitespace from the CSS file
  Relock
  Bump to Textual 0.54
  Add import
  Fix typo
  Remove '+ value' button from multi choice widget.
  Do not treat Select.BLANK as a supplied value
  Swap order of parameter explanations in README
  Create LICENSE
  version bump
  Ensure custom command names dont appear in sidebar
  fix: fixed command info when no docstring is present
  fix: fixed help_text if self.schema.help is none
  Expect at least one space
  ...
@daneah daneah dismissed darrenburns’s stale review September 20, 2024 21:41

Point has been addressed!

@daneah daneah merged commit b2f36dd into Textualize:main Sep 20, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants