Skip to content

Commit

Permalink
Whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
kalaspuff committed Jan 4, 2020
1 parent 677d999 commit 2039377
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,31 +57,31 @@ The following functions are also available from the module.
```python
import cure

cure.is_keyword("id")
cure.is_keyword("id")
# True
cure.is_keyword("type")
cure.is_keyword("type")
# True
cure.is_keyword("api")
cure.is_keyword("api")
# False
```

##### `cure.trail_name(kw)`
```python
import cure

cure.trail_name("id")
cure.trail_name("id")
# "id_"
cure.trail_name("type")
cure.trail_name("type")
# "type_"
cure.trail_name("api")
cure.trail_name("api")
# "api"
```

##### `cure.snake_case_name(kw)` and `cure.snake_case_dict(input_dict, recursive)`
```python
import cure

cure.snake_case_name("apiSecret")
cure.snake_case_name("apiSecret")
# "api_secret"
cure.snake_case_dict({"user": {"userId": 4711, "userLevel": "ADMIN"}}, recursive=True)
# {'user': {'user_id': 4711, 'user_level': 'ADMIN'}}
Expand All @@ -91,7 +91,7 @@ cure.snake_case_dict({"user": {"userId": 4711, "userLevel": "ADMIN"}}, recursive
```python
import cure

cure.camel_case_name("api_secret")
cure.camel_case_name("api_secret")
# "apiSecret"
cure.camel_case_dict({"user": {"user_id": 4711, "user_level": "ADMIN"}}, recursive=True)
# {'user': {'userId': 4711, 'userLevel': 'ADMIN'}}
Expand Down

0 comments on commit 2039377

Please sign in to comment.