Skip to main content

A task executor

Project description

https://img.shields.io/pypi/v/jolt.svg https://readthedocs.org/projects/jolt/badge/?version=latest

Jolt is a task execution tool designed for software development tasks. It can build your C/C++ applications and React frontends, run tests, deploy your web services, and much more.

Tasks are defined in Python scripts. They may be executed locally by developers or by automation software such as Jenkins in a continuous integration pipeline. In both cases, tasks may be distributed and executed in parallel in a server cluster. The output of each task is cached to reduce overall execution times on repeat attempts. In one real world deployment, Jolt shortend the CI build duration from 10 hours to 10 minutes on average.

Example C++ application task:

class CppApp(CXXExecutable):
    """ Builds a C++ application """
    arch = Parameter(values=["arm", "x64"])
    requires = [
       "git:url=https://github.com/org/cppapp.git",
       "gcc:arch={arch},version=9.1.1",
    ]
    sources = ["cppapp/include/*.hpp", "cppapp/src/*.cpp"]
$ jolt build cppapp:arch=x64

Example Node.js tasks:

class NodeJS(Download):
    """ Downloads and publishes Node.js. Adds binaries to PATH. """

    version = Parameter("14.16.1")
    url = "https://nodejs.org/dist/v{version}/node-v{version}-win-x64.zip"

    def publish(self, artifact, tools):
        super(publish).publish(artifact, tools)
        artifact.environ.PATH.append("node-v{version}-win-x64")


 class WebApp(Task):
     """ Builds a really cool WebApp """

     requires = [
         "git:url=https://github.com/org/webapp.git",
         "nodejs"
     ]

     def run(self, deps, tools):
         with tools.cwd("webapp"):
             tools.run("npm ci")
             tools.run("npm build")
$ jolt build webapp

A common command line interface for all tasks enables developers from different disciplines to quickly run each others tasks without in-depth knowledge of the underlying technology - a C++ developer doesn’t have to learn NPM and a React developer doesn’t have to know anything about CMake, Make, MSBuild, etc. Required tools and dependencies are also provisioned automatically.

For full documentation, please visit http://jolt.readthedocs.io/

Installing

Jolt is available in the Python Package Index:

$ pip install jolt
$ jolt

And as a Docker image:

$ docker run robrt/jolt

A thin Python wrapper is available for the Docker images. By using it, multiple versions of Jolt can coexist on the host since the version used is selected during runtime rather than install time. To use a specific version in a project, add a version attribute in the Jolt manifest. By always using a specific version cache hits become more likely.

$ pip install jolt_docker
$ jolt

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jolt_docker-0.9.475.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

jolt_docker-0.9.475-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file jolt_docker-0.9.475.tar.gz.

File metadata

  • Download URL: jolt_docker-0.9.475.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.2

File hashes

Hashes for jolt_docker-0.9.475.tar.gz
Algorithm Hash digest
SHA256 2919c2ca6bae0527921ca0ce8628c9d3daed53c57dba7a38a9cae875016c4ed6
MD5 6de915ee55d6ec1c78b9a819b3e0342d
BLAKE2b-256 c6ec52ec5162614e2444cd9fe04943ba334125ad503b0687a4f2fb1d86f9c4da

See more details on using hashes here.

File details

Details for the file jolt_docker-0.9.475-py3-none-any.whl.

File metadata

  • Download URL: jolt_docker-0.9.475-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.2

File hashes

Hashes for jolt_docker-0.9.475-py3-none-any.whl
Algorithm Hash digest
SHA256 e17fad84f4e415c97380198236a652a99c8af7d8ab28eb82e67c2fec2b10231e
MD5 4f598cf2a0fa60449dd2100ba3bfc3f0
BLAKE2b-256 10660ff526df408036ce3153b48eb8f494db2ee00c11d912c882b3f8e17fd51b

See more details on using hashes here.

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