Skip to main content

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

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for triple-s-survey 0.4.212
File Size Uploaded Provenance Actions
triple_s_survey-0.4.212.tar.gz 304.8 kB Without provenance Details for triple_s_survey-0.4.212.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for triple-s-survey 0.4.212
File Actions
triple_s_survey-0.4.212-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for triple_s_survey-0.4.212-cp310-abi3-win_amd64.whl
triple_s_survey-0.4.212-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.212-cp310-abi3-manylinux_2_28_x86_64.whl
triple_s_survey-0.4.212-cp310-abi3-manylinux_2_28_aarch64.whl CPython 3.10 abi3 Linux glibc 2.28+ ARM64 Details for triple_s_survey-0.4.212-cp310-abi3-manylinux_2_28_aarch64.whl
triple_s_survey-0.4.212-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for triple_s_survey-0.4.212-cp310-abi3-macosx_11_0_arm64.whl
triple_s_survey-0.4.212-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for triple_s_survey-0.4.212-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 121.6 MB

Release files / triple_s_survey-0.4.212.tar.gz

Download URL triple_s_survey-0.4.212.tar.gz
Size 304.8 kB
Tags Source
SHA-256 checksum
How to use checksums
bc8216280fb85634ebd47c48451f1a18e25bc79ed7767f54d404950bc7158df3
BLAKE2b-256 checksum
How to use checksums
e9a3dbdb399bd7639918569307deba4e2e4fe3e525f5843f9052aa626d92b5f1
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.212-cp310-abi3-win_amd64.whl

Download URL triple_s_survey-0.4.212-cp310-abi3-win_amd64.whl
Size 22.9 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
96525c35c9d18b9488ef027a59eff3086920862abf9e44ab4ac2c787e131fcac
BLAKE2b-256 checksum
How to use checksums
a7fb8d944d8f3cccce8d24e7b1dfbc960b054c6ba26a52f23384621a147a458e
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.212-cp310-abi3-manylinux_2_28_x86_64.whl

Download URL triple_s_survey-0.4.212-cp310-abi3-manylinux_2_28_x86_64.whl
Size 25.6 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
f50858dde196c1ecf024328fecbbbb1654c137ee44619127298ae0f3ac0f0390
BLAKE2b-256 checksum
How to use checksums
598664f0965b9b894cf2be1038f6b350288efa52d1856fedb18ba308a9ca038a
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.212-cp310-abi3-manylinux_2_28_aarch64.whl

Download URL triple_s_survey-0.4.212-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
59ca03f38360bfbc23b30f27ba8714f8fd4f78b48c54cde06c7f8c874216f244
BLAKE2b-256 checksum
How to use checksums
5ad84e8c9797d4081f109efaf8c23b7d74c9113db3bd05394a3c7d823ba6028c
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.212-cp310-abi3-macosx_11_0_arm64.whl

Download URL triple_s_survey-0.4.212-cp310-abi3-macosx_11_0_arm64.whl
Size 22.1 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c0c71c7fe4bf526105a3025d0966bb46a3a471442a74661fab71179a27a7cb76
BLAKE2b-256 checksum
How to use checksums
a3d5b996947437b1dc3fdd7f9d2bf6e2bd8dff03b7d6e17790a04019e6d49836
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.212-cp310-abi3-macosx_10_12_x86_64.whl

Download URL triple_s_survey-0.4.212-cp310-abi3-macosx_10_12_x86_64.whl
Size 23.0 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
4975cc824f56fab28ad8327e24dd01a5059a254fe0e560751995eb78d1473f40
BLAKE2b-256 checksum
How to use checksums
e8e87028e20a18680d538e8bae419bfa5146f680cac285f67436462f36f21b54
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.212

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.

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