Skip to main content

Statpipe

Statpipe is a simple command line utility allowing Stata commands to be piped into Stata, and the output returned. 2 For example:

echo "di 2+2" | statpipe
. di 2^2
4

You can also use in interactive mode (although state isn’t saved across calculations):

statpipe
> Enter a stata expression (e.g. di 2*2):
di 2*2
> Cached output re-used
> . di 2*2
> 4

Or from a Python script you can import and use like so:

from statpipe import run_stata_code
print run_stata_code("di 2+2").split("\n")
> ['. di 2+2', '4', '']

To install, download and:

cd statpipe
python setup.py install #you might need to sudo if installing in system python

or

pip install statpipe

Dependencies

Obviously depends on Stata.

Tested with version 12 through 14 on OS X. Should work for Linux/Unix too.

Metadata

Release files for Statpipe 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Statpipe 0.1.9
File Size Uploaded Provenance Actions
Statpipe-0.1.9.tar.gz 3.2 kB Without provenance Details for Statpipe-0.1.9.tar.gz

Release files / Statpipe-0.1.9.tar.gz

Download URL Statpipe-0.1.9.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
eff867d5d5c2918deecbf3343074682b659ab80e1d467d60b033f1ad37577aae
BLAKE2b-256 checksum
How to use checksums
94afd3519a24f29e50c023458e086e23fb85fd3ba90052b4db0beba00c849a67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for Statpipe 0.1.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page