You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#Alphanum3ric case (removes non-alphanumeric chars)
101
-
string = casefy.alphanumcase("foo - 123 ; bar!")
102
-
print(string) #foo123bar
108
+
#UPPER-KEBAB-CASE
109
+
string = casefy.upperkebabcase("fooBar")
110
+
print(string) #FOO-BAR
103
111
```
104
112
105
113
<br>
@@ -111,17 +119,33 @@ If you find a bug, please open an issue. Pull Requests are also welcome!
111
119
112
120
## Acknowledgements
113
121
114
-
This project started when I saw that the package [`python-stringcase`](https://aur.archlinux.org/pkgbase/python-stringcase) was flagged-out-of-date in the Arch AUR Repository. The project [stringcase](https://github.com/okunishinishi/python-stringcase) seems not to be actively maintained anymore, so I decided to address its issues and pull requests and solve them in this new package. I kept the API as similar as possible, in order to facilitate any possible migration. I thank [Taka Okunishi](https://github.com/okunishinishi) (author of stringcase) and its contributors for their work.
122
+
This project started when I saw that the package
123
+
[`python-stringcase`](https://aur.archlinux.org/pkgbase/python-stringcase) was
124
+
flagged-out-of-date in the Arch AUR Repository. The project
125
+
[stringcase](https://github.com/okunishinishi/python-stringcase) seems not to be
126
+
actively maintained anymore, so I decided to address its issues and pull
127
+
requests and solve them in this new package. I kept the API as similar as
128
+
possible, in order to facilitate any possible migration. I thank [Taka
129
+
Okunishi](https://github.com/okunishinishi) (author of stringcase) and its
130
+
contributors for their work.
115
131
116
132
<br>
117
133
118
134
## Related projects
119
135
120
-
-[`case-conversion`](https://github.com/AlejandroFrias/case-conversion) offers a very similar functionality as this project. I probably wouldn't have written this package if I had known of it before. However, the code of Casefy is more lightweight and just enough for most cases. If you need more functionality, e.g., detecting the case of a string, go with `case-conversion`.
a very similar functionality as this project. I probably wouldn't have written
138
+
this package if I had known of it before. However, the code of Casefy is more
139
+
lightweight and just enough for most cases. If you need more functionality,
140
+
e.g., detecting the case of a string, go with `case-conversion`.
121
141
122
-
-[Inflection](https://github.com/jpvanhal/inflection) presents some overlap with this project as well, allowing the transformation of strings from CamelCase to underscored_string, but also singularizing and pluralizing English words.
142
+
-[Inflection](https://github.com/jpvanhal/inflection) presents some overlap
143
+
with this project as well, allowing the transformation of strings from
144
+
CamelCase to underscored_string, but also singularizing and pluralizing
145
+
English words.
123
146
124
147
<br>
125
148
126
149
## License
127
-
Casefy is distributed under the [MIT](https://github.com/dmlls/python-casefy/blob/main/LICENSE) license.
0 commit comments