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

✨ Support bytes in Options and Arguments #1190

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

doubledare704
Copy link

  • Added support for bytes type in Typer by:
  • Creating a custom BytesParamType class in typer/main.py
  • Modifying the get_click_type function to handle bytes type
  • Created comprehensive tests:
  • Basic tests for bytes type in tests/test_bytes_type.py
  • Advanced tests for base64 and hex encoding/decoding in tests/test_bytes_encoding.py
  • Created example applications:
  • Simple bytes example in examples/bytes_type_example.py
  • Comprehensive encoding/decoding example in examples/bytes_encoding_example.py

Attempt to solve #536

@svlandeg svlandeg added the feature New feature, enhancement or request label Apr 4, 2025
@svlandeg svlandeg changed the title [Implementation] Support for bytes in Options and Arguments ✨ Support bytes in Options and Arguments Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature, enhancement or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants