dycw-utilities 0.136.3__tar.gz → 0.136.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/PKG-INFO +1 -1
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/pyproject.toml +3 -4
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/__init__.py +1 -1
- dycw_utilities-0.136.3/src/tests/test_arq.py +0 -58
- dycw_utilities-0.136.3/src/utilities/arq.py +0 -216
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/.gitignore +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/LICENSE +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/README.md +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/__init__.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/conftest.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/modules/__init__.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/modules/package_missing/__init__.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/modules/package_missing/module.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/modules/package_with/__init__.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/modules/package_with/outer_1.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/modules/package_with/outer_2.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/modules/package_with/subpackage/__init__.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/modules/package_with/subpackage/inner_1.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/modules/package_with/subpackage/inner_2.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/modules/package_with/subpackage/inner_3.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/modules/package_without/__init__.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/modules/package_without/module_1.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/modules/package_without/module_2.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/modules/standalone.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/modules/with_imports.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/regressions/test_pytest_regressions/TestMultipleRegressionFixtures__test_main__obj.json +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/regressions/test_pytest_regressions/TestMultipleRegressionFixtures__test_main__series.json +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/regressions/test_pytest_regressions/TestOrjsonRegressionFixture__test_dataclass_int.json +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/regressions/test_pytest_regressions/TestOrjsonRegressionFixture__test_dataclass_literal__false.json +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/regressions/test_pytest_regressions/TestOrjsonRegressionFixture__test_dataclass_literal__true.json +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/regressions/test_pytest_regressions/TestOrjsonRegressionFixture__test_dataclass_nested.json +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/regressions/test_pytest_regressions/TestPolarsRegressionFixture__test_dataframe.json +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/regressions/test_pytest_regressions/TestPolarsRegressionFixture__test_series.json +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_aiolimiter.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_altair.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_asyncio.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_asyncio_classes/__init__.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_asyncio_classes/loopers.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_asyncio_classes/redis.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_atomicwrites.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_atools.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_cachetools.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_click.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_concurrent.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_contextlib.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_contextvars.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_cryptography.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_cvxpy.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_dataclasses.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_enum.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_errors.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_eventkit.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_fastapi.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_fpdf2.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_functions.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_functools.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_getpass.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_git.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_hashlib.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_http.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_hypothesis.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_importlib.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_inflect.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_ipython.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_iterables.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_jupyter.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_libcst.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_lightweight_charts.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_logging.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_luigi.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_math.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_memory_profiler.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_modules.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_more_itertools.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_numpy.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_objects/__init__.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_objects/objects.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_operator.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_optuna.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_orjson.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_os.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_parse.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_pathlib.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_period.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_pickle.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_platform.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_polars.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_polars_ols.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_pottery.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_pqdm.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_psutil.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_pydantic.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_pyinstrument.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_pytest.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_pytest_regressions.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_python_dotenv.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_random.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_re.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_redis.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_reprlib.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_scipy.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_sentinel.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_shelve.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_slack_sdk.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_socket.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_sqlalchemy.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_sqlalchemy_polars.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_statsmodels.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_streamlit.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_string.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_tempfile.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_text.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_threading.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_timer.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_traceback.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_typed_settings.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_types.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_typing.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_typing_funcs/__init__.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_typing_funcs/no_future.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_typing_funcs/with_future.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_tzdata.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_tzlocal.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_uuid.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_version.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_warnings.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_whenever.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_zipfile.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_zoneinfo.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/aiolimiter.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/altair.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/asyncio.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/atomicwrites.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/atools.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/cachetools.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/click.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/concurrent.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/contextlib.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/contextvars.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/cryptography.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/cvxpy.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/dataclasses.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/enum.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/errors.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/eventkit.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/fastapi.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/fpdf2.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/functions.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/functools.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/getpass.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/git.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/hashlib.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/http.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/hypothesis.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/importlib.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/inflect.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/ipython.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/iterables.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/jupyter.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/libcst.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/lightweight_charts.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/logging.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/luigi.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/math.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/memory_profiler.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/modules.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/more_itertools.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/numpy.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/operator.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/optuna.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/orjson.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/os.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/parse.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/pathlib.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/period.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/pickle.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/platform.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/polars.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/polars_ols.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/pottery.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/pqdm.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/psutil.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/py.typed +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/pydantic.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/pyinstrument.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/pytest.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/pytest_regressions.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/python_dotenv.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/random.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/re.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/redis.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/reprlib.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/scipy.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/sentinel.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/shelve.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/slack_sdk.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/socket.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/sqlalchemy.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/sqlalchemy_polars.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/statsmodels.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/streamlit.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/string.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/tempfile.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/text.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/threading.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/timer.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/traceback.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/typed_settings.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/types.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/typing.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/tzdata.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/tzlocal.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/uuid.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/version.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/warnings.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/whenever.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/zipfile.py +0 -0
- {dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/utilities/zoneinfo.py +0 -0
@@ -14,7 +14,6 @@ altair-test = [
|
|
14
14
|
"img2pdf",
|
15
15
|
"vl-convert-python",
|
16
16
|
]
|
17
|
-
arq = ["arq >= 0.26.3, < 0.27"]
|
18
17
|
atools = ["atools >= 0.14.2, < 0.15"]
|
19
18
|
cachetools = ["cachetools >= 6.1.0, < 6.2"]
|
20
19
|
click = ["click >= 8.2.1, < 8.3"]
|
@@ -78,7 +77,7 @@ pytest-regressions = ["pytest-regressions >= 2.8.0, < 2.9"]
|
|
78
77
|
pytest-regressions-test = ["orjson", "polars-lts-cpu"]
|
79
78
|
pytest-test = ["orjson", "pytest-rng", "pytest-rerunfailures"]
|
80
79
|
python-dotenv = ["python-dotenv >= 1.1.0, < 1.2"]
|
81
|
-
redis = ["redis >=
|
80
|
+
redis = ["redis >= 6.2.0, < 6.3", "orjson"]
|
82
81
|
redis-test = ["pytest-rerunfailures"]
|
83
82
|
reprlib-test = ["rich"]
|
84
83
|
scipy = ["scipy >= 1.15.3, < 1.16"]
|
@@ -106,7 +105,7 @@ dependencies = [
|
|
106
105
|
name = "dycw-utilities"
|
107
106
|
readme = "README.md"
|
108
107
|
requires-python = ">= 3.12"
|
109
|
-
version = "0.136.
|
108
|
+
version = "0.136.4"
|
110
109
|
|
111
110
|
[project.optional-dependencies]
|
112
111
|
logging = [
|
@@ -134,7 +133,7 @@ test = [
|
|
134
133
|
# bump-my-version
|
135
134
|
[tool.bumpversion]
|
136
135
|
allow_dirty = true
|
137
|
-
current_version = "0.136.
|
136
|
+
current_version = "0.136.4"
|
138
137
|
|
139
138
|
[[tool.bumpversion.files]]
|
140
139
|
filename = "src/utilities/__init__.py"
|
@@ -1,58 +0,0 @@
|
|
1
|
-
from __future__ import annotations
|
2
|
-
|
3
|
-
from asyncio import sleep
|
4
|
-
from typing import TYPE_CHECKING, Any, cast
|
5
|
-
|
6
|
-
from arq.connections import ArqRedis
|
7
|
-
from hypothesis import given
|
8
|
-
from hypothesis.strategies import integers
|
9
|
-
|
10
|
-
from tests.conftest import SKIPIF_CI_AND_NOT_LINUX
|
11
|
-
from utilities.arq import Worker, cron_raw, job_enqueuer
|
12
|
-
from utilities.iterables import one
|
13
|
-
|
14
|
-
if TYPE_CHECKING:
|
15
|
-
from collections.abc import Callable, Sequence
|
16
|
-
|
17
|
-
from arq.typing import WorkerCoroutine
|
18
|
-
|
19
|
-
from utilities.types import Coro
|
20
|
-
|
21
|
-
|
22
|
-
class TestCronRaw:
|
23
|
-
@given(x=integers(), y=integers())
|
24
|
-
async def test_main(self, *, x: int, y: int) -> None:
|
25
|
-
async def func(x: int, y: int, /) -> int:
|
26
|
-
await sleep(0.01)
|
27
|
-
return x + y
|
28
|
-
|
29
|
-
job = cron_raw(func, args=(x, y))
|
30
|
-
result = await job.coroutine({})
|
31
|
-
assert result == (x + y)
|
32
|
-
|
33
|
-
|
34
|
-
class TestJobEnqueuer:
|
35
|
-
@given(x=integers(), y=integers())
|
36
|
-
@SKIPIF_CI_AND_NOT_LINUX
|
37
|
-
async def test_main(self, *, x: int, y: int) -> None:
|
38
|
-
async def func(x: int, y: int, /) -> int:
|
39
|
-
await sleep(0.01)
|
40
|
-
return x + y
|
41
|
-
|
42
|
-
redis = ArqRedis(db=15)
|
43
|
-
_ = await job_enqueuer.settings(queue_name="test")(redis, func, x, y)
|
44
|
-
|
45
|
-
|
46
|
-
class TestWorker:
|
47
|
-
@given(x=integers(), y=integers())
|
48
|
-
async def test_main(self, *, x: int, y: int) -> None:
|
49
|
-
async def func(x: int, y: int, /) -> int:
|
50
|
-
await sleep(0.01)
|
51
|
-
return x + y
|
52
|
-
|
53
|
-
class Example(Worker):
|
54
|
-
functions_raw: Sequence[Callable[..., Coro[Any]]] = [func]
|
55
|
-
|
56
|
-
func_use = cast("WorkerCoroutine", one(Example.functions))
|
57
|
-
result = await func_use({}, x, y)
|
58
|
-
assert result == (x + y)
|
@@ -1,216 +0,0 @@
|
|
1
|
-
from __future__ import annotations
|
2
|
-
|
3
|
-
from dataclasses import dataclass
|
4
|
-
from functools import wraps
|
5
|
-
from itertools import chain
|
6
|
-
from typing import TYPE_CHECKING, Any, Self, cast, override
|
7
|
-
|
8
|
-
from arq.constants import default_queue_name, expires_extra_ms
|
9
|
-
from arq.cron import cron
|
10
|
-
|
11
|
-
from utilities.dataclasses import replace_non_sentinel
|
12
|
-
from utilities.sentinel import Sentinel, sentinel
|
13
|
-
|
14
|
-
if TYPE_CHECKING:
|
15
|
-
from collections.abc import Callable, Iterable, Sequence
|
16
|
-
from datetime import datetime, timedelta, timezone
|
17
|
-
|
18
|
-
from arq.connections import ArqRedis, RedisSettings
|
19
|
-
from arq.cron import CronJob
|
20
|
-
from arq.jobs import Deserializer, Job, Serializer
|
21
|
-
from arq.typing import (
|
22
|
-
OptionType,
|
23
|
-
SecondsTimedelta,
|
24
|
-
StartupShutdown,
|
25
|
-
WeekdayOptionType,
|
26
|
-
WorkerCoroutine,
|
27
|
-
)
|
28
|
-
from arq.worker import Function
|
29
|
-
|
30
|
-
from utilities.types import Coro, StrMapping
|
31
|
-
|
32
|
-
|
33
|
-
def cron_raw(
|
34
|
-
coroutine: Callable[..., Coro[Any]],
|
35
|
-
/,
|
36
|
-
*,
|
37
|
-
name: str | None = None,
|
38
|
-
month: OptionType = None,
|
39
|
-
day: OptionType = None,
|
40
|
-
weekday: WeekdayOptionType = None,
|
41
|
-
hour: OptionType = None,
|
42
|
-
minute: OptionType = None,
|
43
|
-
second: OptionType = 0,
|
44
|
-
microsecond: int = 123_456,
|
45
|
-
run_at_startup: bool = False,
|
46
|
-
unique: bool = True,
|
47
|
-
job_id: str | None = None,
|
48
|
-
timeout: SecondsTimedelta | None = None,
|
49
|
-
keep_result: float | None = 0,
|
50
|
-
keep_result_forever: bool | None = False,
|
51
|
-
max_tries: int | None = 1,
|
52
|
-
args: Iterable[Any] | None = None,
|
53
|
-
kwargs: StrMapping | None = None,
|
54
|
-
) -> CronJob:
|
55
|
-
"""Create a cron job with a raw coroutine function."""
|
56
|
-
lifted = _lift_cron(
|
57
|
-
coroutine, *(() if args is None else args), **({} if kwargs is None else kwargs)
|
58
|
-
)
|
59
|
-
return cron(
|
60
|
-
lifted,
|
61
|
-
name=name,
|
62
|
-
month=month,
|
63
|
-
day=day,
|
64
|
-
weekday=weekday,
|
65
|
-
hour=hour,
|
66
|
-
minute=minute,
|
67
|
-
second=second,
|
68
|
-
microsecond=microsecond,
|
69
|
-
run_at_startup=run_at_startup,
|
70
|
-
unique=unique,
|
71
|
-
job_id=job_id,
|
72
|
-
timeout=timeout,
|
73
|
-
keep_result=keep_result,
|
74
|
-
keep_result_forever=keep_result_forever,
|
75
|
-
max_tries=max_tries,
|
76
|
-
)
|
77
|
-
|
78
|
-
|
79
|
-
def _lift_cron[**P, T](
|
80
|
-
func: Callable[P, Coro[T]], *args: P.args, **kwargs: P.kwargs
|
81
|
-
) -> WorkerCoroutine:
|
82
|
-
"""Lift a coroutine function & call arg/kwargs for `cron`."""
|
83
|
-
|
84
|
-
@wraps(func)
|
85
|
-
async def wrapped(ctx: StrMapping, /) -> T:
|
86
|
-
_ = ctx
|
87
|
-
return await func(*args, **kwargs)
|
88
|
-
|
89
|
-
return cast("Any", wrapped)
|
90
|
-
|
91
|
-
|
92
|
-
##
|
93
|
-
|
94
|
-
|
95
|
-
@dataclass(kw_only=True, slots=True)
|
96
|
-
class _JobEnqueuer:
|
97
|
-
"""Enqueuer of jobs."""
|
98
|
-
|
99
|
-
job_id: str | None = None
|
100
|
-
queue_name: str | None = None
|
101
|
-
defer_until: datetime | None = None
|
102
|
-
defer_by: int | float | timedelta | None = None
|
103
|
-
expires: int | float | timedelta | None = None
|
104
|
-
job_try: int | None = None
|
105
|
-
|
106
|
-
async def __call__[**P, T](
|
107
|
-
self,
|
108
|
-
redis: ArqRedis,
|
109
|
-
function: Callable[P, Coro[T]],
|
110
|
-
*args: P.args,
|
111
|
-
**kwargs: P.kwargs,
|
112
|
-
) -> Job | None:
|
113
|
-
return await redis.enqueue_job( # skipif-ci-and-not-linux
|
114
|
-
function.__name__,
|
115
|
-
*args,
|
116
|
-
_job_id=self.job_id,
|
117
|
-
_queue_name=self.queue_name,
|
118
|
-
_defer_until=self.defer_until,
|
119
|
-
_defer_by=self.defer_by,
|
120
|
-
_expires=self.expires,
|
121
|
-
_job_try=self.job_try,
|
122
|
-
**kwargs,
|
123
|
-
)
|
124
|
-
|
125
|
-
def settings(
|
126
|
-
self,
|
127
|
-
*,
|
128
|
-
job_id: str | None | Sentinel = sentinel,
|
129
|
-
queue_name: str | None | Sentinel = sentinel,
|
130
|
-
defer_until: datetime | None | Sentinel = sentinel,
|
131
|
-
defer_by: float | timedelta | None | Sentinel = sentinel,
|
132
|
-
expires: float | timedelta | None | Sentinel = sentinel,
|
133
|
-
job_try: int | None | Sentinel = sentinel,
|
134
|
-
) -> Self:
|
135
|
-
"""Replace elements of the enqueuer."""
|
136
|
-
return replace_non_sentinel( # skipif-ci-and-not-linux
|
137
|
-
self,
|
138
|
-
job_id=job_id,
|
139
|
-
queue_name=queue_name,
|
140
|
-
defer_until=defer_until,
|
141
|
-
defer_by=defer_by,
|
142
|
-
expires=expires,
|
143
|
-
job_try=job_try,
|
144
|
-
)
|
145
|
-
|
146
|
-
|
147
|
-
job_enqueuer = _JobEnqueuer()
|
148
|
-
|
149
|
-
|
150
|
-
##
|
151
|
-
|
152
|
-
|
153
|
-
class _WorkerMeta(type):
|
154
|
-
@override
|
155
|
-
def __new__(
|
156
|
-
mcs: type[_WorkerMeta],
|
157
|
-
name: str,
|
158
|
-
bases: tuple[type, ...],
|
159
|
-
namespace: dict[str, Any],
|
160
|
-
/,
|
161
|
-
) -> type[Worker]:
|
162
|
-
cls = cast("type[Worker]", super().__new__(mcs, name, bases, namespace))
|
163
|
-
cls.functions = tuple(chain(cls.functions, map(cls._lift, cls.functions_raw)))
|
164
|
-
return cls
|
165
|
-
|
166
|
-
@classmethod
|
167
|
-
def _lift[**P, T](cls, func: Callable[P, Coro[T]]) -> WorkerCoroutine:
|
168
|
-
"""Lift a coroutine function to accept the required `ctx` argument."""
|
169
|
-
|
170
|
-
@wraps(func)
|
171
|
-
async def wrapped(ctx: StrMapping, *args: P.args, **kwargs: P.kwargs) -> T:
|
172
|
-
_ = ctx
|
173
|
-
return await func(*args, **kwargs)
|
174
|
-
|
175
|
-
return cast("Any", wrapped)
|
176
|
-
|
177
|
-
|
178
|
-
@dataclass(kw_only=True)
|
179
|
-
class Worker(metaclass=_WorkerMeta):
|
180
|
-
"""Base class for all workers."""
|
181
|
-
|
182
|
-
functions: Sequence[Function | WorkerCoroutine] = ()
|
183
|
-
functions_raw: Sequence[Callable[..., Coro[Any]]] = ()
|
184
|
-
queue_name: str | None = default_queue_name
|
185
|
-
cron_jobs: Sequence[CronJob] | None = None
|
186
|
-
redis_settings: RedisSettings | None = None
|
187
|
-
redis_pool: ArqRedis | None = None
|
188
|
-
burst: bool = False
|
189
|
-
on_startup: StartupShutdown | None = None
|
190
|
-
on_shutdown: StartupShutdown | None = None
|
191
|
-
on_job_start: StartupShutdown | None = None
|
192
|
-
on_job_end: StartupShutdown | None = None
|
193
|
-
after_job_end: StartupShutdown | None = None
|
194
|
-
handle_signals: bool = True
|
195
|
-
job_completion_wait: int = 0
|
196
|
-
max_jobs: int = 10
|
197
|
-
job_timeout: SecondsTimedelta = 300
|
198
|
-
keep_result: SecondsTimedelta = 3600
|
199
|
-
keep_result_forever: bool = False
|
200
|
-
poll_delay: SecondsTimedelta = 0.5
|
201
|
-
queue_read_limit: int | None = None
|
202
|
-
max_tries: int = 5
|
203
|
-
health_check_interval: SecondsTimedelta = 3600
|
204
|
-
health_check_key: str | None = None
|
205
|
-
ctx: dict[Any, Any] | None = None
|
206
|
-
retry_jobs: bool = True
|
207
|
-
allow_abort_jobs: bool = False
|
208
|
-
max_burst_jobs: int = -1
|
209
|
-
job_serializer: Serializer | None = None
|
210
|
-
job_deserializer: Deserializer | None = None
|
211
|
-
expires_extra_ms: int = expires_extra_ms
|
212
|
-
timezone: timezone | None = None
|
213
|
-
log_results: bool = True
|
214
|
-
|
215
|
-
|
216
|
-
__all__ = ["Worker", "cron", "job_enqueuer"]
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/modules/package_missing/__init__.py
RENAMED
File without changes
|
{dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/modules/package_missing/module.py
RENAMED
File without changes
|
{dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/modules/package_with/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/modules/package_without/__init__.py
RENAMED
File without changes
|
{dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/modules/package_without/module_1.py
RENAMED
File without changes
|
{dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/modules/package_without/module_2.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_asyncio_classes/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{dycw_utilities-0.136.3 → dycw_utilities-0.136.4}/src/tests/test_typing_funcs/with_future.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|