docs/api/units.rst
raw| 1 | Units |
| 2 | ===== |
| 3 | |
| 4 | .. module:: babel.units |
| 5 | |
| 6 | The unit module provides functionality to format measurement units for different |
| 7 | locales. |
| 8 | |
| 9 | .. autofunction:: format_unit |
| 10 | |
| 11 | .. autofunction:: format_compound_unit |
| 12 | |
| 13 | .. autofunction:: get_unit_name |
| 14 | |
| 15 | Exceptions |
| 16 | ---------- |
| 17 | |
| 18 | .. autoexception:: UnknownUnitError |
| 19 | :members: |