├── .github ├── pull_request_template.md └── workflows │ ├── check.yml │ ├── ci.yml │ ├── codeql.yml │ └── publish.yml ├── .gitignore ├── .pre-commit-config.yaml ├── LICENSE ├── Makefile ├── README.md ├── conftest.py ├── pyproject.toml ├── scripts └── benchmark.py ├── src └── synchronicity │ ├── __init__.py │ ├── annotations.py │ ├── async_utils.py │ ├── async_wrap.py │ ├── callback.py │ ├── combined_types.py │ ├── exceptions.py │ ├── interface.py │ ├── overload_tracking.py │ ├── py.typed │ ├── synchronizer.py │ └── type_stubs.py └── test ├── __init__.py ├── async_wrap_test.py ├── asynccontextmanager_test.py ├── callback_test.py ├── conftest.py ├── docstring_test.py ├── exception_test.py ├── fork_test.py ├── generators_test.py ├── getattr_test.py ├── gevent_test.py ├── helper_methods_test.py ├── inspect_test.py ├── nowrap_test.py ├── pickle_test.py ├── shutdown_test.py ├── support ├── _forker.py ├── _gevent.py ├── _shutdown.py ├── _shutdown_async_run.py └── _shutdown_ctx_mgr.py ├── synchronicity_test.py ├── threading_test.py ├── tracebacks_test.py ├── translate_test.py ├── type_stub_e2e_test.py ├── type_stub_helpers ├── .gitignore ├── __init__.py ├── e2e_example_export.py ├── e2e_example_impl.py ├── e2e_example_type_assertions.py └── some_mod.py ├── type_stub_test.py ├── type_stub_translation_test.py └── warnings_test.py /.github/pull_request_template.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/.github/pull_request_template.md -------------------------------------------------------------------------------- /.github/workflows/check.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/.github/workflows/check.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/codeql.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/.github/workflows/codeql.yml -------------------------------------------------------------------------------- /.github/workflows/publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/.github/workflows/publish.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/.gitignore -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/README.md -------------------------------------------------------------------------------- /conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/conftest.py -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/pyproject.toml -------------------------------------------------------------------------------- /scripts/benchmark.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/scripts/benchmark.py -------------------------------------------------------------------------------- /src/synchronicity/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/src/synchronicity/__init__.py -------------------------------------------------------------------------------- /src/synchronicity/annotations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/src/synchronicity/annotations.py -------------------------------------------------------------------------------- /src/synchronicity/async_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/src/synchronicity/async_utils.py -------------------------------------------------------------------------------- /src/synchronicity/async_wrap.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/src/synchronicity/async_wrap.py -------------------------------------------------------------------------------- /src/synchronicity/callback.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/src/synchronicity/callback.py -------------------------------------------------------------------------------- /src/synchronicity/combined_types.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/src/synchronicity/combined_types.py -------------------------------------------------------------------------------- /src/synchronicity/exceptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/src/synchronicity/exceptions.py -------------------------------------------------------------------------------- /src/synchronicity/interface.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/src/synchronicity/interface.py -------------------------------------------------------------------------------- /src/synchronicity/overload_tracking.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/src/synchronicity/overload_tracking.py -------------------------------------------------------------------------------- /src/synchronicity/py.typed: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/synchronicity/synchronizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/src/synchronicity/synchronizer.py -------------------------------------------------------------------------------- /src/synchronicity/type_stubs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/src/synchronicity/type_stubs.py -------------------------------------------------------------------------------- /test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/async_wrap_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/test/async_wrap_test.py -------------------------------------------------------------------------------- /test/asynccontextmanager_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/test/asynccontextmanager_test.py -------------------------------------------------------------------------------- /test/callback_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/test/callback_test.py -------------------------------------------------------------------------------- /test/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/test/conftest.py -------------------------------------------------------------------------------- /test/docstring_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/test/docstring_test.py -------------------------------------------------------------------------------- /test/exception_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/test/exception_test.py -------------------------------------------------------------------------------- /test/fork_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/test/fork_test.py -------------------------------------------------------------------------------- /test/generators_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/test/generators_test.py -------------------------------------------------------------------------------- /test/getattr_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/test/getattr_test.py -------------------------------------------------------------------------------- /test/gevent_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/test/gevent_test.py -------------------------------------------------------------------------------- /test/helper_methods_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/test/helper_methods_test.py -------------------------------------------------------------------------------- /test/inspect_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/test/inspect_test.py -------------------------------------------------------------------------------- /test/nowrap_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/test/nowrap_test.py -------------------------------------------------------------------------------- /test/pickle_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/test/pickle_test.py -------------------------------------------------------------------------------- /test/shutdown_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/test/shutdown_test.py -------------------------------------------------------------------------------- /test/support/_forker.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/test/support/_forker.py -------------------------------------------------------------------------------- /test/support/_gevent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/test/support/_gevent.py -------------------------------------------------------------------------------- /test/support/_shutdown.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/test/support/_shutdown.py -------------------------------------------------------------------------------- /test/support/_shutdown_async_run.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/test/support/_shutdown_async_run.py -------------------------------------------------------------------------------- /test/support/_shutdown_ctx_mgr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/test/support/_shutdown_ctx_mgr.py -------------------------------------------------------------------------------- /test/synchronicity_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/test/synchronicity_test.py -------------------------------------------------------------------------------- /test/threading_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/test/threading_test.py -------------------------------------------------------------------------------- /test/tracebacks_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/test/tracebacks_test.py -------------------------------------------------------------------------------- /test/translate_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/test/translate_test.py -------------------------------------------------------------------------------- /test/type_stub_e2e_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/test/type_stub_e2e_test.py -------------------------------------------------------------------------------- /test/type_stub_helpers/.gitignore: -------------------------------------------------------------------------------- 1 | *.pyi 2 | -------------------------------------------------------------------------------- /test/type_stub_helpers/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/type_stub_helpers/e2e_example_export.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/test/type_stub_helpers/e2e_example_export.py -------------------------------------------------------------------------------- /test/type_stub_helpers/e2e_example_impl.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/test/type_stub_helpers/e2e_example_impl.py -------------------------------------------------------------------------------- /test/type_stub_helpers/e2e_example_type_assertions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/test/type_stub_helpers/e2e_example_type_assertions.py -------------------------------------------------------------------------------- /test/type_stub_helpers/some_mod.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/test/type_stub_helpers/some_mod.py -------------------------------------------------------------------------------- /test/type_stub_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/test/type_stub_test.py -------------------------------------------------------------------------------- /test/type_stub_translation_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/test/type_stub_translation_test.py -------------------------------------------------------------------------------- /test/warnings_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/modal-labs/synchronicity/HEAD/test/warnings_test.py --------------------------------------------------------------------------------