Skip to main content

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

Metadata

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)

Source distribution for stata-setup 0.1.3
File Size Uploaded Provenance
stata_setup-0.1.3.tar.gz 6.7 kB Without provenance 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

Security for stata-setup 0.1.3

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.

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