Skip to main content

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

aws_croniter-0.1.0.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aws_croniter-0.1.0-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

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

Hashes for aws_croniter-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9e204b18615176043401cdff159adaca72a043a729ec0c18285ad194ecb6999f
MD5 601ac8afb24cb8aa60d35291943dcc6d
BLAKE2b-256 c10d86860a4b2d59dac9841e3101c7d4301a08e734b3ce744dcd50d8f58d49ec

See more details on using hashes here.

Provenance

The following attestation bundles were made for aws_croniter-0.1.0.tar.gz:

Publisher: release.yml on siddarth-patil/aws-croniter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for aws_croniter-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7cd0e802cb6d6c39896126a208d7099a92cd86c948d1fec8526e61d389bb92cc
MD5 7b6eba3ff892075a334695697f575e96
BLAKE2b-256 0da533a2ea44445cf04eb1bf630a88fb1a700a172a9a06a1064cf2847d8a128c

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page