Skip to main content

AAndD_Reader

ohara-lab-su/aandd_reader

info

使い方(デバイスサーバーの起動)

from aandd_reader.config import Config
from aandd_reader.aandd_reader import AanddReader
from aandd_reader.server_fastapi.routers import AanddReaderRouter
from aandd_reader.server_fastapi.spec_ctrl import aandd_reader_api_spec

from ese774_frame.api_server import FastApiServer
from x_logger.x_logger import XLogger


if __name__ == "__main__":
    Config.load_yaml("config_server.yaml")
    logger = XLogger(
        log_level="debug",
        logger_name=Config.SERVER_LOGGER_NAME,
        log_mode="rotate",
        # log_mode="file",
        log_name="c:/opt/log/aandd.log",
    )
    logger.info(f"log_mode = {logger.log_mode}")
    logger.info(f"log_name = {logger.log_name}")
    logger.info(f"PORT = {Config.PORT}")

    server = FastApiServer(
        device_cls=AanddReader,  # 制御クラス
        router_cls=AanddReaderRouter,  # routerクラス
        config=Config,
        api_spec=aandd_reader_api_spec,
        device_kwargs={"port": Config.PORT},  # 制御Classのコンストラクタ引数)
        logger=logger,
        logger_name=Config.SERVER_LOGGER_NAME,  # LOGGER_NAME
        lifespan_msg_prefix="AANDD",
    )
    server.run(host=Config.SERVER_IP, port=Config.SERVER_PORT)

Client

import asyncio
import logging

# httpx のログを WARNING レベル以上にする(INFO を抑制)
logging.getLogger("httpx").setLevel(logging.WARNING)

from aandd_reader.config import Config
from aandd_reader.server_fastapi.clients import AsyncAanddReaderClient
from x_logger import XLogger

async def main():
    Config.load_yaml("config_server.yaml")
    
    logger = XLogger(log_level="info", logger_name=Config.CLIENT_LOGGER_NAME)
    client = AsyncAanddReaderClient(config=Config, logger=logger)
    
    ret = await client.meas()
    logger.info(ret)

if __name__ == '__main__':
    asyncio.run(main())

作者

  • Kengo NAKADA

Metadata

Release files for aandd-reader 0.2.15

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

Source distribution (sdist)

Source distribution for aandd-reader 0.2.15
File Size Uploaded Provenance
aandd_reader-0.2.15.tar.gz 28.5 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for aandd-reader 0.2.15
File Interpreter ABI Platform
aandd_reader-0.2.15-py3-none-any.whl Python 3 none any Details

Total release size: 68.7 kB

Release files / aandd_reader-0.2.15.tar.gz

Download URL aandd_reader-0.2.15.tar.gz
Size 28.5 kB
Tags Source
SHA-256 checksum
How to use checksums
fde163c27e799e2c1ec68714a0600c5e0e8fcc1b6cf2dde5dd0d888e0d3bba04
BLAKE2b-256 checksum
How to use checksums
0d6b425a01702064df4fd131c31e6374806be2c490949bf4eab2d8c7dc9b07a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

Release files / aandd_reader-0.2.15-py3-none-any.whl

Download URL aandd_reader-0.2.15-py3-none-any.whl
Size 40.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0ceffdbe917ee1a6f751054898c0af657aa9a4fd3e1042e36d02c41a17a8e514
BLAKE2b-256 checksum
How to use checksums
8566eaf3a3bfcfbfbb5ab7246b018c532d159221fa1c6d9454f5b9a60e3cbc71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

Security for aandd-reader 0.2.15

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for aandd_reader-0.2.15.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.2.15 This release

2 release files Full provenance

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