Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Atomic-Lines

Intro

A toy project, wrapping asynchronous one byte readers into a sane(?) readline semantic. If no end of line is found the request is considered timedout, and the data is kept in the buffer, otherwise lines are returned (without the EOL character) for further processing.

The main goal is to help wrap i.e. serial access or other apis which consume data if readline times out.

For more userfriendly documentation see https://maltevesper.github.io/atomiclines/.

Logging configuration

Logging can be configured by pointing the environment variable ATOMICLINES_LOG_CONFIG to a yaml file.

ATOMICLINES_LOG_CONFIG=logging_configuration.yaml pytest

The yaml file, should contain a logging dict. Example file:

version: 1
disable_existing_loggers: true

formatters:
    standard:
        format: "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
    error:
        format: "%(levelname)s <PID %(process)d:%(processName)s> %(name)s.%(funcName)s(): %(message)s"

handlers:
    console:
        class: logging.StreamHandler
        level: DEBUG
        formatter: standard
        stream: ext://sys.stdout

loggers:
    atomiclines:
        level: INFO
        handlers: [console]
        propogate: no

For Developers

Bash Completion for pytest

pip install argcomplete # is a dev dependency too
activate-global-python-argcomplete

Metadata

Release files for atomic-lines 0.1.1rc6

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

Source distribution (sdist)

Source distribution for atomic-lines 0.1.1rc6
File Size Uploaded
atomic_lines-0.1.1rc6.tar.gz 17.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for atomic-lines 0.1.1rc6
File Interpreter ABI Platform
atomic_lines-0.1.1rc6-py3-none-any.whl Python 3 none any Details

Total release size: 29.2 kB

Release files / atomic_lines-0.1.1rc6.tar.gz

Download URL atomic_lines-0.1.1rc6.tar.gz
Size 17.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4940bf07eee586669ed5450e12d0b87f9025977f6697c87b97106153072371ec
BLAKE2b-256 checksum
How to use checksums
e5f63cfe21f0ab94f50ccc8d9575ef02b8e184f2bd209cafae87e5aca3233d25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / atomic_lines-0.1.1rc6-py3-none-any.whl

Download URL atomic_lines-0.1.1rc6-py3-none-any.whl
Size 11.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a0e66a8a81c20e02ab83cb7369e2164f68ce5e343ea6b2ef483ec39305eba23d
BLAKE2b-256 checksum
How to use checksums
cd2893cd9a1a455f32aca3e60e869ce6a823bb3a4a74ebdc63f5c4f994c93e6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12
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