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
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,23 +6,23 @@ Inspired by Pydantic's boolean, Booleanify is a Python package that provides a s
6
6
7
7
You can install Booleanify using pip:
8
8
9
-
\`\`\`bash
9
+
```bash
10
10
pip install booleanify
11
-
\`\`\`
11
+
```
12
12
13
13
## Usage
14
14
15
-
To use Booleanify in your Python code, simply import the \`booleanify\` function and pass a string representing a boolean value to it. The function will return the corresponding boolean value.
15
+
To use Booleanify in your Python code, simply import the `booleanify` function and pass a string representing a boolean value to it. The function will return the corresponding boolean value.
16
16
17
-
\`\`\`python
17
+
```python
18
18
from booleanify import booleanify
19
19
20
20
result = booleanify("T")
21
21
print(result) # Output: True
22
22
23
23
result = booleanify("false")
24
24
print(result) # Output: False
25
-
\`\`\`
25
+
```
26
26
27
27
Booleanify supports the following string representations for boolean values:
0 commit comments