• Stars
    star
    147
  • Rank 251,347 (Top 5 %)
  • Language
    Python
  • License
    MIT License
  • Created over 4 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Command line tool for scheduling Python scripts

hickory

PyPI Downloads

About

hickory is a simple command line tool for scheduling Python scripts.

Support

Operating System Scheduler
macOS launchd
Linux systemd
Windows

Install

pip install hickory

Quickstart

Create a file called foo.py:

import datetime
import time

stamp = datetime.datetime.now().strftime("%H:%M:%S")
time.sleep(5)

print(f"Foo - {stamp} + 5 seconds")

Schedule foo.py to execute every ten minutes:

hickory schedule foo.py --every=10minutes

Check the status of all queued schedules:

hickory status

Stop and delete the schedule for foo.py:

hickory kill foo.py

Logs

macOS - logs are stored in the same directory as the scheduled script:

tail -f hickory.log

Linux - logs are written to the journal:

journalctl -f

--every Examples

Repeat
Every ten minutes --every=10minutes
Every day at 10:10 AM --every=@10:10
Every Monday at 10:10 AM --every=monday@10:10am
Every 10th day of the month at 10:10 AM --every=10th@10:10am
Every last day of the month at 10:10 AM --every=eom@10:10am
Every 10th and last day of the month at 10 AM and 10 PM --every=10,eom@10,10pm

--every Table

Interval
10 seconds 10, 10s, 10sec, 10secs, 10seconds
10 minutes 10m, 10min, 10mins, 10minutes
10 hours 10h, 10hr, 10hrs, 10hours
Time
10:00 AM @10, @10am
10:00 PM @22, @10pm
10:10 AM @10:10, @10:10am
10:10 PM @22:10, @10:10pm
Weekday
Monday m@, mon@, monday@
Tuesday t@, tue@, tues@, tuesday@
Wednesday w@, wed@, weds@, wednesday@
Thursday th@, thu@, thur@, thurs@, thursday@
Friday f@, fri@, friday@
Saturday s@, sat@, saturday@
Sunday su@, sun@, sunday@
Calendar Day
1st 1@, 1st@
2nd 2@, 2nd@
3rd 3@, 3rd@
4th 4@, 4th@
15th 15@, 15th@
31st 31@, 31st@
Other Day
Every Day day@
Every Weekday weekday@
End of Month eom@

More Repositories

1

gazpacho

🥫 The simple, fast, and modern web scraping library
Python
741
star
2

gif

The matplotlib Animation Extension
Python
659
star
3

redframes

General Purpose Data Manipulation Library
Python
299
star
4

BreadBuddy

Recipe scheduler for iOS
Swift
135
star
5

DE4DS

⭕️ Data Engineering for Data Scientists
Jupyter Notebook
77
star
6

marc

Markov chain generator for Python and/or Swift
Swift
64
star
7

BRE

⭕️ Building Recommendation Engines
Jupyter Notebook
59
star
8

chart

Charts with pure python
Python
57
star
9

WS60

⭕️ Web Scraping in 60 Minutes
Jupyter Notebook
46
star
10

mummify

Version Control for Machine Learning
Python
45
star
11

MVML

⭕️ Minimum Viable Machine Learning
Jupyter Notebook
33
star
12

Sankey

Sankey diagrams in SwiftUI, powered by Google Charts
Swift
26
star
13

PFWP

📕 Personal Finance with Python
18
star
14

quote

Goodreads Quote API
Python
15
star
15

scrape.world

The Web Scraping Sandbox
HTML
14
star
16

AWS

⭕️ Advanced Web Scraping
Jupyter Notebook
11
star
17

PUNK

Jupyter Notebook
10
star
18

ADW

➕ Animating Data Workshop
Python
10
star
19

BIA

⭕️ Building iOS Apps with SwiftUI
Swift
9
star
20

talks

Code and slides for some of my past talks
Jupyter Notebook
8
star
21

Ponkan

Mandarin Chinese to Pinyin, IRT.
Swift
7
star
22

Carlo

Monte Carlo Tree Search Library
Swift
7
star
23

maxhumber.com

Personal Website + Blog
HTML
5
star
24

sausagelink

A Blockchain Parody
Python
4
star
25

MDA

➕ Modern Data Acquisition
Jupyter Notebook
3
star
26

FSVA

⭕️ First Steps: Visualization with Altair
Jupyter Notebook
3
star
27

CDML

➕ Continuously Deployed ML
Jupyter Notebook
2
star
28

HDD

🕰 Hickory Dickory Dock... Geekle Conference Presentation
Python
2
star
29

ITF

⭕️ iOS Testing Fundamentals
Swift
2
star
30

ellehacks

🔬 Data Science x Elle Hacks
Jupyter Notebook
2
star
31

SUIPYER

The SwiftUI + Python Playbook
Python
1
star