Metadata-Version: 2.0
Name: robotframework-stringformat
Version: 0.1.6
Summary: String Formatter for Robot Framework
Home-page: https://github.com/chonla/robotframework-stringformat
Author: Chonlasith Jucksriporn
Author-email: chonlasith@gmail.com
License: MIT
Description-Content-Type: UNKNOWN
Keywords: robot framework
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Framework :: Robot Framework
Classifier: Framework :: Robot Framework :: Library
Requires-Python: >=2.6, <4
Requires-Dist: robotframework

# StringFormat for Robot Framework

StringFormat is a string formatter for Robot Framework. This library is a python .format() wrapper.

## Usage

|                    |                |               |                                            |      |          |
| ------------------ | -------------- | ------------- | ------------------------------------------ | ---- | -------- |
| *** Settings ***   |                |               |                                            |      |          |
| Library            | StringFormat   |               |                                            |      |          |
| *** Test Cases *** |                |               |                                            |      |          |
| Format Text        |                |               |                                            |      |          |
|                    | ${url}=        | Format String | https://api.domain.com/users/{0}/sites/{1} | paul | internal |
|                    | Log To Console | ${url}        |                                            |      |          |

## Output

```
https://api.domain.com/users/paul/sites/internal
```

## Supported Format

StringFormat library utilizes python str.format method to construct formatted string. The format spec depends on what version of python this library being executed on. See the following resources for detail.

* Python 2: https://docs.python.org/2/library/string.html#format-string-syntax
* Python 3: https://docs.python.org/3.4/library/string.html#format-string-syntax

## License

MIT

