Perhaps the python package croniter suits your needs.
Usage example:
>>> import croniter
>>> import datetime
>>> now = datetime.datetime.now()
>>> cron = croniter.croniter('45 17 */2 * *', now)
>>> cron.get_next(datetime.datetime)
datetime.datetime(2011, 9, 14, 17, 45)
>>> cron.get_next(datetime.datetime)
datetime.datetime(2011, 9, 16, 17, 45)
>>> cron.get_next(datetime.datetime)
datetime.datetime(2011, 9, 18, 17, 45)
Related Contents:
- How do I get a Cron like scheduler in Python? [closed]
- Cron and virtualenv
- How to run a script in the background even after I logout SSH?
- How to schedule a function to run every hour on Flask?
- Execute Python script via crontab
- Scheduling Python Script to run every hour accurately
- How to set virtualenv for a crontab?
- Running cron python jobs within docker
- Crontab not executing a Python script? [duplicate]
- How to run a python file using cron jobs
- run a crontab job using an anaconda env
- Get difference between two lists
- What are the most common Python docstring formats? [closed]
- How would you make a comma-separated string from a list of strings?
- Difference between map, applymap and apply methods in Pandas
- Python script to copy text to clipboard [duplicate]
- How to filter rows in pandas by regex
- Open file in a relative location in Python
- How to add an integer to each element in a list?
- How to add a custom loglevel to Python’s logging facility
- Making an asynchronous task in Flask
- Python, add trailing slash to directory string, os independently
- Is “x < y < z" faster than "x < y and y < z"?
- Python PIP Install throws TypeError: unsupported operand type(s) for -=: ‘Retry’ and ‘int’
- How to check if file is a symlink in Python?
- ValueError: unsupported pickle protocol: 3, python2 pickle can not load the file dumped by python 3 pickle?
- Can’t install psycopg2 package through pip install on MacOS
- Authenticating against active directory using python + ldap
- Python enumerate() tqdm progress-bar when reading a file?
- How can we force naming of parameters when calling a function?
- How do I create a directory, and any missing parent directories?
- Using the AND and NOT Operator in Python [duplicate]
- Django ImportError: cannot import name ‘render_to_response’ from ‘django.shortcuts’
- Does `anaconda` create a separate PYTHONPATH variable for each new environment?
- advanced string formatting vs template strings
- Is there an “ungroup by” operation opposite to .groupby in pandas?
- Using the multiprocessing module for cluster computing
- Could not find a version that satisfies the requirement pytz
- Get size of a file before downloading in Python
- How to replace unicode characters in string with something else python?
- In numpy, what does selection by [:,None] do?
- Using fourier analysis for time series prediction
- Scatter plot error bars (the error on each point is unique)
- How to subclass str in Python
- Ansible: best practice for maintaining list of sudoers
- Overriding python threading.Thread.run()
- Multiple outputs in Keras
- Anaconda Installed but Cannot Launch Navigator
- Generate random numbers summing to a predefined value
- Adding indexes to SQLAlchemy models after table creation