Skip to main content
# Meshify Python API

A python library for interacting with the Meshify API

## Requirements

- [python3](https://www.python.org/downloads/)

## Installation

1. Install the python package

```Shell
pip3 install meshify
```

## Authentication

In order to retrieve data from Meshify, you must have a username and password to access the Meshify API. The username and password should be stored in environment variables MESHIFY_USERNAME nad MESHIFY_PASSWORD. If not stored, you will be prompted to enter username and password each time the script is run. You must also store or set MESHIFY_BASE_URL.

## Usage

### Help

Describes the usage of the function.

```Shell
meshify --help
Usage: meshify [OPTIONS] COMMAND [ARGS]...

Command Line Interface.

Options:
--help Show this message and exit.

Commands:
create_modbusmap Create modbusMap.p from channel csv file.
get_channel_csv Query the meshify API and create a CSV of the...
post_channel_csv Post values from a CSV to Meshify Channel...
print_channel_options Print channel options for use with the csv...
```

### Getting Channel CSV file

Generates a CSV file of the existing channels for a devicetype. This function will check to see if there is a modbusMap.p file in order to generate the full configuration of the channels (for M1 Data Collection).

```Shell
meshify get_channel_csv --help
Usage: meshify get_channel_csv [OPTIONS] DEVICE_TYPE_NAME

Query the meshify API and create a CSV of the current channels.

Options:
-o, --output-file TEXT Where to put the CSV of channels.
-m, --modbusmap-file TEXT The location of the modbusMap.p file
--help Show this message and exit.
```

### Post Channel CSV

This function will examine a CSV file and POST all the channels to Meshify.

```Shell
meshify post_channel_csv --help
Usage: meshify post_channel_csv [OPTIONS] DEVICE_TYPE_NAME CSV_FILE

Post values from a CSV to Meshify Channel API.

Options:
--help Show this message and exit.
```

### Print Channel Options

Helper function to print all posible options to enumerations within the CSV file.

```Shell
meshify print_channel_options --help
Usage: meshify print_channel_options [OPTIONS]

Print channel options for use with the csv files.

Options:
--help Show this message and exit.
```


## Contributors

- [Patrick McDonagh](https://github.com/patrickjmcd) - Owner

Metadata

Release files for meshify 0.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 meshify 0.2.2
File Size Uploaded Provenance
meshify-0.2.2.tar.gz 6.0 kB Without provenance Details

Release files / meshify-0.2.2.tar.gz

Download URL meshify-0.2.2.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a5db3227aadee33300cc3f48c71205456428e54cc6be7cabb6d8fb1787efc291
BLAKE2b-256 checksum
How to use checksums
68d7739092b6320607b0e7ad9efeb564ea63a19d31e533bf2453914dc2bdc665
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for meshify 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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