statadict
Small package that allows reading Stata dictionary files (usually .dct extension).
Extracted information can be used with Pandas when calling read_fwf() function.
Setup
To install package locally:
python3 -m pip install statadict --user
Or directly from repository:
make all
python3 -m pip install . --user
Usage
Having Stata dictionary file and related fixed width field csv file without headers, you can now use Pandas to read data:
import pandas as pd
from statadict import parse_stata_dict
stata_dict = parse_stata_dict(file="dictionary-file.dct")
data = pd.read_fwf("related-fwf-file.dat", names=stata_dict.names, colspecs=stata_dict.colspecs)
Metadata
Release files for statadict 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| statadict-1.1.0.tar.gz | 11.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| statadict-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.9 kB
Release files / statadict-1.1.0.tar.gz
| Download URL | statadict-1.1.0.tar.gz |
|---|---|
| Size | 11.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6b804811b77c0acff213d5fc27484e75bb79ed492fd3a2a958ecb04b2d2592f3
|
|
BLAKE2b-256 checksum How to use checksums |
528be504b3d97916e661f4eb681047a4f921123bc3688c3930b7f9c4e162eb8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.0
|
Release files / statadict-1.1.0-py3-none-any.whl
| Download URL | statadict-1.1.0-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
67d739f46cc9495c200126d59259243d11bdde35eba9b57b69ac85eeb8a7578f
|
|
BLAKE2b-256 checksum How to use checksums |
5103eb50a0bafb5afabcae3efb57e0fdd477ff1016dddc6953727e46b34d6637
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.0
|
Security for statadict 1.1.0
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.