A Python utility for AWS cron expressions. Validate and parse AWS EventBridge cron expressions seamlessly.
Project description
AWS Croniter
AWS Croniter is a Python library that provides utilities for working with AWS cron expressions. It allows you to easily parse, manipulate, and validate cron expressions used in AWS services like CloudWatch and EventBridge.
Features
- Parse AWS cron expressions
- Validate cron expressions
- Generate next execution times
- Convert cron expressions to human-readable format
Installation
You can install AWS Croniter using pip:
pip install aws-croniter
Usage
Here is a basic example of how to use AWS Croniter:
from aws_croniter import Croniter
# Create a Croniter object with an AWS cron expression
cron = Croniter('cron(0 12 * * ? *)')
# Validate the cron expression
if cron.is_valid():
print("The cron expression is valid.")
# Get the next execution time
next_time = cron.get_next()
print(f"The next execution time is: {next_time}")
# Convert to human-readable format
human_readable = cron.to_human_readable()
print(f"Human-readable format: {human_readable}")
Contributing
Contributions are welcome! Please read the contributing guidelines first.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contact
For any questions or suggestions, please open an issue or contact the maintainer at email@example.com.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aws_croniter-0.1.0.tar.gz.
File metadata
- Download URL: aws_croniter-0.1.0.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e204b18615176043401cdff159adaca72a043a729ec0c18285ad194ecb6999f
|
|
| MD5 |
601ac8afb24cb8aa60d35291943dcc6d
|
|
| BLAKE2b-256 |
c10d86860a4b2d59dac9841e3101c7d4301a08e734b3ce744dcd50d8f58d49ec
|
Provenance
The following attestation bundles were made for aws_croniter-0.1.0.tar.gz:
Publisher:
release.yml on siddarth-patil/aws-croniter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aws_croniter-0.1.0.tar.gz -
Subject digest:
9e204b18615176043401cdff159adaca72a043a729ec0c18285ad194ecb6999f - Sigstore transparency entry: 158226138
- Sigstore integration time:
-
Permalink:
siddarth-patil/aws-croniter@280ffd8ff52215300c05cc5f91ddde878846c934 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/siddarth-patil
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@280ffd8ff52215300c05cc5f91ddde878846c934 -
Trigger Event:
push
-
Statement type:
File details
Details for the file aws_croniter-0.1.0-py3-none-any.whl.
File metadata
- Download URL: aws_croniter-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7cd0e802cb6d6c39896126a208d7099a92cd86c948d1fec8526e61d389bb92cc
|
|
| MD5 |
7b6eba3ff892075a334695697f575e96
|
|
| BLAKE2b-256 |
0da533a2ea44445cf04eb1bf630a88fb1a700a172a9a06a1064cf2847d8a128c
|
Provenance
The following attestation bundles were made for aws_croniter-0.1.0-py3-none-any.whl:
Publisher:
release.yml on siddarth-patil/aws-croniter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aws_croniter-0.1.0-py3-none-any.whl -
Subject digest:
7cd0e802cb6d6c39896126a208d7099a92cd86c948d1fec8526e61d389bb92cc - Sigstore transparency entry: 158226145
- Sigstore integration time:
-
Permalink:
siddarth-patil/aws-croniter@280ffd8ff52215300c05cc5f91ddde878846c934 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/siddarth-patil
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@280ffd8ff52215300c05cc5f91ddde878846c934 -
Trigger Event:
push
-
Statement type: