Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tombulled/case
String case conversion, identification and parsing
https://github.com/tombulled/case
Last synced: 23 days ago
JSON representation
String case conversion, identification and parsing
- Host: GitHub
- URL: https://github.com/tombulled/case
- Owner: tombulled
- License: mit
- Created: 2021-09-26T13:07:19.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-24T19:46:54.000Z (almost 3 years ago)
- Last Synced: 2023-03-05T18:53:56.274Z (almost 2 years ago)
- Language: Python
- Homepage:
- Size: 67.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# case
String case conversion, identification, parsing and creation## Styles
| Style | Example |
| -------- | ------- |
| lower | foo bar |
| upper | FOO BAR |
| title | Foo Bar |
| sentence | Foo bar |
| snake | foo_bar |
| helter | Foo_Bar |
| macro | FOO_BAR |
| kebab | foo-bar |
| train | Foo-Bar |
| cobol | FOO-BAR |
| flat | foobar |
| flush | FOOBAR |
| pascal | FooBar |
| camel | fooBar |
| dot | foo.bar |
| path | foo/bar |## Usage
```python
>>> import case
```### Conversion
```python
>>> case.snake('alphaBRAVOCharlie')
'alpha_bravo_charlie'
```### Identification
```python
>>> case.identify('FooBar')
[Case(style='pascal')]
```