Skip to main content

A simple module to suck intagers out of strings

Project description

Str2Int

My first pip module.

Installation

Use the package manager pip to install Str2Int.

pip install str2int

Usage

from .str2int import str2int
#Just random string of letters and numbers
randomstuff = "I2In3h22j3 -2"
#Use str2int(string) to output only numbers
numonly = str2int(randomstuff)
print(numonly) #['2', '3', '22', '3', '-2']

What's it about

Well it's just there to take away everything but numbers from a string

License

MIT

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

str2int-1.0.2.tar.gz (1.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

str2int-1.0.2-py3-none-any.whl (1.5 kB view details)

Uploaded Python 3

File details

Details for the file str2int-1.0.2.tar.gz.

File metadata

  • Download URL: str2int-1.0.2.tar.gz
  • Upload date:
  • Size: 1.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for str2int-1.0.2.tar.gz
Algorithm Hash digest
SHA256 38001b4ae84b10bccec09f0e712ba29d4d8ae4097ea4a24b692ee2c95fed2f9b
MD5 811b2f56efe9a82a4e7bb88e8bf2cd2d
BLAKE2b-256 1c5172c4671a1cfbd686ffa804ccd379592cc25ff70b474e38bc5030c618848d

See more details on using hashes here.

File details

Details for the file str2int-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: str2int-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 1.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for str2int-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 61b5b9340f07c7cc67a6bd148b80d53f2312b7ff4213d7bccd1ecd9dbb6df9e2
MD5 0258f9b16bbc952dba9b850a8647fc3a
BLAKE2b-256 c5e60bfe660f41afae7a092f00aa00a45c61771a64fc468ac17355d029386ce2

See more details on using hashes here.

Supported by

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