Simple Data Transfer Protocol (SDTP) reference implementation
Project description
The Simple Data Transfer Protcol
This is a reference server and library for the Simple Data Transfer Protocol. It demonstrates the Simple Data Transfer Protocol Server API. It also functions as an open framework, so new Tables can be attached to the Simple Data Transfer Protocol server by providing a Class with a get_rows() method and a schema property.
The README.md file in each directory gives the documentation for the utilities and classes in that directory.
The structure is as follows:
├── sdtp
│ ├── sdtp_server: A reference SDTP server and middleware
│ ├── sdtp: The basic SDTP types, including Filters and Tables
The Simple Data Transfer Protocol
The SDTP Server implements the Simple Data Transfer Protocol, a universal way to query and transmit tabular data. The SDTP uses http/https as the underlying transport protocol. There is no client; rather, a program accessing an SDTP server creates a RemoteSDMLTable (see sdtp.sdtp_table.py) and accesses that through the standard SDTP Table methods.
This is a quick summary of the Simple Data Transfer Protocol. A more extended description can be found at:
Basic Data Structure
The core data structure of the SDTP is a table, which is simply a list of list of values. Conceptually, it is equivalent to a SQL database table; each column has a specific type and each row is of the same, fixed length. The Python definitions are in sdtp.sdtp_table.py. type and schema are the only mandatory entries for a table. type is a strng specifying the table table. schema is a list of columns, each of which is a dictionary with two mandatory fields: name and type. Other fields (e.g., to express units or other metadata) are permitted.
The Python implementation of table types is in sdtp.sdtp_table.py
Simple Data Transfer Protocol Data Types
This is a list of the permissible types. Each column of a table is of one of these types See sdtp.sdtp_utils.py. The native types these convert to are language-specific
- SDML_STRING: A string. In Python, class str.
- SDML_NUMBER: A real or an integer. In Python, class float or class int.
- SDML_BOOLEAN: true or false. In Python, class bool.
- SDML_DATE: A date. In Python, class datetime.date
- SDML_DATETIME: A datetime. In Python, class datetime.datetime
- SDML_TIME_OF_DAY: A time. In Python, class datetime.time
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 Distribution
Built Distribution
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 sdtp-2025.10.1.tar.gz.
File metadata
- Download URL: sdtp-2025.10.1.tar.gz
- Upload date:
- Size: 55.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7926cb534fe2bdd32c3eb30c86b117742ebd3969ce3de2420a027d20ed43d43e
|
|
| MD5 |
c5a5cdc53e6a53b8b0eeaf83a32df9d2
|
|
| BLAKE2b-256 |
dc98e27bd38c4e6636ae92ece2e391aa9cd54693644fcf2789b617555877951b
|
File details
Details for the file sdtp-2025.10.1-py3-none-any.whl.
File metadata
- Download URL: sdtp-2025.10.1-py3-none-any.whl
- Upload date:
- Size: 42.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec3e737981434146d56352df8d9d5d0dabade2479a111e0e993948c2cc6792bf
|
|
| MD5 |
2365b2be1bc3a9a038f640f41972abde
|
|
| BLAKE2b-256 |
770f84e1791128aafc501f1b995bf57dc0c596eedb8c23d94c3887a160aa8880
|