Skip to main content

Tiny automation tool like Jenkins, Buildbot, etc...

Project description

Sotong 0.1.6

Sotong

Sotong is a tiny automation tool like Jenkins, Buildbot, etc…

Based on

>>> from sotong.sotong import Sotong
>>> s = Sotong()
>>> @s.watch('/path/to/project')
... def project_file_modified(event):
...     with s.cd("/path/to/project/test"):
...         out = s.shell("python *.py")
...         if out.failed:
...             s.alert(out.stderr)
...             s.logger.info(out.stderr)
...         else:
...             s.logger.info(out.stdout)
...
>>> @s.interval(10)
... def interval():
...      import datetime
...      print datetime.datetime.now()
...
>>> @s.daily(7, 0, 0)
... def daily_task():
...     print "Good morning"
...
>>> s.run()

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

sotong-0.1.6.tar.gz (3.6 kB view hashes)

Uploaded Source

Supported by

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