Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

flowcoord

Latest version: v1.0.0

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
PyPI package Publisher: TahsinCr
0 Stars
0 Forks
1 Versions
Python Repo language

Scan summary

flowcoord was last scanned on 23 Nov 2026 at version 1.0.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: First and only release on 23 Nov 2026.
  • Findings: No rules fired in version 1.0.0.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
1.0.0 LATEST 23 Nov 2026 No rules fired

No rules fired in 1.0.0

Findings

Findings for v1.0.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.0.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

CI status PyPI version Python 3.10+ MIT License

English | Türkçe

FlowCoord

Repository · Changelog · MIT License

Execution primitives for Python applications that manage concurrent work, transient failures, and the lifetime of tasks and resources.

Contents

  • Getting started
  • Core concepts
  • Concurrency and task ownership
  • Operation metrics
  • Performance and the C extension
  • Development and license

Getting started

Install

Install from the project root with Python 3.10 or later.

python -m pip install .
Retry a transient failure

A retry policy bounds the number of attempts. The predicate below permits a timeout to be retried and lets other exceptions propagate.

from flowcoord import RetryPolicy

outcomes = iter([False, True])


def fetch() -> int:
    if not next(outcomes):
        raise TimeoutError("temporary")
    return 42


retry = RetryPolicy(max_attempts=2)
result = retry.run(fetch, should_retry=lambda error: isinstance(error, TimeoutError))
assert result == 42

Core concepts

Choose a keyed limiter to cap concurrency or rate, SingleFlight to share one in-flight operation, and task or resource scopes to manage cleanup. The library also provides scheduling, retries, cooldowns, and a circuit breaker.

Synchronous classes coordinate work across threads and can be imported without loading asyncio. Async* classes use asyncio and are loaded on demand. Retry, circuit breaker, and cooldown expose run(), call(), and wait() in both modes. Await these calls on async instances.

Thread Asyncio
KeyedConcurrencyLimiter, KeyedRateLimiter AsyncKeyedConcurrencyLimiter, AsyncKeyedRateLimiter
SingleFlight AsyncSingleFlight
RetryPolicy, CircuitBreaker, CooldownRegistry AsyncRetryPolicy, AsyncCircuitBreaker, AsyncCooldownRegistry
Scheduler AsyncScheduler
TaskScope, LatestTaskCoordinator AsyncTaskScope, AsyncLatestTaskCoordinator
ResourceScope AsyncResourceScope

AsyncLoopPortal lets a thread submit work to an asyncio loop. For thread-only background work, use TaskScope or BoundedWorkPool.

AsyncTaskScope(max_pending=128) and AsyncLoopPortal(max_pending=128) bound the number of accepted operations. A cancellation request keeps its slot until the operation has finished cleanup. AsyncScheduler(max_jobs=4096) limits one-shot and periodic jobs. Each parallel periodic job also has its own max_parallel limit. Submitting at capacity raises RuntimeError immediately.

Thread workers are suited to blocking I/O or native work that releases the GIL. On CPython with the GIL enabled, threads do not run CPU-bound Python code in parallel.

Concurrency and task ownership

Acquire keyed permits in a thread pool

Queued calls can be cancelled. A running Python callback completes cooperatively. If close(timeout=...) times out, the scope continues to track the remaining work.

from flowcoord import KeyedConcurrencyLimiter, TaskScope

limiter = KeyedConcurrencyLimiter[str](1)


def process(account: str) -> str:
    with limiter.acquire(account, timeout=1):
        return account


with TaskScope(max_workers=4, max_pending=16) as scope:
    first = scope.start(lambda: process("account-42"), shutdown="drain")
    second = scope.start(lambda: process("account-55"), shutdown="drain")
    assert (first.join(), second.join()) == ("account-42", "account-55")
Limit work by key

A keyed limiter allows unrelated keys to make progress independently. A task scope keeps ownership of the workers and drains them before leaving the context.

import asyncio

from flowcoord import AsyncKeyedConcurrencyLimiter, AsyncTaskScope


async def main() -> None:
    limiter = AsyncKeyedConcurrencyLimiter[str](1)

    async def process(account: str) -> str:
        async with limiter.acquire(account):
            await asyncio.sleep(0)
            return account

    try:
        async with AsyncTaskScope() as scope:
            task = scope.start(lambda: process("account-42"), shutdown="drain")
            assert await task.join() == "account-42"
    finally:
        await limiter.aclose()


asyncio.run(main())

Operation metrics

Inspect a work pool snapshot

Attach OperationStats where you need operational counters. A bounded pool lets you set separate limits for workers and pending work.

from flowcoord import BoundedWorkPool, OperationStats

metrics = OperationStats(max_operations=16)
with BoundedWorkPool(max_workers=2, max_pending=4, observer=metrics) as pool:
    result = pool.submit(abs, -42).result()
    assert result == 42

assert metrics.snapshot().operations

Performance and the C extension

The optional C extension reduces overhead when OperationStats frequently records and aggregates counters. Tasks, scheduling, and retries run in Python. Both execution modes share the same thread-safe metrics backend. The pure-Python metrics backend supports the same API. Run python -m benchmarks.benchmark_observability to measure the recording workload on your machine.

Development and license

python -m pip install -e ".[dev]"
python run_tests.py

Run python run_tests.py --native to rebuild and require the C extension for the tests.

This project is licensed under the MIT License.

Related projects

FlowEvent · FlowPipeline

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases flowcoord

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229