Skip to main content
https://github.com/facebookincubator/later/actions/workflows/ci.yml/badge.svg?branch=main https://img.shields.io/badge/code%20style-black-000000.svg

What is later?

later is a play on Async not happening now but at some point in the future. It was also an awesome name for a toolkit for writing AsyncIO applications. The batteries if you will for AsyncIO.

later is a collection of asyncio batteries created at Meta for supporting asyncio services.

later offers the following:
  • Unittesting
    • later.unittest.TestCase - An IsolatedAsyncioTestCase that insures tasks are not left orphaned and asyncio never calls its error handler.

    • later.unittest.mock.AsyncContextManager - A factory for easy mocking out AsyncContextManager

  • Tasks*
    • later.cancel - The correct way to cancel a Task/Future and insure it is awaited

    • later.as_task - Decorator to turn coroutines into Tasks.

    • later.Watcher - Watch tasks and ensure they don’t die - take action when they do. This is kinda like a asyncio.TaskGroup

    • later.herd - A Decorator that provides coroutines with basic thundering herd protection.

    • later.task.TaskSentinel - A Completed Future, a default value for a asyncio.Task argument so you don’t also have to accept None.

  • Synchronization
    • later.event.BiDirectionalEvent - two way asyncio.Event for Handshake style synchronization.

License

later is Apache licensed, as found in the LICENSE file

Metadata

Release files for later 26.8.1

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

Source distribution (sdist)

Source distribution for later 26.8.1
File Size Uploaded
later-26.8.1.tar.gz 31.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for later 26.8.1
File Interpreter ABI Platform
later-26.8.1-py3-none-any.whl Python 3 none any Details

Total release size: 75.6 kB

Release files / later-26.8.1.tar.gz

Download URL later-26.8.1.tar.gz
Size 31.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7e86d7586f098ceb38f629b97b22764bf62917c4f601dd459e71fc644c7e1c99
BLAKE2b-256 checksum
How to use checksums
55824453234fd3382d5456c223303249757a19a7addd7a44e19dc9c9ffa69220
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.34.2

Release files / later-26.8.1-py3-none-any.whl

Download URL later-26.8.1-py3-none-any.whl
Size 43.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ebd30ed02be18e5eaf654518d2a11329bb37508db3fce90a9ef578dcb705fdfb
BLAKE2b-256 checksum
How to use checksums
d1b37c0b5d34fc8d755364ffe0e542da71c9b975f58254a4ce4d34adea492db6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.34.2

Release history Release notifications | RSS feed

This release

26.8.1 This release

2 release files

26.6.1

2 release files

26.1.1

2 release files

25.8.1

2 release files

25.7.1

2 release files

23.3.1

2 release files

20.2.1

2 release files

20.2.0

2 release files

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