HNHacker News
TopNewBestAskShowJobs

zobweyt

37 karma · joined April 1, 2025

submissionscomments
zobweyt··on Show HN: Textcase: A Python Library for Text Case Conversion
Thanks for the feedback! I'm glad you found a use case for this library!
zobweyt··on Show HN: Textcase: A Python Library for Text Case Conversion
Thank you for the update! I’ve added a badge to the GitHub repository to reflect its availability on AUR.
zobweyt··on Show HN: Textcase: A Python Library for Text Case Conversion
Thanks for the clarification!

Yeah, there is such a problem with the naming "text" suggests something different than just a "string".

I guess handling these nuances falls under the broader categories of internationalization (i18n) and localization (l10n).

zobweyt··on Show HN: Textcase: A Python Library for Text Case Conversion
Thank you for the clarification! I appreciate your input. I've updated the wording to "feature-rich" to better convey the intended meaning. Your feedback is valuable!
zobweyt··on Show HN: Textcase: A Python Library for Text Case Conversion
Thanks for your feedback! You're right; I should clarify that the library assumes English-language strings for casing. I'll update the documentation to make this limitation clear. I appreciate you pointing it out!
zobweyt··on Show HN: Textcase: A Python Library for Text Case Conversion
I understand your perspective, and it's a valid concern. However, this library is designed to support not only simple use cases but also more advanced scenarios, providing a comprehensive solution for various needs. Additionally, it has zero dependencies, which helps keep your project lightweight. This way, you can benefit from the library's features without adding unnecessary complexity to your dependency tree. Thank you for sharing your thoughts!
zobweyt··on Show HN: Textcase: A Python Library for Text Case Conversion
Thank you for your suggestion! Adding a preserve option to maintain leading, trailing, and duplicate delimiters while normalizing them to the target delimiter is a great idea. I’ll consider implementing this feature. Thanks again!
zobweyt··on Show HN: Textcase: A Python Library for Text Case Conversion
Thank you for the clarification! I understand that title capitalization can be quite complex, especially with specific rules in languages like German where capitalization can change the meaning of a word.

I guess handling these nuances falls under the broader categories of internationalization (i18n) and localization (l10n).

zobweyt··on Show HN: Textcase: A Python Library for Text Case Conversion
Thank you for the feedback!

I appreciate your suggestion regarding the name, but unfortunately this name was already taken, so "textcase" was chosen.

I also have ideas for adding dictionary key conversion and other features in the future that will handle more than just strings. In addition, you can use this library to convert cases of Iterable[str] using textcase.pattern

zobweyt··on Show HN: Textcase: A Python Library for Text Case Conversion
I appreciate your perspective! It's interesting to consider how the built-in libraries of a language can influence its ecosystem. Python does have a rich standard library that often reduces the need for external dependencies. In contrast, JavaScript's ecosystem has evolved around web development, where modularity and flexibility are prioritized, leading to a proliferation of packages.
zobweyt··on Show HN: Textcase: A Python Library for Text Case Conversion
That's a great observation! Instead of seeing it as a limitation, it can be treated as a feature. Users can handle Unicode normalization using Python's built-in unicodedata module to ensure proper case conversion. Thanks for pointing that out!
zobweyt··on Show HN: Textcase: A Python Library for Text Case Conversion
Thanks!

It does not support non-English title casing. From the documentation:

> It also works non-ascii characters. However, no inferences on the language itself is made. For instance, the digraph ij in Dutch will not be capitalized, because it is represented as two distinct Unicode characters. However, æ would be capitalized

zobweyt··on Show HN: Textcase: A Python Library for Text Case Conversion
Thank you for the kind words! I'm glad you appreciate the effort put into covering all those edge cases.

It sounds like you had quite the adventure with text casing on your project. I'm happy this library can save you some time and hassle. Looking forward to see what can be built with it!

zobweyt··on Show HN: Textcase: A Python Library for Text Case Conversion
Thanks for the suggestion!

Right now, there's no such GH badge. Since the project will always have zero dependencies, I think we can simply use a static badge like this:

https://img.shields.io/badge/dependencies-0-green

zobweyt··on Show HN: Textcase: A Python Library for Text Case Conversion
Happy April!

Actually, this library supports conversion of even such strings!

```python

>>> import textcase

>>> textcase.convert("HAppY ApRiL FoOLs!", textcase.case.SNAKE, (textcase.boundary.SPACE,))

'happy_april_fools!'

```

Thanks for the congratulations!

zobweyt··on Show HN: Textcase: A Python Library for Text Case Conversion
Thanks for the kind words!

This library actually has zero dependencies! I'm glad you appreciate the no-dependency design.

It's great to hear that it fits well with your work!