semvec/pypi-packages huggingface dataset:
true-or-false 0.1.3
A simple python module to determine whether an input is True or False.
License: MIT
Requires Python: >=3.6,<4.0

# true_or_false
A simple python funciton to determine whether an input is True or False

Determine (educated guess) whether an input value is True
or False.  Input can be a bool, dict, int or str.  This is
useful for determining the value of a parameter as passed
in via environment variable, cli, config file or plain
python code.

Examples of True values:
  str: ['true', 't', '1', 'yes', 'y', 't', 'oui']
  bool: True
  dict: {'a': 1} # any non empty dictionary
  list: [0]  # any list not zero length

Examples of False values:
  str FALSES = ['false', 'f', '0', 'no', 'n', 'non']
  bool: False
  dict: {}  # empty dictionary
  list: []  # empty list

## Installation

  pip install true-or-false

## Usage

```
from true_or_false import true_or_false

b = true_or_false(1)
print(b)
>> True
```
dirtempl 0.1.3
Template a whole directory
License: MIT
Keywords: template directory

# DirTempl

DirTempl templates a whole directory, letting you swap out individual snippets
for the contents of files in the snippets directory.

## Install

DirTempl is typically best installed by installing [pipx](https://pypa.github.io/pipx/)
and then installing dirtempl using pipx.

```bash
pipx install dirtempl
```

## Example Usage

```bash
dirtempl input/ snippets/ output/
```

Anything in input folder containing {{{{ my_snippet }}}} will replace
the contents with the corresponding file in snippets/ - e.g. my_snippet.

## Why not use jinja2?

Too complicated.