Skip to main content
Pre-release

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

English | 한국어

pythonx-concurrent

Comfortable concurrency for Python apps on Kotlin Multiplatform: asyncio and Kotlin coroutines, together.

License: Apache-2.0 Status

Why

Python apps that run on Android, iOS and desktop through python-multiplatform meet two worlds of concurrency. Python has asyncio. Kotlin has coroutines, and on Android you will use them. pythonx-concurrent is a pythonx library, Python language extensions in the spirit of androidx and kotlinx. It joins the two worlds and gives Python the structure kotlinx.coroutines gives Kotlin.

What it will do

  • Scopes and jobs, spelled like asyncio.TaskGroup, named like Kotlin: launch, Job, with_context, with_timeout.
  • Dispatchers: Main, IO and Default, mapped to each platform's threads.
  • Both-way bridge: Python awaits Kotlin suspend functions and Flow. Kotlin awaits Python coroutines. Cancellation flows both ways.
  • Goroutine-style scheduling of many lightweight tasks over a few threads, parallel on free-threaded CPython where that exists.
from pythonx.concurrent import Scope, Dispatchers, with_context

async def load(user_id):
    async with Scope() as s:
        profile = s.defer(fetch_profile, user_id)
        data = await with_context(Dispatchers.IO, read_cache, user_id)
    return profile.result(), data

This example shows the planned spelling. Nothing is built yet.

Install

Not published yet. When it is:

uv add --prerelease allow pythonx-concurrent

Status

Spec stage. There is no code. The intent, the behaviour contract and the research are written, and every behaviour is planned. Several features wait on python-multiplatform; each is tracked as an issue there.

License

Apache-2.0.

Metadata

Release files for pythonx-concurrent 0.0.1a1

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

Source distribution (sdist)

Source distribution for pythonx-concurrent 0.0.1a1
File Size Uploaded Provenance
pythonx_concurrent-0.0.1a1.tar.gz 6.8 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pythonx-concurrent 0.0.1a1
File Interpreter ABI Platform
pythonx_concurrent-0.0.1a1-py3-none-any.whl Python 3 none any Details

Total release size: 13.8 kB

Release files / pythonx_concurrent-0.0.1a1.tar.gz

Download URL pythonx_concurrent-0.0.1a1.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
62f975a0b0d8a42bd21be9a0c9d6d5db878492761e6dd20aa03cfdb040d6fdbc
BLAKE2b-256 checksum
How to use checksums
89d4767e968ad96569575f31f630c74f03eadd9777557c1379342f00a53e801e
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 3, 2026.

Transparency log

Release files / pythonx_concurrent-0.0.1a1-py3-none-any.whl

Download URL pythonx_concurrent-0.0.1a1-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae5a1d9560d6157e9c5a0e788ed30e17bc41b84814f8b5b204356569abab00f9
BLAKE2b-256 checksum
How to use checksums
45988a5650a8cad200c526b439ec04d8f3ab02543dd7c28a92c06f4cbcee6ddc
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 3, 2026.

Transparency log

Security for pythonx-concurrent 0.0.1a1

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 pythonx_concurrent-0.0.1a1.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 3, 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.

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