semvec/pypi-packages huggingface dataset:
unit-converter 1.1.0
Package for converting quantities in different unit.
License: MIT
Keywords: converter units sciences


**************
Unit Converter
**************

Description
===========

Package for converting quantities into different units.


Basic usages
============

>>> from unit_converter.converter import convert, converts
>>>
>>> convert('2.78 daN*mm^2', 'mN*µm^2')
>>> Decimal('2.78E+10')
>>>
>>> converts('2.78 daN*mm^2', 'mN*µm^2')
>>> '2.78E+10'
>>>
>>> converts('78 min', 'h')
>>> '1.3'
>>>
>>> converts('52°C', '°F')
>>> '125.6'
>>>
>>> converts('120 km*h^-1', 'mile*h^-1')
>>> '74.56454306848007635409210214'



Note: It is necessary to provide the value as a string. Indeed, the high precision of conversion (1E-27) is possible only with string, by using Decimal object in replacement of float object.

Contributing
============
Please submit and comment on bug reports and feature requests.

To submit a patch:

1. Fork it (https://bitbucket.org/negetem/unit_converter/fork).
2. Create your feature branch (*git checkout -b my-new-feature*).
3. Make changes.
4. Commit your changes (*git commit -am 'Add some feature'*).
5. Push to the branch (*git push origin my-new-feature*).
6. Create a new Pull Request.

License
=======
This app is licensed under the MIT license.

Warranty
========
This software is provided "as is" and without any express or
implied warranties, including, without limitation, the implied
warranties of merchantibility and fitness for a particular
purpose.


***************
Release History
***************

0.0.1 (2016-09-21)
==================
- Initial release

0.1.1 (2016-09-27)
==================

**Improvements**

- Added support for combined units like '**kg*m*s^-2**'

1.0.0 (2018-01-16)
==================

**Improvements**

- Big code refactoring
- Added handy functions convert and converts (return a string)

1.1.0 (2018-01-16)
==================

**Improvements**

- Add handling french format number 78,6 instead of 78.6

**Tests**
- Check if all prefix + unit are unique
randpy 0.1.1
Tiny set of utilities to generate random data
License: MIT
Requires Python: >=2.6, !=3.0.*, !=3.1.*, !=3.2.*, <4
Keywords: testing data random

=============
randpy
=============

.. image:: https://travis-ci.org/mattshaffer11/randpy.svg?branch=master
    :target: https://travis-ci.org/mattshaffer11/randpy
    :alt: Travis CI

.. image:: https://coveralls.io/repos/mattshaffer11/randpy/badge.svg?branch=master&service=github
    :target: https://coveralls.io/github/mattshaffer11/randpy?branch=master
    :alt: Coverage

randpy is a tiny set of utilities to generate random data such as strings, numbers, and dates.


Basic Data
---------------

.. code-block:: python

    >>> import randpy

    >>> randpy.random_boolean()
    True
    >>> randpy.random_boolean()
    False

    >>> randpy.random_integer(minimum=0, maximum=10)
    0
    >>> randpy.random_integer(minimum=0, maximum=10)
    10
    >>> randpy.random_integer(minimum=0, maximum=10)
    3

    >>> randpy.random_decimal(minimum=0, maximum=1)
    0.52
    >>> randpy.random_decimal(minimum=0, maximum=5, digits=4)
    1.9944

    >>> randpy.random_choice([1, 2, 3, 4])
    1

    >>> randpy.random_choices([1, 2, 3, 4], 2)
    [4, 4]
    >>> randpy.random_choices([1, 2, 3, 4], 3)
    [3, 1, 1]

Generators
---------------

.. code-block:: python

    >>> from randpy import generators

    >>> generators.phone_number()
    '2776904659'
    >>> generators.phone_number(international_code=True)
    '12776904659'

    >>> randpy.address()
    '865 Elm'
    >>> randpy.address()
    '652 S Blueridge Pl.'
    >>> randpy.address()
    '194 Country Ln.'

    >>> generators.email()
    'frank@aol.org'
    >>> generators.email()
    'kiara@aol.com'

    >>> generators.city()
    'Vancouver'
    >>> generators.city()
    'Chicago'

    >>> generators.state()
    'Rhode Island'
    >>> generators.state(abbrev=True)
    'RI'

    >>> generators.province()
    'Alberta'
    >>> generators.province(abbrev=True)
    'AB'

    >>> generators.lorem_ipsum()
    'Lorem ipsum dolor sit amet...'

    >>> generators.first_name()
    'Lucia'

    >>> generators.last_name()
    'Rossi'

    >>> generators.full_name()
    'Theo Santos'

    >>> generators.url()
    'https://www.wordpress.org'