Skip to main content

Expandable module of statistical data utilities

Reason this release was yanked:

minor errors in code

Project description

DATAU - Batch Statistical Data Utilities

Cross-platform batch runner for statistical and numerical files.

Installation

pip install pydatau

Quick example

python:

from datau import autorun

autorun(path_data="my_project/data", pattern='master', log_limit=1)

bash:

datau "my_project/data" -p "master" -l 1

Supported Extensions and Execution Method

Extension Language/Tool Method
.ipynb Jupyter Notebook papermill
.R R rpy2.robjects
.do Stata Stata batch mode
.jl Julia julia (must be in PATH)
.gms GAMS gams (must be in PATH)
.run AMPL ampl (must be in PATH)
.m MATLAB/Octave matlab.engine or Oct2Py

User Reference

autorun(path_data='...', pattern='...', *args, **kwargs)

Automatically runs matching statistical scripts in the given directory. Generates a number of .log files with outputs for each executed file.

Parameters:

path_data : str, default = current working directory
Path to the directory with input files.

pattern : str, optional
Regex pattern to match filenames (not paths), such as 'master'. Case-insensitive.

date_fmt : str, default = '%Y%m%d_%H%M%S'
Datetime format for .log filenames.

log_limit : int, optional
If set, limits the number of log files per script. Older logs beyond this limit will be deleted. Please note that you can turn off logging by setting log_limit to 0.

use_powershell : bool, default = False
If True, redirects via PowerShell on Windows. Ignored on POSIX.

License

MIT License — see the LICENSE file.

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

pydatau-1.0.3.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

pydatau-1.0.3-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file pydatau-1.0.3.tar.gz.

File metadata

  • Download URL: pydatau-1.0.3.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for pydatau-1.0.3.tar.gz
Algorithm Hash digest
SHA256 c295cc31bedd6e4820f8203308e50f383413b4a5d6388e5cb9dcf2bb5e6575e9
MD5 e4f1b27d6585b034e4c2e941b282e359
BLAKE2b-256 316ceff902d08d2b28971ea40a38e1dd3d21788f4316549fef19a2311251e6ea

See more details on using hashes here.

File details

Details for the file pydatau-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: pydatau-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for pydatau-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9d44b09c6b51bef4e99eee3ab61a39576e9b48c05cb2337a3a18a9495edc7d77
MD5 896caf31c5c2b0a8e568d0e3b2504cf2
BLAKE2b-256 619e542d6c9cbbfb2f93d23311535d81ec156b9a5db57990e24723517091a0b6

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