Skip to main content

Overview

Complex lines of code for manipulating strings are no more.

Table of Contents

Installation

Installation is pretty easy.

pip install stringops

Usage

Manipulation

Import the necessary extended class

from stringops.manipulation import Manipulation

Manipulate -> add

# suppose there is some string say 'value'

value = "Hey This is me"

# I want to add a '.' at the end

value = Manipulation(value)
value = value.add(".")

# I also want to add another sentence to it.

value = value.add("How are you", "!")

# print it
print(value)

Manipulate -> half

# lets take the above variable 'value'.

value = Manipulation("hey, this is me")

# I want to divide the string into half and i want to get the left side of the result.

left_half = value.half("left")
right_half = value.half("right")

print(left_half, right_half)

Manipulate -> split

# using the same varibale 'value'.

value = Manipulation("hey, this is me")

# suppose i want to split the string based on white spaces and
# get the value that is in the index place of 1

# can be done using
# >>> value.split(" ")[1]

index_one_value: str = value.split(" ", 1)

# all the values can also be retrieved
all_values: list[str] = value.split(" ", "all")

CONVERT THIS MANIPULATION OBJECT TO READ

value: Manipulation = Manipulation("hey, this is me")
value: Read = value.convert_to_read()

Read

Importing

from stringops.read import Read

Read - check substring

value = Read("hey, this is me")

if value.there("he"):
    return True
else:
    return False

Metadata

Release files for stringops 1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stringops 1.1
File Size Uploaded Provenance
stringops-1.1.tar.gz 4.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for stringops 1.1
File Interpreter ABI Platform
stringops-1.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.9 kB

Release files / stringops-1.1.tar.gz

Download URL stringops-1.1.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9ca7f5e8325fb343f8d408896c0510a5c2aebc5384b51d1d74d01cdb0e5fd8d3
BLAKE2b-256 checksum
How to use checksums
31f077250f5a1aec542556ed07ea4fee96a2687f4d63a39b5655081c00a08d87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.3

Release files / stringops-1.1-py3-none-any.whl

Download URL stringops-1.1-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cb299fb7d1ac2ab3e8d07be8d579bc8068577a7ed7a7b94e192d3b482f98accd
BLAKE2b-256 checksum
How to use checksums
41c70ac20c3ba5da23ddcf97f07c740dc1dff4beb478aa15d0de90939e7f1b7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.3

Security for stringops 1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page