Skip to main content

A lightweight python script scheduler

Project description

gluetube

A simple python script scheduler with a shared local key-value database. Meant to enable easy automation and integration of infrastructure and systems. Like cron, but with more bells and whistles.

installation

There are two ways to deploy gluetube.

  • docker
  • virtual machine / bare metal

docker

  1. docker volume create gluetube-cfg
  2. docker volume create gluetube-db
  3. docker run -d --init --name gluetube -v gluetube-cfg:/home/gluetube/.gluetube/etc -v gluetube-db:/home/gluetube/.gluetube/db ctomkow/gluetube
  4. docker exec -it gluetube bash
  5. gt db --rekey

VM

  1. adduser gluetube
  2. pip install --user gluetube
  3. gt --configure
  4. gt db --init
  5. gt daemon --background
  6. gt db --rekey

example usage

gt --help

gt summary

gt schedule 1 --now

pipeline development

You are meant to develop your own pipelines in python for gluetube. The following is a brief description of how to get your development environment setup. These instructions assume you use VS code and docker.

  1. docker pull ctomkow/gluetube

  2. docker volume create gluetube-db

  3. docker volume create gluetube-cfg

  4. docker run -itd --name gluetube --net=host -v gluetube-db:/home/gluetube/.gluetube/db -v gluetube-cfg:/home/gluetube/.gluetube/etc ctomkow/gluetube:latest

  5. Open VS code. In the docker-> containers section, right-click on the running gluetube container and attach visual studio code to running container.

  6. Within the container terminal, enter the pipelines directory. cd pipelines

  7. Clone a repository. git clone <url> . Note the . at the end of the git clone. This is important because we don't want the project folder as a subdirectory.

  8. Now you can develop your pipelines (.py files) while having a live gluetube daemon running within the container. All the gluetube cli commands are available to test out your pipeline code in a production-like environment. gt --help

roadmap

gluetube roadmap

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

gluetube-0.1.1.tar.gz (30.3 kB view details)

Uploaded Source

Built Distribution

gluetube-0.1.1-py3-none-any.whl (36.2 kB view details)

Uploaded Python 3

File details

Details for the file gluetube-0.1.1.tar.gz.

File metadata

  • Download URL: gluetube-0.1.1.tar.gz
  • Upload date:
  • Size: 30.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for gluetube-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fde50e549011a173ec578df4b8755a29f6c2e2bbb7a13bed84c714bbc7d1f31d
MD5 f84946150c064b5d0193770c229d1737
BLAKE2b-256 94ed3783532e57214681ec5f85ad100867677d47bf49f442b31cab14c165ce69

See more details on using hashes here.

File details

Details for the file gluetube-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: gluetube-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 36.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for gluetube-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9ea39e7ed132b2103517db0aebcc293582a5c7ad187980a253679b64299bf2c9
MD5 f3b69b58888ada13468d80a1c1abcb28
BLAKE2b-256 2b14dd37d972d0ec04e2ba2fca0109159a7743c9e5db04d1bd87ec56aed72286

See more details on using hashes here.

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