Skip to main content

Parse tokens from an string into an array

Project description




sta : Parse tokens from an string into an array

Overview

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

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: convert an string into an array in JavaScript.
  • s-to-o: convert an string into an object in JavaScript.

Team

Carlos Abraham Logo
Carlos Abraham

License

MIT License © Carlos Abraham

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
sta-2.0.1-py3-none-any.whl (2.2 kB) Copy SHA256 hash SHA256 Wheel py3
sta-2.0.1.tar.gz (2.1 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page