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:

pip install triple-s-survey

Or with uv:

uv 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.5.6

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.5.6
File Size Uploaded Provenance Actions
triple_s_survey-0.5.6.tar.gz 5.1 MB Without provenance Details for triple_s_survey-0.5.6.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for triple-s-survey 0.5.6
File Actions
triple_s_survey-0.5.6-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for triple_s_survey-0.5.6-cp310-abi3-win_amd64.whl
triple_s_survey-0.5.6-cp310-abi3-manylinux_2_28_x86_64.whl CPython 3.10 abi3 Linux glibc 2.28+ x86-64 Details for triple_s_survey-0.5.6-cp310-abi3-manylinux_2_28_x86_64.whl
triple_s_survey-0.5.6-cp310-abi3-manylinux_2_28_aarch64.whl CPython 3.10 abi3 Linux glibc 2.28+ ARM64 Details for triple_s_survey-0.5.6-cp310-abi3-manylinux_2_28_aarch64.whl
triple_s_survey-0.5.6-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for triple_s_survey-0.5.6-cp310-abi3-macosx_11_0_arm64.whl
triple_s_survey-0.5.6-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for triple_s_survey-0.5.6-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 129.6 MB

Release files / triple_s_survey-0.5.6.tar.gz

Download URL triple_s_survey-0.5.6.tar.gz
Size 5.1 MB
Tags Source
SHA-256 checksum
How to use checksums
b4e76025e6600ae92d422c43baa101f509019d5e904624cd953dfd509cfe9b2e
BLAKE2b-256 checksum
How to use checksums
50c1b3ebc19f9da2a1b647219d1849d8d7e33d91bdc80c4c053a65e2dfe5730e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","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.5.6-cp310-abi3-win_amd64.whl

Download URL triple_s_survey-0.5.6-cp310-abi3-win_amd64.whl
Size 23.8 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
6220abe55de0efbc7707cd689f96536b2cb918d9929095724152f7792c4eb60d
BLAKE2b-256 checksum
How to use checksums
f89313019d139e7bfb34e7f125bf3176b94e778f04c01733a0d8371ac99faec8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","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.5.6-cp310-abi3-manylinux_2_28_x86_64.whl

Download URL triple_s_survey-0.5.6-cp310-abi3-manylinux_2_28_x86_64.whl
Size 26.3 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
83212af822b63c7784beb7668b20d2eaad75e40fd502252aa15419e9cd7c45e0
BLAKE2b-256 checksum
How to use checksums
803388cb76fe65695ec2e08250ebc39a2bca606e06149882d576e3ba6ca24c81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","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.5.6-cp310-abi3-manylinux_2_28_aarch64.whl

Download URL triple_s_survey-0.5.6-cp310-abi3-manylinux_2_28_aarch64.whl
Size 28.5 MB
Tags CPython 3.10 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
607339a179eebcacbe860ccb85b1e588e7b0a8f6015bf1b889e1dab7ab69ce60
BLAKE2b-256 checksum
How to use checksums
527c543e079f8b1dcd70e6566fd6b2a081c3f855b10db56831f5c97ff6a106f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","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.5.6-cp310-abi3-macosx_11_0_arm64.whl

Download URL triple_s_survey-0.5.6-cp310-abi3-macosx_11_0_arm64.whl
Size 22.5 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
5781592e680395ed18c35c4964e3f949092d28c8e4d8af46771ea01cfed62f87
BLAKE2b-256 checksum
How to use checksums
adaf61489351b85a5cd4078237bef864753c224fafd04009f9833e1d45016e2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","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.5.6-cp310-abi3-macosx_10_12_x86_64.whl

Download URL triple_s_survey-0.5.6-cp310-abi3-macosx_10_12_x86_64.whl
Size 23.5 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
7b45f161ea169df11982f7785af1809ba87974a10330e0492697b12fc7d8f8a9
BLAKE2b-256 checksum
How to use checksums
64405b0634b29688c45f4ee92c3b2955c25b75e0ce45dd194727742a725626c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","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.5.6

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