Metadata-Version: 2.1
Name: foyndation
Version: 10
Summary: Base library of foyono projects
Home-page: https://pypi.org/project/foyndation/
Author: foyono
Author-email: shrovis@foyono.com
Description-Content-Type: text/markdown

# foyndation
Base library of foyono projects.

## API

<a id="foyndation"></a>

### foyndation

<a id="foyndation.initlogging"></a>

###### initlogging

```python
def initlogging()
```

Initialise the logging module to send debug (and higher levels) to stderr.

<a id="foyndation.rmsuffix"></a>

###### rmsuffix

```python
def rmsuffix(text, suffix)
```

Return text with suffix removed, or `None` if text does not end with suffix.

<a id="foyndation.singleton"></a>

###### singleton

```python
def singleton(t)
```

The decorated class is replaced with a no-arg instance.
Can also be used to replace a factory function with its result.

<a id="foyndation.solo"></a>

###### solo

```python
def solo(v)
```

Assert exactly one object in the given sequence and return it.

