Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 days ago
JSON representation
Parse tokens from an string into an array
- Host: GitHub
- URL: https://github.com/abranhe/sta
- Owner: abranhe
- License: mit
- Created: 2018-08-31T00:19:12.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-02T14:44:51.000Z (about 6 years ago)
- Last Synced: 2024-10-12T12:15:07.721Z (about 1 month ago)
- Topics: pip, python, sta, string-to-array
- Language: Python
- Homepage: https://projects.abranhe.com/sta/
- Size: 4.88 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 staprint(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/)