Skip to main content

Pipe stuff to Stata, get results back.

Project description

# 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.

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

Statpipe-0.1.7.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file Statpipe-0.1.7.tar.gz.

File metadata

  • Download URL: Statpipe-0.1.7.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Statpipe-0.1.7.tar.gz
Algorithm Hash digest
SHA256 eccebafde29944fb396f8c91730b47e01315d3e38500006729a594a1f0db98c1
MD5 1339192610b2ad41b61a3dd1e1a907f6
BLAKE2b-256 0778ed5020cfca7a1f4a24e51986406bb525c785d2ad90839ffc94f08fee3ad0

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