Skip to main content

A low-key build system for working with data.

Project description

laforge is a low-key build system for working with data.

License: AGPL 3.0 Python: 3.6+ GitHub last commit Cat: Onigiri

💻 Introduction

You know, I've always thought technology could solve almost any problem.

$ python -m pip install laforge -q

$ laforge create
Creating /home/matvan/science/build.ini
? Creating a new laforge INI at:  /home/matvan/science/build.ini

Creating /home/matvan/science/build.ini

? Default read directory, relative to /home/matvan/science/:  ./data
? Default write directory, relative to /home/matvan/science/:  ./output
? Default execute directory, relative to /home/matvan/science/:  ./
? SQL Distribution:  SQLite
?     Database:  :memory:
New laforge INI written at: /home/matvan/science/build.ini

There's theory and then there's application. They don't always jibe.

$ vim ./build.ini

$ cat ./build.ini
read_dir: ./data
write_dir: ./output
execute_dir: ./
distro: sqlite
database: :memory:

# Write the contents of an Excel sheet as a SQL table
read: 2019_indiv_data.xlsx
write: raw_grp

# Write the contents of a CSV as a SQL table
read: 2019_grp_data.csv
write: raw_indiv

# Execute a standalone SQL script; read a SQL table and save as CSV
execute: do_stuff.sql
read: laforge.demo.aggregate
write: aggregate.csv

# Read the result of an ad-hoc SQL query; write to an HTML table
    "select top 50 *
    from demo.aggregate agg
    left join demo.raw_indiv ri
        on agg.v1 = r1.v2
    order by newid();"
write: results_peek.html

Yeah, but that's imposs—yes, sir.

$ laforge build


📓 Documentation

⚗️ Development

Captain, we can do it... It'll take fifteen years and a research team of a hundred.

Canonical repository at

Issue tracker at

Core build service at

Designed with Diet Coke.

🤖 Automation

LGTM Alerts

PyPI dependencies analysis at

Documentation hosted on Read the Docs

Travis testing with coverage)

Coveralls coverage reporting

🚀 Downstream

GitHub tag (latest by date)


🧙‍ Author

Matt VanEseltine

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

laforge-0.1.6.tar.gz (50.7 kB view hashes)

Uploaded source

Built Distribution

laforge-0.1.6-py3-none-any.whl (68.3 kB view hashes)

Uploaded py3

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