Skip to main content

Python implementation of numeraljs

Project description

# Pynumeral

![](https://img.shields.io/badge/python-3.6-brightgreen.svg) ![](https://img.shields.io/badge/python-3.7-brightgreen.svg) ![](https://img.shields.io/badge/code%20style-black-000000.svg) [![Build Status](https://travis-ci.org/optimdata/pynumeral.svg?branch=master)](https://travis-ci.org/optimdata/pynumeral)

pynumeral is a python implementation of number formatting using [numeraljs format](http://numeraljs.com/#format). This project was motivated when we had to render numbers backend-side (which is written in python) while keep using formats defined by users. It has been coded regardless of the javascript implementation. It has been tested on a fairly large amount of formats but there are not any guarantees that it covers all the cases. Since unit testing is pretty simple, contributions are more than welcome.

It only provides a simple api pynumeral.format(value, format).

## History

### 0.1.0 (2019-11-15)

  • First release on PyPI.

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

pynumeral-0.1.2.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

pynumeral-0.1.2-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file pynumeral-0.1.2.tar.gz.

File metadata

  • Download URL: pynumeral-0.1.2.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for pynumeral-0.1.2.tar.gz
Algorithm Hash digest
SHA256 7e620d7a761e8afee2a111768e511972dd9677a4c76ccae76a36dd91ff6a2de2
MD5 683330cb7d55b20497dbab9144d953e2
BLAKE2b-256 66d482e216f27f0d0a5743d39ef97f2ad4a7878d9af04c64c72c940404d4782b

See more details on using hashes here.

File details

Details for the file pynumeral-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pynumeral-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for pynumeral-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2748479841d7bcbfa8e605371a19a2706eb6e7bcefaed4a0fea4df4a2eb7f303
MD5 118873063337d9b0c14c20286cbd2d7e
BLAKE2b-256 eae356dac721be5be8af54c6ba8ad45cdc091f9cc37f6081be0c04945d835dcd

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