Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/abranhe/sta

Parse tokens from an string into an array
https://github.com/abranhe/sta

pip python sta string-to-array

Last synced: about 2 months ago
JSON representation

Parse tokens from an string into an array

Awesome Lists containing this project

README

        









sta
: Parse tokens from an string into an array














# Overview

[**sta**](https://pypi.org/project/sta) extract the words from a string, and store those words in an array. The words are separated by an space/s.

# Install

```
pip install sta
```

# Usage

```py
import sta

print(sta('this string is divided by spaces'))
# => [ 'this', 'string', 'is', 'divided', 'by', 'spaces' ]
```

# API

### `sta('string')`

> Return an array with each token

**Return Type**: `list`

# Related

- [str-to-arr](https://github.com/abranhe/str-to-arr): convert an string into an array in JavaScript.
- [s-to-o](https://github.com/abranhe/s-to-o): convert an string into an object in JavaScript.

# Team

|[![Carlos Abraham Logo](https://avatars3.githubusercontent.com/u/21347264?s=50&v=4)](https://19cah.com)|
| :-: |
| [Carlos Abraham](https://github.com/abranhe) |

# License

[MIT](https://github.com/abranhe/sta/blob/master/LICENSE) License © [Carlos Abraham](https://github.com/abranhe/)