Skip to main content

MySSIX Thing SDK for Python

PyPI version

이 문서에서는 MySSIX IoT Platform의 Thing Python SDK를 소개합니다. Thing은 MySSIX IoT Platform에서 사용되는 기능의 단위인 Service를 제공하는 제공자입니다. 이 문서를 통해 Thing을 실행하고 개발하는 방법에 대해 알 수 있습니다.

MySSIX IoT Platform에서 Thing은 크게 2가지로 나뉩니다.

  1. Big Thing
  2. Small Thing

이 문서에서는 Python으로 작성된 Big Thing 어플리케이션을 실행하고 개발하는 방법에 대해 설명합니다. Small Thing에 대해서는 Small Thing을 참고해주세요.

Getting Started

Prerequisites

해당 SDK를 사용하기 위해서는 다음과 같은 요구사항을 만족해야합니다.

  • Python 3.7+

Install from PyPI

pip3 install big-thing-py

Install from source

git clone https://github.com/sopiot/big-thing-py.git
cd big-thing-py
pip3 install .
# 만약 Thing SDK를 개발하고자 한다면 다음의 명령어를 사용합니다.
# -e 옵션을 사용하면 레포지토리의 코드 변경사항이 바로 Thing 동작에 반영됩니다.
# pip3 install -e .

Usage

예제를 실행하기 전에 MySSIX IoT Platform의 Middleware를 먼저 실행해야 합니다.

Middleware Docker 이미지 다운로드 & 실행

docker pull sopiot/sopiot_middleware_ubuntu1804_x64
docker run -it -d --name sopiot_middleware -p 1883:1883 -p 1884:1884 -p 8883:8883 -p 8884:8884 -p 58132:58132 sopiot/sopiot_middleware_ubuntu1804_x64

이후, 다음의 명령어를 통해 기본 예제를 실행할 수 있습니다.

python3 samples/big_thing/basic_feature_big_thing/run.py

만약 가상환경을 생성하여 예제를 실행하려는 경우 pipenv를 사용할 수 있습니다. 우선, 다음 명령어로 pipenv를 설치합니다.

pip install pipenv --upgrade

pipenv 가상환경을 생성 및 레포지토리로부터 패키지를 설치합니다.

pipenv install -e .

그리고, 다음의 명령어를 통해 기본 예제를 실행할 수 있습니다.

pipenv run python samples/big_thing/basic_feature_big_thing/run.py

Thing이 Middleware에 등록되면 Thing의 Service를 Scenario를 통해 사용할 수 있습니다. Scenario는 MySSIX IoT Platform의 Web Client App을 통해 조작 및 생성할 수 있습니다. -> 따로 Documents 폴더를 생성하여 Web Client App와 관련한 README를 작성해야하는 것이 좋아보임.

Samples

Samples README

Contributions

License

Metadata

Release files for big-thing-py 0.4.1.5.post16

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

Source distribution (sdist)

Source distribution for big-thing-py 0.4.1.5.post16
File Size Uploaded Provenance Actions
big_thing_py-0.4.1.5.post16.tar.gz 57.1 kB Without provenance Details for big_thing_py-0.4.1.5.post16.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for big-thing-py 0.4.1.5.post16
File Interpreter ABI Platform Actions
big_thing_py-0.4.1.5.post16-py3-none-any.whl Python 3 none any Details for big_thing_py-0.4.1.5.post16-py3-none-any.whl

Total release size: 125.7 kB

Release files / big_thing_py-0.4.1.5.post16.tar.gz

Download URL big_thing_py-0.4.1.5.post16.tar.gz
Size 57.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c18b1d96be0eb0dec5a5825c1f5e4ed1315d0b1d3834ca2fdfb5d0fa25dde559
BLAKE2b-256 checksum
How to use checksums
f63f2b3c83dc6177a3d78d22edda4ecff9b3836e14a4b4cd740a21757fee41e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-39-generic

Release files / big_thing_py-0.4.1.5.post16-py3-none-any.whl

Download URL big_thing_py-0.4.1.5.post16-py3-none-any.whl
Size 68.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4b4dffe671e4368eff8f1467588c5b4e7d5bb88534875a171ce62be975d6543b
BLAKE2b-256 checksum
How to use checksums
8b4015bd2d818503606258923d0d5b967bf030d5e2ff99ebcdd51e8056482e89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-39-generic

Security for big-thing-py 0.4.1.5.post16

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
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