SPSS Converter
Simple format converter utility for SPSS data files
Branch |
Unit Tests |
|---|---|
|
|
|
|
|
|
|
|
The SPSS Converter is a simple utility that facilitates the easy conversion of SPSS data to / from a variety of formats, including:
CSV
JSON
YAML
Excel
Pandas DataFrame
COMPLETE DOCUMENTATION: http://spss-converter.readthedocs.org/en/latest/index.html
Installation
To install the SPSS Converter via Pip just execute:
$ pip install spss-converter
Dependencies
Python 3.x |
|---|
* Pandas v0.24 or higher
* Pyreadstat v1.0 or higher
* OpenPyXL v.3.0.7 or higher
* PyYAML v3.10 or higher
* simplejson v3.0 or higher
* Validator-Collection v1.5.0 or higher
|
Why the SPSS Converter?
If you work with SPSS data in the Python ecosystem, you probably use a combination of two or three key libraries: Pandas, Pyreadstat, and savReaderWriter. All three libraries are vital tools, incredibly well-constructed, designed, and managed. But over the years, I have found that converting from SPSS to other file formats using these libraries requires some fairly repetitive boilerplate code. So why not make it easier?
The SPSS Converter library is a simple wrapper around the Pyreadstat and Pandas libraries that provides a clean and simple API for reading data files in a variety of formats and converting them to a variety of formats. The semantics are super simple, and should be as simple as: spss_converter.to_csv('my-spss-file.sav') or spss_converter.from_json('my-json-file.json').
Key SPSS Converter Features
With one function call, convert an SPSS file into:
a Pandas DataFrame
CSV
JSON
YAML
Excel
a dict
With one function call, create an SPSS data file from data in:
a Pandas DataFrame
CSV
JSON
YAML
Excel
a dict
With one function call, generate a Pythonic data map or meta-data collection from your SPSS data file.
Decide which variables (columns) you want to include / exclude when doing your conversion.
SPSS Converter vs Alternatives
For a comparison of the SPSS Converter to various alternative conversion approaches, please see full documentation: https://spss-converter.readthedocs.io/en/latest/index.html#spss-converter-vs-alternatives
Complete Documentation
The SPSS Converter is a simple library, but its functions are comprehensively documented at:
Questions and Issues
You can ask questions and report issues on the project’s Github Issues Page
Contributing
We welcome contributions and pull requests! For more information, please see the Contributor Guide
Testing
We use TravisCI for our build automation, Codecov.io for our test coverage, and ReadTheDocs for our documentation.
Detailed information about our test suite and how to run tests locally can be found in our Testing Reference.
License
The SPSS Converter is made available under an MIT License.
Metadata
Release files for spss-converter 0.2.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 | Actions |
|---|---|---|---|---|
| spss-converter-0.2.0.tar.gz | 19.9 kB | Without provenance | Details for spss-converter-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spss_converter-0.2.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for spss_converter-0.2.0-py2.py3-none-any.whl |
Total release size: 37.0 kB
Release files / spss-converter-0.2.0.tar.gz
| Download URL | spss-converter-0.2.0.tar.gz |
|---|---|
| Size | 19.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8495a070f942e0906182d4594764c838041becb7883c16078ba3657263a106e3
|
|
BLAKE2b-256 checksum How to use checksums |
f9a4af793a3d69cbf7746b355670decb9f60a013c776200e9010320bc1ef36ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Release files / spss_converter-0.2.0-py2.py3-none-any.whl
| Download URL | spss_converter-0.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 17.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
688bdc7934a6670f54ec90bd733b4c5a414c6d43f06d35d306ba55bf01d15069
|
|
BLAKE2b-256 checksum How to use checksums |
63d8a2e9d8a7d73e68d1692e24b182d5baab0e5509eb080f2c5b20680d24007e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Security for spss-converter 0.2.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.