Skip to main content

A client library for IoT projects in the RCER initiative

Project description

RCER IoT Client Library | rcer_iot_client_pkg

Installation

You can find the package on PyPI. This library provides a robust and efficient client for interacting with IoT devices.

pip install rcer_iot_client_pkg

Usage

Initialize the EPii API Client

To start using the library, you need to create an EpiiAPI client instance:

from rcer_iot_client_pkg import EpiiAPI

api_client = EpiiAPI()

Update THIES Data Logger Files

The library provides a method to synchronize THIES Data Logger files with the RCER SharePoint client. This method updates the folder containing binary files with meteorological data:

import asyncio

async def update_thies_data():
    response = await api_client.update_thies_data(
        ftp_port=PORT,
        ftp_host=LOCAL_HOST,
        ftp_password=PASSWORD,
        ftp_user=USER
    )
    return response

asyncio.run(update_thies_data())

Notes:

  • Store sensitive data like PASSWORD and USER securely, e.g., in environment variables or a secrets file.
  • Ensure asyncio is installed to run concurrent code with EpiiAPI methods.

Development

This project includes a Makefile to simplify common tasks. Below are the available commands:

Install Basic Dependencies

To install the basic dependencies required for the project, run the following command:

make install-deps

This will ensure that all necessary libraries and tools are installed for the project to function properly.

Install Development Requirements

For setting up a development environment with additional tools and libraries, execute:

make dev

This command installs all the dependencies needed for development, including testing and linting tools.

Run Tests

To verify that the code is functioning as expected, you can run the test suite using:

make test

This will execute all the tests in the project and provide a summary of the results.

Lint the Code

To ensure that the code adheres to the project's style guidelines and is free of common errors, run:

make lint

This command checks the codebase for linting issues and outputs any problems that need to be addressed.

Contributing

If you're interested in contributing to this project, please follow the contributing guidelines. Contributions are welcome and appreciated!

Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.

License

rcer_iot_client_pkg was created by Pedro Pablo Zavala Tejos. It is licensed under the terms of the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rcer_iot_client_pkg-0.5.0.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rcer_iot_client_pkg-0.5.0-py3-none-any.whl (23.6 kB view details)

Uploaded Python 3

File details

Details for the file rcer_iot_client_pkg-0.5.0.tar.gz.

File metadata

  • Download URL: rcer_iot_client_pkg-0.5.0.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.8

File hashes

Hashes for rcer_iot_client_pkg-0.5.0.tar.gz
Algorithm Hash digest
SHA256 a678e815747ee02d173556c30cc81e78c7335ee207d342ae06b030fb7601323e
MD5 8be9887f9390a98f74863128954d48c5
BLAKE2b-256 755fa27f51e317ee26f1f21556979e342685502ad016a06b45578103e1796295

See more details on using hashes here.

File details

Details for the file rcer_iot_client_pkg-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for rcer_iot_client_pkg-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1b40090b789f6132eff13a0d0b6749f53c2490a620d1afad4b74a91929e3cafe
MD5 2255a3749d85f7560e2b684d3a45271f
BLAKE2b-256 458dc97cdcf4d618200ddc4335c05cae458295930485a9ba2e05c863290ee4a5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page