Introduction

Documentation Status Discord Build Status Code Style: Black

Small subset of MetPy python module for CircuitPython.

Come without numpy, pint (units), matplotlib or other “big” library support.

As pint is not supported, the SI units are used.

Original project : MetPy

Dependencies

This library depends on:

Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle.

Usage Example

import umetpy.constants

print("List of all constants:\n")
for cst in dir(umetpy.constants):
    if cst[0] != "_":
        print("{:25s} = {:f}".format(cst, eval("{}.{}".format("umetpy.constants", cst))))

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.

Documentation

For information on building library documentation, please check out this guide.

Table of Contents

Simple test

Ensure your device works with this simple test.

examples/umetpy_simpletest.py
 1# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
 2# SPDX-FileCopyrightText: Copyright (c) 2021 Arofarn
 3#
 4# SPDX-License-Identifier: BSD-3-Clause
 5
 6import umetpy.constants as mpconsts
 7
 8# pylint: disable=eval-used
 9print("List of all constants:\n")
10for cst in dir(mpconsts):
11    if cst[0] != "_":
12        print("{:30s} = {:.12f}".format(cst, eval("{}.{}".format("mpconsts", cst))))

umetpy

Subset of MetPy Python module for CircuitPython

  • Author(s): Arofarn

Implementation Notes

Software and Dependencies:

Indices and tables