Official Python interface for the SDDS (Self Describing Data Sets) format.
Project description
SDDS Python Module
The sdds Python module provides a high-level interface for creating, manipulating, and reading Self Describing Data Sets (SDDS) files, a file protocol designed for storing and transferring scientific data.
Features
- Read and Write SDDS files in ASCII and binary formats.
- Support for all SDDS data types: parameters, arrays, and columns.
- Define and manipulate data with ease.
- Multi-page data handling for advanced use cases.
Requirements
- Python 3.9 or higher
- An SDDS-compatible environment with the necessary C library dependencies (already integrated into this module).
Installation
You can install the sdds module directly using pip:
python -m pip install soliday.sdds
Usage
Creating an SDDS File
Below is an example of how to create an SDDS file with parameters, columns, and arrays.
from sdds import SDDS
# Initialize an SDDS object
sdds_obj = SDDS(0)
# Set a description
sdds_obj.setDescription("Example SDDS file", "This file contains parameters, columns, and arrays.")
# Define parameters, columns, and arrays
sdds_obj.defineSimpleParameter("example_parameter", SDDS.SDDS_DOUBLE)
sdds_obj.defineSimpleColumn("example_column", SDDS.SDDS_LONG)
sdds_obj.defineSimpleArray("example_array", SDDS.SDDS_FLOAT, 1)
# Populate data
sdds_obj.setParameterValue("example_parameter", 3.14, page=1)
sdds_obj.setColumnValueList("example_column", [1, 2, 3, 4], page=1)
sdds_obj.setArrayValueList("example_array", [0.1, 0.2, 0.3], [3], page=1)
# Save to a file
sdds_obj.save("output_example.sdds")
Reading an SDDS File
Here’s how to read and inspect an SDDS file:
from sdds import SDDS
# Initialize the SDDS object
sdds_obj = SDDS(0)
# Load the file
sdds_obj.load("output_example.sdds")
# Inspect contents
print("Description:", sdds_obj.description)
print("Parameters:", sdds_obj.parameterName)
print("Columns:", sdds_obj.columnName)
print("Arrays:", sdds_obj.arrayName)
Documentation
For detailed documentation, examples, and API references, visit the SDDS Python Module Documentation.
License
This project is licensed under the SDDS Toolkit License. See the LICENSE file for details.
Contact
For questions or support, email soliday@anl.gov
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file soliday.sdds-5.7.0-py3-none-manylinux_2_17_x86_64.whl.
File metadata
- Download URL: soliday.sdds-5.7.0-py3-none-manylinux_2_17_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: Python 3, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2c18d03629cd45b47bbf7af80325834a63b16d8017205fc1c8cec2dd9f6406b
|
|
| MD5 |
ab76794cbbb56bdb56ed67210e45ab73
|
|
| BLAKE2b-256 |
1287a8c56dc858132d224602a338fcdb131f323aebb47b0f0b829fab71367d87
|
File details
Details for the file soliday.sdds-5.7.0-py3-none-macosx_11_0_x86_64.whl.
File metadata
- Download URL: soliday.sdds-5.7.0-py3-none-macosx_11_0_x86_64.whl
- Upload date:
- Size: 422.8 kB
- Tags: Python 3, macOS 11.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c59ae40fbcc1089dfe571ef282c3258355e37eec99ff44b7fcc55de6eb089814
|
|
| MD5 |
bffed0ebe79d817bea3ad32c06e16910
|
|
| BLAKE2b-256 |
fc8bf86d99ba14934242205a4bce29de17bc1f4704981b1cbe1e6e97d7c59819
|
File details
Details for the file soliday.sdds-5.7.0-py3-none-macosx_11_0_arm64.whl.
File metadata
- Download URL: soliday.sdds-5.7.0-py3-none-macosx_11_0_arm64.whl
- Upload date:
- Size: 391.5 kB
- Tags: Python 3, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
893f289a0b4405779fc4a24d2d8bcbccd794d77eae583f83ff28c3107bbcfbe7
|
|
| MD5 |
aeb3b853b1095c43ce06d90a456299a6
|
|
| BLAKE2b-256 |
757c36751b37e60de0be0c5ca28fd8c8c746931d3d2de39ac64bc80be6b5a3f5
|
File details
Details for the file soliday.sdds-5.7.0-cp313-none-win_amd64.whl.
File metadata
- Download URL: soliday.sdds-5.7.0-cp313-none-win_amd64.whl
- Upload date:
- Size: 568.3 kB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa4727d6de8775b02a0aac9a6660f108b98b9654b2eaa5161e1ea60acb4af018
|
|
| MD5 |
98a1bee83b54bffabbbfc2a7c5bb1648
|
|
| BLAKE2b-256 |
046ceafe178d15bf65e7ea80f2af5c62754f270826fd3f252a513e94bafa3367
|
File details
Details for the file soliday.sdds-5.7.0-cp312-none-win_amd64.whl.
File metadata
- Download URL: soliday.sdds-5.7.0-cp312-none-win_amd64.whl
- Upload date:
- Size: 568.3 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b6435a9434608afd672fe91e0b56b18e5df51442fe5a4299fba1753e1d7adb4
|
|
| MD5 |
f4c460f507240efaef219ef084b79f06
|
|
| BLAKE2b-256 |
376b7c848ec2833a7d40775a126bbb581deae34d695d3c43c11668160d1f40bd
|
File details
Details for the file soliday.sdds-5.7.0-cp311-none-win_amd64.whl.
File metadata
- Download URL: soliday.sdds-5.7.0-cp311-none-win_amd64.whl
- Upload date:
- Size: 568.3 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3260c488a9aeeb32ee8916f336eea3491e30ae34cee30ffe445ce480e625296c
|
|
| MD5 |
19e7fedce80c179923ad7e4c4551b7ee
|
|
| BLAKE2b-256 |
28e954326c265f2d21427cea55864aa698b9606c2fbc2b3e4d7cb14aaaedea0c
|
File details
Details for the file soliday.sdds-5.7.0-cp310-none-win_amd64.whl.
File metadata
- Download URL: soliday.sdds-5.7.0-cp310-none-win_amd64.whl
- Upload date:
- Size: 568.3 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd664493b5ae523fa5602bda3107686e1094d990cf1c9bcb4156e696f8bc5970
|
|
| MD5 |
67bbbe0c280cec34d2e7f547dcf8cc22
|
|
| BLAKE2b-256 |
76a43867de909209986091e789a7610da8ca08e1e67590ce851d8a165f28ba5e
|
File details
Details for the file soliday.sdds-5.7.0-cp39-none-win_amd64.whl.
File metadata
- Download URL: soliday.sdds-5.7.0-cp39-none-win_amd64.whl
- Upload date:
- Size: 568.2 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09b37186c5195824dd81c15274275183f653debaa98577e2b361d92685851da5
|
|
| MD5 |
01343c43fc18e0a33b860076e41d15df
|
|
| BLAKE2b-256 |
13041e800f3c2189b3b9fbba2233606d2d2e76e5401b7ceb9b869e63d505d27b
|