Skip to main content

A python module that converts strings in the metric scientific notation to numerical data types.

Project description

PyScientificStringParser

A python module that converts strings in the metric scientific notation to numerical data types.

This package is available at PyPI.

It is a very simple module that contains one function, made for a specific application, but i think that it can be useful for other people since i couldn't find anywhere a similar package.

Usage

You can import the module by calling the function parse_str. The input is a string that contains the number in the metric scientific notation, like 1u -> 1e-6.

Example:

parse_str('1.2k')

Outuput: 1.2e3

It is compatible with all the metric system prefixes.

Installation

You can install this package by calling pip install scistringparser.

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

scistringparser-0.1.5.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file scistringparser-0.1.5.tar.gz.

File metadata

  • Download URL: scistringparser-0.1.5.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.7

File hashes

Hashes for scistringparser-0.1.5.tar.gz
Algorithm Hash digest
SHA256 87e916d2a0174fed160a6d913b58a7e9410875c7725a9eac02c93a8ce9660e17
MD5 99f8c7cf31fb2ab187a9ed3965ec1d11
BLAKE2b-256 5b75dc35fe74bb16c48e4a57b8e4d2eaf27ba23040359d2396eb636e401441b0

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