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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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