Skip to main content

A Python implementation of the Simple Data Transfer Protocol data structures, function, and server

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 columns 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 `RemoteSDTPTable` (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.  `Columns` is the only mandatory entry for a table.  It 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
1. SDTP_STRING: A string.  In Python, class str.
2. SDTP_NUMBER: A real or an integer.  In Python, class float or class int.
3. SDTP_BOOLEAN: true or false. In Python, class bool.
4. SDTP_DATE: A date.  In Python, class datetime.date
5. SDTP_DATETIME: A datetime.  In Python, class datetime.datetime
6. SDTP_TIME_OF_DAY: A time.  In Python, class datetime.time

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sdtp-0.1.0.tar.gz (38.3 kB view details)

Uploaded Source

Built Distribution

sdtp-0.1.0-py2.py3-none-any.whl (31.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file sdtp-0.1.0.tar.gz.

File metadata

  • Download URL: sdtp-0.1.0.tar.gz
  • Upload date:
  • Size: 38.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.4

File hashes

Hashes for sdtp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b68ae8d9bf9f67f7792f83730e8aabb7b9f3a250764b90f1503525e15bb401e2
MD5 eb7e16b43a32e59d4308eed9d432eda6
BLAKE2b-256 9a1b8f1c09274eac9dfb99ba4f94a871f8d3e27d5e4f2b215e8b47a87332f0a7

See more details on using hashes here.

File details

Details for the file sdtp-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: sdtp-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 31.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.4

File hashes

Hashes for sdtp-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0cada673abaa0f7f494adb899e22c11988ec10a5b0916fd39ac4dacd13cf9d88
MD5 ff141e87e160b4a64760e8da320c02eb
BLAKE2b-256 8b6c9a373035027929c2d5f974eb00c5e399cb49a65924e8f0f789f169cb69bb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page