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')
If Stata is initialized correctly, it will return with a splash screen with Stata’s logo and initialization message. To suppress these messages, set the splash argument to False, as follows:
>>> stata_setup.config('C:/Program Files/Stata17/', 'mp', splash=False)
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
File details
Details for the file stata_setup-0.1.3.tar.gz
.
File metadata
- Download URL: stata_setup-0.1.3.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.25.1 setuptools/57.0.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | feaa49fd2f3b6994ded705c495c93b61f563e3836389bed3dae7a66234b5f562 |
|
MD5 | 088a54e92d601d2eac89b59eec7ddef9 |
|
BLAKE2b-256 | 23cf76b5180ab0556e6d1ed6ce0bbd6e4bfdeda8e39bd9b30a44a34d49eecea8 |