Skip to main content

No project description provided

Project description

Perform string manipulation operations using a single command.

Usage

run the following command
rin_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. Stop words are taken from stopwords.yaml

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.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

rin_string_manip-0.1.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rin_string_manip-0.1.1.tar.gz
  • Upload date:
  • Size: 3.1 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.1.tar.gz
Algorithm Hash digest
SHA256 1e80b76319a79a36120f54104f109ba41920859f4d4338905714a86fd844fa17
MD5 d73e057e8257e063d6b76ebd4516f9d4
BLAKE2b-256 7832bc0a5d88b9aec0e5bd291a8966f96e88bdc450ba5ec078d32d3b19d582bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rin_string_manip-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7b30e8775f3942c8b477f7688e7bc4981b33412fb59e9134b05c8a76ea5c10ab
MD5 18db039a9a7491479c3d737a31bbb938
BLAKE2b-256 894d7005ac328e537c0e96b0af3a11ec9a9037d957d8224c27f52a94a216247f

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