Skip to main content

AAndD_Reader

en ja

Information

Usage (Starting the Device Server)

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,  # Device control class
        router_cls=AanddReaderRouter,  # Router class
        config=Config,
        api_spec=aandd_reader_api_spec,
        device_kwargs={"port": Config.PORT},  # Constructor arguments for the device control 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

# Set the httpx logging level to WARNING or higher (suppress INFO messages).
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())

Author

  • Kengo NAKADA

Metadata

Release files for aandd-reader 0.2.17

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.17
File Size Uploaded Provenance
aandd_reader-0.2.17.tar.gz 28.6 kB With provenance Details

Built distribution (wheel)

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

Total release size: 68.8 kB

Release files / aandd_reader-0.2.17.tar.gz

Download URL aandd_reader-0.2.17.tar.gz
Size 28.6 kB
Tags Source
SHA-256 checksum
How to use checksums
783f6095bfa0d79f3b5dceade3e8e733cad888d24ad539efc32419c28f9f75f4
BLAKE2b-256 checksum
How to use checksums
f55061328d9834502db4e40d40c2f1a2c571b87cab4cc5fc7e521eaea25eb9d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 24, 2026.

Transparency log

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

Download URL aandd_reader-0.2.17-py3-none-any.whl
Size 40.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bc51decafad48c7f20ada7354eec525e0f6da7ed477da28fd97292a1dffd8566
BLAKE2b-256 checksum
How to use checksums
9362988b1db0876f796728c9b6a8b59f67df6cb172c4323d23dba73e0295cc25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 24, 2026.

Transparency log

Security for aandd-reader 0.2.17

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.17.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 24, 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.

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

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