Skip to main content

cf-units

Units of measure as defined by the Climate and Forecast (CF) Metadata Conventions.

⚙️ CI ci-locks ci-manifest ci-tests ci-wheels pre-commit.ci status
💬 Community GH Discussions
📖 Documentation Documentation Status
📈 Health Coverage Status
✨ Meta code style - black isort Flake8 license - bds-3-clause Pixi Badge
📦 Package conda-forge downloads pypi pypi - python version DOI
🧰 Repo Commits since last release contributors Latest version

Table of Contents

Overview

Units of measure as required by the Climate and Forecast (CF) metadata conventions.

Provision of a wrapper class to support Unidata/UCAR UDUNITS-2 library, and the cftime calendar functionality.

Documentation can be found at https://cf-units.readthedocs.io/en/latest/.

Example

>>> from cf_units import Unit
>>> km = Unit('kilometers')
>>> m = Unit('meters')
>>> m.convert(1500, km)
1.5

Get in Touch

Credits, Copyright and License

cf-units is developed collaboratively under the SciTools umbrella.

A full list of code contributors ("cf-units contributors") can be found at https://github.com/SciTools/cf-units/graphs/contributors.

Code is just one of many ways of positively contributing to cf-units, please see our contributing guide for more details on how you can get involved.

cf-units is released under a BSD-3 license. See LICENSE for full terms.

The Met Office has made a significant contribution to the development, maintenance and support of this library. All Met Office contributions are copyright on behalf of the British Crown.

Release files for cf-units 3.3.1

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

Source distribution (sdist)

Source distribution for cf-units 3.3.1
File Size Uploaded
cf_units-3.3.1.tar.gz 311.6 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for cf-units 3.3.1
File
cf_units-3.3.1-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details
cf_units-3.3.1-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.11 abi3 Linux glibc 2.17+ x86-64 Details
cf_units-3.3.1-cp311-abi3-macosx_15_0_x86_64.whl CPython 3.11 abi3 macOS 15.0+ x86-64 Details
cf_units-3.3.1-cp311-abi3-macosx_15_0_arm64.whl CPython 3.11 abi3 macOS 15.0+ ARM64 Details

Total release size: 2.5 MB

Release files / cf_units-3.3.1.tar.gz

Download URL cf_units-3.3.1.tar.gz
Size 311.6 kB
Tags Source
SHA-256 checksum
How to use checksums
84339f582994ae32ca5c472075c1e603a89f6c6f5a96cc1031bb5da700a14f3a
BLAKE2b-256 checksum
How to use checksums
223027509046e69457605e6eefa4ad7866fcdb6182b1a4f9b9d8404a28e3eb50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / cf_units-3.3.1-cp311-abi3-win_amd64.whl

Download URL cf_units-3.3.1-cp311-abi3-win_amd64.whl
Size 537.5 kB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
566b3de7de87967e5fcec8f06adec60bb814705ba8d61fe440a17c0ead7fec14
BLAKE2b-256 checksum
How to use checksums
2e8580742e4607f2dcd55abbe63b7a251fea4322806d3263150572606537ff97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / cf_units-3.3.1-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL cf_units-3.3.1-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 737.3 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
e10abcd4e3e8cb628bc315835cf3efec8a19d31b31bfcdfb820ce32daa0adf79
BLAKE2b-256 checksum
How to use checksums
89f53cc05872868800d66ad1b54659449839276c447650088d500b69049a6edf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / cf_units-3.3.1-cp311-abi3-macosx_15_0_x86_64.whl

Download URL cf_units-3.3.1-cp311-abi3-macosx_15_0_x86_64.whl
Size 456.2 kB
Tags CPython 3.11 abi3 macOS 15.0+ x86-64
SHA-256 checksum
How to use checksums
fd893c45df1a1ac327d67884d0442edbf4cd5eb74198846dfacbbb7662fa7d2b
BLAKE2b-256 checksum
How to use checksums
793a03d6c413213d09dbc2fc6baca28595200130e669afbe616d34756bc8b7b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / cf_units-3.3.1-cp311-abi3-macosx_15_0_arm64.whl

Download URL cf_units-3.3.1-cp311-abi3-macosx_15_0_arm64.whl
Size 455.3 kB
Tags CPython 3.11 abi3 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
6f35616ab44607294920d712eb5edb3ce1c123e56e7cf1b3686fceb300cd2ef6
BLAKE2b-256 checksum
How to use checksums
2f1db3147f81febf89ea14697f48cc75474fb0cd35b113f554a0805677654caa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

3.3.1 This release

5 release files

3.3.0

13 release files

3.2.0

13 release files

3.1.1

10 release files

3.1.0

4 release files

3.0.1

1 release file

3.0.0

1 release file

2.1.5

1 release file

2.1.4

1 release file

2.1.3

1 release file

2.1.2

1 release file

2.1.1

1 release file

2.0.2

1 release file

2.0.1

1 release file

2.0.0

1 release file

1.2.0

1 release file

1.1.3

2 release files

1.1.2

2 release files

1.1.1

1 release file

1.0.0

1 release file

0.1.1

1 release file

0.1.0

1 release file

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