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 (2018-09-17)

  • 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.0.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pynumeral-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 5cc0ddf0714dab2e58376a8c63f65cfbf84d662a0ff8fe5332aaeccc164e6c76
MD5 de57030d62c46a6dae21fb33fc8140a0
BLAKE2b-256 f38f625c0bc4c13f058ac8036cd4f83cdb90a2c7aab04917bdad64ed060d88e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pynumeral-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 35b12bd3db93624733975da55a23eb9d32a7e6db428395afd536892b368bd73a
MD5 34128e72d4c1edd465f6cc4e8902c76e
BLAKE2b-256 e630f2508657366e2d3c54c31053aec2e6e8533f01d66c570b8585ec52e7a64a

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