Skip to main content

RCER IoT Client Package

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:

from rcer_iot_client_pkg import EpiiUpdateThiesConfig
import asyncio

async def update_thies_data():
    config = EpiiUpdateThiesConfig(
        ftp_port=FTP_PORT,
        ftp_host=FTP_HOST,
        ftp_user=FTP_USER,
        ftp_password=FTP_PASSWORD,
        sharepoint_client_id=SHAREPOINT_CLIENT_ID,
        sharepoint_client_secret=SHAREPOINT_CLIENT_SECRET,
        sharepoint_tenant_id=SHAREPOINT_TENANT_ID,
        sharepoint_tenant_name=SHAREPOINT_TENANT_NAME,
        sharepoint_site_name=SHAREPOINT_SITE_NAME
    )
    response = await api_client.update_thies_data(config)
    return response

asyncio.run(update_thies_data())

Notes:

  • Store sensitive data like FTP_PASSWORD, FTP_USER, and SharePoint credentials securely. Use environment variables or a secrets management tool to avoid hardcoding sensitive information in your codebase.

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.

Release files for rcer-iot-client-pkg 0.6.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 rcer-iot-client-pkg 0.6.1
File Size Uploaded
rcer_iot_client_pkg-0.6.1.tar.gz 11.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rcer-iot-client-pkg 0.6.1
File Interpreter ABI Platform
rcer_iot_client_pkg-0.6.1-py3-none-any.whl Python 3 none any Details

Total release size: 32.4 kB

Release files / rcer_iot_client_pkg-0.6.1.tar.gz

Download URL rcer_iot_client_pkg-0.6.1.tar.gz
Size 11.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c4d840d5baef46001cbc07aadc8b9cbe9b0fbdbf7044cb2656e6771e051387b6
BLAKE2b-256 checksum
How to use checksums
d8c1fb48e66057d12af083d3070af0999bfef825900cc47fe739c0dce7bae862
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.8

Release files / rcer_iot_client_pkg-0.6.1-py3-none-any.whl

Download URL rcer_iot_client_pkg-0.6.1-py3-none-any.whl
Size 21.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
818f4d450ac6487ba45762179aee57387302a43b5c8011abbdeb8e1b4e83c3ab
BLAKE2b-256 checksum
How to use checksums
cc03116133acfbf5069e5318554634fe3eac38f6cbbb056ae7b6fc9ee7914c8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.8

Release history Release notifications | RSS feed

This release

0.6.1 This release

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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