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


💻 Begin

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
Enjoy!

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

$ vim ./build.ini
...

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

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

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

# Execute a standalone SQL script; read a SQL table and save as CSV
[do_some_things]
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
[peek]
read:
    "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

https://laforge.readthedocs.io/en/latest/

⚗️ Development

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

Canonical repository is at git.sr.ht.

Issue tracker is at todo.sr.ht.

Build service is at builds.sr.ht.

Designed with Diet Coke.

🤖 Automated Checks

LGTM Alerts

Dependencies analysis

Latest version of documentation on Read the Docs

Travis (.com)

🚀 Descendant Releases

GitHub tag (latest by date)

PyPI

🧙‍ Author: Matt VanEseltine

matvan@umich.edu

https://git.sr.ht/~matvan

https://github.com/vaneseltine

https://twitter.com/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.4.tar.gz (47.3 kB view details)

Uploaded Source

Built Distribution

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

laforge-0.1.4-py3-none-any.whl (66.8 kB view details)

Uploaded Python 3

File details

Details for the file laforge-0.1.4.tar.gz.

File metadata

  • Download URL: laforge-0.1.4.tar.gz
  • Upload date:
  • Size: 47.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for laforge-0.1.4.tar.gz
Algorithm Hash digest
SHA256 6801401b847d5d30cfede05a5adc384e923856148cca5117def404defa53f296
MD5 ca29668b2e06ea1f7dab51dfd05ce795
BLAKE2b-256 97a94093dc339fd2e4380ec4595f3ec77f12bdeb075bf7ca1445b8a65afbe601

See more details on using hashes here.

File details

Details for the file laforge-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: laforge-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 66.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for laforge-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 21e25c2cdca681ea168e4057ba46ff2101ff4036d0b5428a55d0e5b63bff2d90
MD5 b1bfba070b4bb44568613ecfd1505bf7
BLAKE2b-256 65179f254353049f66a50ae5b9daf401747959a1aad50711217303e34a53daa6

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