triple-s
A parser for reading parsing Triple-S datamap files (.sss), backend by rust via PyO3 and maturin.
Most of the core functions are completed, there are some imporvement coming in the future.
Documentations:
Rust: docs.rs
Python: readthedocs.org (under construction, more informative documentation coming soon)
Rust
Add the crate to your project:
cargo add triple_s
More detailed documentations can be foud in docs.rs
Python
Python API mirrors that of Rusts', with some minor tweaks to accomdate python's typing system.
Getting started
Install with:
pip install triple-s-survey
Read a triple-s survey file
Read a triple-s survey file via read_triple_s function:
from triple_s import read_triple_s
survey = read_triple_s("path/to/datamap.sss", "path/to/data.asc")
More usage examples can be found in the survey data task recipe page.
Read just the datamap
from triple_s import read_datamap
datamap = read_datamap("path/to/datamap.sss")
print(datamap.title)
Accessing contents within a datamap:
# Lookup by question name, case insensitive
print(datamap["Q1"].label)
print(datamap['q1'].label) # this will also do
Edit the loaded datamap:
datamap["q1"].title = "New title"
question = datamap["Q1"]
question.text = "Updated question text"
More usage examples can be found in the datamap task recipe page.
Development
Install the Python development dependencies and build the extension with:
maturin develop
Run the Rust tests with:
cargo test
AI usage
I handwrote majorities of the code with some very minor support of ai,
mostly on writing biolerplate getter & setters, the basic html of python's documentation page,
and some routine code realted with text parsing in src/classic.rs. Also, I used AI to evaluate some of the edge cases
that I missed.
Everything else, including the source code, the documentation, api interface, example usage etc., are written by myself. If any error/ typo feel free to pull request.
License
MIT license
Metadata
Release files for triple-s-survey 0.4.21
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 |
|---|---|---|---|---|
| triple_s_survey-0.4.21.tar.gz | 301.9 kB | Without provenance | Details for triple_s_survey-0.4.21.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| triple_s_survey-0.4.21-cp310-abi3-win_amd64.whl | CPython 3.10 | abi3 | Windows x86-64 | Details for triple_s_survey-0.4.21-cp310-abi3-win_amd64.whl |
| triple_s_survey-0.4.21-cp310-abi3-manylinux_2_28_x86_64.whl | CPython 3.10 | abi3 | Linux glibc 2.28+ x86-64 | Details for triple_s_survey-0.4.21-cp310-abi3-manylinux_2_28_x86_64.whl |
| triple_s_survey-0.4.21-cp310-abi3-manylinux_2_28_aarch64.whl | CPython 3.10 | abi3 | Linux glibc 2.28+ ARM64 | Details for triple_s_survey-0.4.21-cp310-abi3-manylinux_2_28_aarch64.whl |
| triple_s_survey-0.4.21-cp310-abi3-macosx_11_0_arm64.whl | CPython 3.10 | abi3 | macOS 11.0+ ARM64 | Details for triple_s_survey-0.4.21-cp310-abi3-macosx_11_0_arm64.whl |
| triple_s_survey-0.4.21-cp310-abi3-macosx_10_12_x86_64.whl | CPython 3.10 | abi3 | macOS 10.12+ x86-64 | Details for triple_s_survey-0.4.21-cp310-abi3-macosx_10_12_x86_64.whl |
Total release size: 121.4 MB
Release files / triple_s_survey-0.4.21.tar.gz
| Download URL | triple_s_survey-0.4.21.tar.gz |
|---|---|
| Size | 301.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6911ef54a7f065cb5d29bf83a38308d09150d77faba2e70b7e7e1b0e98b419de
|
|
BLAKE2b-256 checksum How to use checksums |
9e78e8c80e5089fa8e32595d557807a922d1dc9b144f4d05e47b420bf3a09f01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / triple_s_survey-0.4.21-cp310-abi3-win_amd64.whl
| Download URL | triple_s_survey-0.4.21-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 22.9 MB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
c3ae424a10cd97246c4d78a16446f389620fd0205b2ac1473335ecea9b25ee65
|
|
BLAKE2b-256 checksum How to use checksums |
211833a36a35ee2db2984095329a41716c2f42ab106428c49f9058b2ad27ae0f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / triple_s_survey-0.4.21-cp310-abi3-manylinux_2_28_x86_64.whl
| Download URL | triple_s_survey-0.4.21-cp310-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 25.5 MB |
| Tags | CPython 3.10 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
422e62f4d6cb2012f63992ec20454a2d94b78150d00a5b35ee619862fba44d7d
|
|
BLAKE2b-256 checksum How to use checksums |
b00060296451c54f9cb5c3abdd13f5dbc1b08d4fedd04d1a84c1c4cf34bb1da9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / triple_s_survey-0.4.21-cp310-abi3-manylinux_2_28_aarch64.whl
| Download URL | triple_s_survey-0.4.21-cp310-abi3-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 27.7 MB |
| Tags | CPython 3.10 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
2d51baa7dd171c52ae4482a2f59f54413b42f111eca7fb28d2e5e06e3a8ae69f
|
|
BLAKE2b-256 checksum How to use checksums |
7df89db344fa4eecd18435565018e03d7fbcc2b93774a2a5ed57a8aef16425e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / triple_s_survey-0.4.21-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | triple_s_survey-0.4.21-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 22.0 MB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
542e9049f10dfd97622658bc5a6765893c90e4c041c2966167cde9ffcc850d0d
|
|
BLAKE2b-256 checksum How to use checksums |
7f36420987530307bcb621fc643c429a1881913dbb6b8834daa95f68548ccbed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / triple_s_survey-0.4.21-cp310-abi3-macosx_10_12_x86_64.whl
| Download URL | triple_s_survey-0.4.21-cp310-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 22.9 MB |
| Tags | CPython 3.10 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
323968613ad2ce0ddb5195b95dae079dad9793522998125681e4764edf0231dd
|
|
BLAKE2b-256 checksum How to use checksums |
900fe01b0dab67af8f76dd0186989f62a55a01fa0d363d5cc506eac05eb63897
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for triple-s-survey 0.4.21
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.