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+.
Release files for stata-setup 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| stata_setup-0.1.3.tar.gz | 6.7 kB | Details |
Release files / stata_setup-0.1.3.tar.gz
| Download URL | stata_setup-0.1.3.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
feaa49fd2f3b6994ded705c495c93b61f563e3836389bed3dae7a66234b5f562
|
|
BLAKE2b-256 checksum How to use checksums |
23cf76b5180ab0556e6d1ed6ce0bbd6e4bfdeda8e39bd9b30a44a34d49eecea8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|