Skip to main content

A module for configuring and initializing Stata within Python

Project description

The stata_setup module is used to configure and initialize Stata within Python. After the initialization, you can use the pystata Python package, which is shipped with Stata 17, to interact Stata with Python.

After the module is installed, you can type

>>> import stata_setup
>>> stata_setup.config('your_stata_installation_directory', 'your_stata_edition')

in your Python environment to initialize Stata. For example, if you have Stata installed in C:\Program Files\Stata17\ and you use the Stata/MP edition, then Stata can be initialized as follows:

>>> import stata_setup
>>> stata_setup.config('C:/Program Files/Stata17/', 'mp')

See Configuration for more information on how to configure and initialize Stata from within Python.

stata_setup runs with Python 2.7+ and 3.4+.

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

stata_setup-0.1.2.tar.gz (2.3 kB view hashes)

Uploaded Source

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