Skip to main content
https://travis-ci.org/coddingtonbear/python-measurement.svg?branch=master

Easily use and manipulate unit-aware measurement objects in Python.

django.contrib.gis.measure has these wonderful ‘Distance’ objects that can be used not only for storing a unit-aware distance measurement, but also for converting between different units and adding/subtracting these objects from one another.

This module not only provides those Distance and Area measurement objects, but also other measurements including:

  • Energy

  • Speed

  • Temperature

  • Time

  • Volume

  • Weight

Example:

>>> from measurement.measures import Weight
>>> weight_1 = Weight(lb=125)
>>> weight_2 = Weight(kg=40)
>>> added_together = weight_1 + weight_2
>>> added_together
Weight(lb=213.184976807)
>>> added_together.kg  # Maybe I actually need this value in kg?
96.699
  • Documentation for python-measurement is available an ReadTheDocs.

  • Please post issues on Github.

  • Test status available on Travis-CI.

Bitdeli badge

Release files for measurement 3.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for measurement 3.2.2
File Size Uploaded
measurement-3.2.2.tar.gz 12.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for measurement 3.2.2
File Interpreter ABI Platform
measurement-3.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 30.2 kB

Release files / measurement-3.2.2.tar.gz

Download URL measurement-3.2.2.tar.gz
Size 12.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a16fe5a8bd72f3682285e87a0abe880d647bcf6e3bf9cc727eeb261d6163c07e
BLAKE2b-256 checksum
How to use checksums
1b38b7ee4772e808071211fa99d3980789c97bdc89cd1df76bcd291ce84d2fe5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release files / measurement-3.2.2-py3-none-any.whl

Download URL measurement-3.2.2-py3-none-any.whl
Size 17.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9e51ed130bd077f3bfe563959e1b1d7d5f2f4a51055c94625418db47464ffd78
BLAKE2b-256 checksum
How to use checksums
f1867df529fde981b67105efbfa28950eb67e25f1e1bbbf132a57098b6c9f16e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release history Release notifications | RSS feed

This release

3.2.2 This release

2 release files

3.2.1

2 release files

3.2.0

1 release file

3.1.0

1 release file

3.0.0

1 release file

2.0.1

1 release file

1.8.0

1 release file

1.7.3

1 release file

1.7.2

1 release file

1.7.1

1 release file

1.7

1 release file

1.6

1 release file

1.5

1 release file

1.4

1 release file

1.3.8

1 release file

1.3.7

1 release file

1.3.5

1 release file

1.3.4

1 release file

1.3.3

1 release file

1.3.2

1 release file

1.3.1

1 release file

1.3

1 release file

1.2

1 release file

1.1

1 release file

1.0

1 release file

0.0.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page