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.4.tar.gz (1.5 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.4-py3-none-any.whl (1.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: str2int-1.0.4.tar.gz
  • Upload date:
  • Size: 1.5 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.4.tar.gz
Algorithm Hash digest
SHA256 234847ca706e7e4b0e139117cf6d0170b4dc83dec07b764e74e3692e4a3e3975
MD5 091f7c402ce42bfa5a7cebb6fca17ef7
BLAKE2b-256 4d9bf1dd67c36e34d524088d2bbb07573657261e6775ebd6b0368496a803ea61

See more details on using hashes here.

File details

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

File metadata

  • Download URL: str2int-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 1.7 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ed01663727c04e82647cc99468dd40c82699f5ef60006980505249a94c16b0e5
MD5 af64974f845bee479199e78454c172d7
BLAKE2b-256 fd44f0d3bf372bbedeba7b490a03d439f93310b16bd3860ba813ce6fc1da1cc9

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