Skip to main content

No project description provided

Project description

Perform string manipulation operations using a single command.

Usage

run the following command
ring-string-manip --OPTIONS

OPTIONS that can be provided are:

config-path: path/to/config.yaml
file-path: path/to/file.txt

Config file format

Ensure your config/yaml file follows the following format:
pipline:
  - func1
  - func2
  - func3 

Default sequence is (if no path is provided)

pipeline:
  - remove_stop_words
  - coalesce_spaces
  - stair_case
  - append_date
  - prepend_number

Refer below for available functions.


Functions available

remove_stop_words

Removes stop_words from given string. Default stop_words are
stopwords:
  - A
  - The
  - An
  - Is
  - For
  - It
  - Our
  - We
  - They
  - Their

coalesce_spaces

Converts multiple spaces into one space

stair_case

Converts first letter upper, second lower, third upper and so on.

prepend_number

Adds numbers to the lines. Here, the line number is prepended.

append_date

Appends the date+time at the end of the string.

Project details


Download files

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

Source Distribution

rin_string_manip-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

rin_string_manip-0.1.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file rin_string_manip-0.1.0.tar.gz.

File metadata

  • Download URL: rin_string_manip-0.1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/5.19.0-46-generic

File hashes

Hashes for rin_string_manip-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a9636745baabe35e4ca1898dcc7bd537859e6c4bd09b00510d0247ec827ab51a
MD5 bdd7a5195ed6e6aad9d0f7f0f41f0e97
BLAKE2b-256 ceb64c929e4b4047cf048c23d2002650c5cf6afc4a00b488268128de3a3c9733

See more details on using hashes here.

File details

Details for the file rin_string_manip-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: rin_string_manip-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/5.19.0-46-generic

File hashes

Hashes for rin_string_manip-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ba8cf3c40f11ba22f307f6c9f82732dab91fc71aa865fd7d15c39806464b27fe
MD5 14141af00880b10ef2c321abc5085786
BLAKE2b-256 e0e4fec5293d2813770990840cb3434523e07fb596a938ddfb337fbb24cdff2e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page