Registry / type-stubs / types-croniter

types-croniter

JSON →
library6.2.4.20260711pypypi✓ verified 26d ago

types-croniter is a type stub package from the `typeshed` project, providing external type annotations for the `croniter` library. It enables static analysis tools like MyPy and Pyright to perform type checking on code that uses `croniter`, improving code quality and catching potential type-related errors before runtime. The current version, 6.2.2.20260402, is designed to provide accurate annotations for `croniter==6.2.2`. These packages are part of the `typeshed` project and are released frequently, often daily, through `typeshed`'s automated processes.

pip install types-croniter
INSTALL
IMPORT
SIG · TYPES-CRONITER
T
types-croniter
type-stubspythonv6.2.4.20260711
Install
1.5s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v6.2.4.20260711 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.5s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

croniter
from croniter-stubs import croniter
from croniter-stubs import croniter

This example demonstrates basic usage of the `croniter` library with type hints. When `types-croniter` is installed, a static type checker like MyPy can use these stubs to validate the types passed to and returned by `croniter`'s functions and methods, catching potential type errors during development.

from datetime import datetime from croniter import croniter # types-croniter provides static type checking for the 'croniter' library. # Install it (pip install types-croniter) to enable your type checker (e.g., MyPy) # to validate the usage of croniter objects and methods. def schedule_info(cron_expression: str, start_from: datetime) -> None: """ Calculates and prints the next two scheduled times based on a cron expression. Type hints here are validated by types-croniter if installed. """ cron_iterator: croniter = croniter(cron_expression, start_from) print(f"Cron expression: '{cron_expression}'") print(f"Starting from: {start_from}") print(f"Next occurrence: {cron_iterator.get_next(datetime)}") print(f"Second next occurrence: {cron_iterator.get_next(datetime)}") if __name__ == "__main__": current_time = datetime(2026, 4, 6, 10, 30) schedule_info('0 0 * * *', current_time) # Daily at midnight print("-" * 20) schedule_info('*/15 * * * *', current_time) # Every 15 minutes
Debug
Known issues
gotchaVersion mismatches between `types-croniter` and the `croniter` runtime library can lead to incorrect or incomplete type checking results. The `types-croniter` version typically reflects the `croniter` version it targets (e.g., `types-croniter==6.2.2.YYYYMMDD` targets `croniter==6.2.2`).
fix
Ensure that the `types-croniter` package version aligns with the installed `croniter` package version, typically by pinning the major.minor.patch versions. Regularly update both packages.
affects: <6.2.2.20260402
breaking`types-croniter` is a stub-only package and does not include the actual `croniter` runtime code. Installing `types-croniter` alone will not provide the `croniter` functionality.
fix
Always install the `croniter` package (`pip install croniter`) in addition to `types-croniter` if you intend to run the code.
affects: All versions
gotchaFor MyPy versions 0.900 and later, third-party stub packages like `types-croniter` must be explicitly installed. They are no longer bundled with MyPy. Failing to install them will result in 'Missing imports' or 'Library stubs not installed' errors.
fix
Explicitly install `types-croniter` using `pip install types-croniter`. MyPy might suggest the correct installation command in its error message. You can also run `mypy --install-types`.
affects: mypy>=0.900
gotchaWhile `typeshed` aims to minimize breaking changes, updates to stub packages can sometimes introduce changes that cause type checking to fail, even if the underlying runtime library has not changed. This is due to evolving type system features or more precise annotations.
fix
Pin your stub package versions in your `requirements.txt` or `pyproject.toml` to the versions that are compatible with your codebase and type checker. Review typeshed's changelog for significant changes when upgrading.
affects: All versions
Upgrade
Version history
6.2.4.20260711latest on PyPI · released Jul 11, 2026
Audit
Dependencies
croniterrequired`types-croniter` provides type hints for the `croniter` library. For runtime functionality and effective type checking, `croniter` must be installed separately alongside `types-croniter`.
Agent activity
29 hits · last 30 days
node
26
OpenAI (training)
1
Resources
types-croniter — pip install types-croniter · libregistry