Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A tool to merge an input file and all of its requirements into a single output file. Similar to Sprockets.

Project Description

CodeHarvester is a lightweight tool for merging different files respecting the requirements which are stated in those files. It would be useful in Web development for concatenating multiple files together. Currently it supports only JS like requirement definitions, but it is easily extensible.


To install CodeHarvester simply do:

pip install codeharvester

This will install CodeHarvester package and the runner script ( into /bin directory.


CodeHarvester can concatenate any type of files but currently understands only JS like notating. To specify a requirement just write in the file:

//= require anoter_file.js

another_file.js will be included in the same place it was defined. If the same requirement will appear anywhere else it will be skipped because it is already included.

For command line options run: –help



//= require fileB.js

// this will be skipped because fileC.js will be already loaded as a requirement of fileB.js //= require fileC.js

… fileA.js stuff …


//= require fileC.js

… fileB.js stuff …


… fileC.js stuff …


… fileC.js stuff … … fileB.js stuff … … fileA.js stuff …
Release History

Release History

This version
History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
CodeHarvester-0.0.2.tar.gz (5.0 kB) Copy SHA256 Checksum SHA256 Source Oct 21, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting