Skip to main content

Typed Simple Object Notation

Project description

TySON

Neil deGrasse Tyson

Neil deGrasse Tyson - an astrophysicist, planetary scientist, author, and science communicator.

Typed Simple Object Notation (TySON) is a text-based type-customizable data-serialization format. The key feature of this format is typing. Each value (primitive and container) contains a type, which can be mapped to a specific data structure during implementation. This expands the ways of processing and storing data.

Grammar

A TySON text is a sequence of tokens wrapped into a journal. There are 4 types of tokens: vector, map, modifier, and primitive

Journal

The journal is key/value pairs separated with commas or semicolons. Key is primitive, value could be any TySON token. A single colon comes after each key. Keys can be not unique.

k|foo|: v|bar|;
k|one|: abs(n|3.14|);
k|two|: l[n|1|, n|2|, n|3|];
k|three|: o{n|1|:s|uno|, n|2|:s|dos|};

Map

The map consists of a type and a pair of curly brackets surrounding zero or more key/value pairs. The type represented as strings, which consists of letters. Key is primitive, value could be any TySON token. A single colon comes after each key. Keys can be not unique.

o{n|1|:s|uno|, n|2|:s|dos|}

Vector

The vector consists of a type and a pair of square brackets surrounding zero or more values. The type represented as strings, which consists of letters. Value could be any TySON token.

l[n|1|, n|2|, n|3|]

Modifier

The modifier consist of type and a pair of round brackets surrounding a single value. The type represented as strings, which consists of letters. Value could be any TySON token.

abs(n|3.14|)

Primitive

Primitive consists of a type and is surrounded by vertical bars value. If the value is empty, vertical bars don't exist. If the type is empty, the value must be surrounded by bars. The type is a string of letters, value is any string.

Valid primitives

type|value|
type
|value|

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

tyson-0.1.5.tar.gz (5.3 kB view details)

Uploaded Source

Built Distributions

tyson-0.1.5-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.1 MB view details)

Uploaded PyPy manylinux: glibc 2.5+ x86-64

tyson-0.1.5-cp310-none-win_amd64.whl (167.8 kB view details)

Uploaded CPython 3.10 Windows x86-64

tyson-0.1.5-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.5+ x86-64

tyson-0.1.5-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (550.8 kB view details)

Uploaded CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

tyson-0.1.5-cp39-none-win_amd64.whl (167.9 kB view details)

Uploaded CPython 3.9 Windows x86-64

tyson-0.1.5-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.5+ x86-64

tyson-0.1.5-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (551.1 kB view details)

Uploaded CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

tyson-0.1.5-cp38-none-win_amd64.whl (168.3 kB view details)

Uploaded CPython 3.8 Windows x86-64

tyson-0.1.5-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.5+ x86-64

tyson-0.1.5-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (550.6 kB view details)

Uploaded CPython 3.8 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

tyson-0.1.5-cp37-none-win_amd64.whl (168.2 kB view details)

Uploaded CPython 3.7 Windows x86-64

tyson-0.1.5-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (240.0 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.5+ x86-64

tyson-0.1.5-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (550.6 kB view details)

Uploaded CPython 3.7m macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

File details

Details for the file tyson-0.1.5.tar.gz.

File metadata

  • Download URL: tyson-0.1.5.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.13.0

File hashes

Hashes for tyson-0.1.5.tar.gz
Algorithm Hash digest
SHA256 24083f9ac9037626b9af56b3571105bbb7158f9c76135d80d0d823fefc45a6e3
MD5 f32f021912c7835d592a15bdd67c0b6c
BLAKE2b-256 2a00b1f44a97d1c5fd8bfb539aceaa4c37cf445105619d4bf38775e5003eeae9

See more details on using hashes here.

File details

Details for the file tyson-0.1.5-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for tyson-0.1.5-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 690dbc480bda1d7a3f77179f93b60f3023a75567e5cb82bc8b3abb0d7775e68a
MD5 7f6301efc9ef30e3cc02cbeb39a19bc8
BLAKE2b-256 ca7247aaa38d8dd78c57854543d8d009f554c24dbba54b0cd8c1236e448d2745

See more details on using hashes here.

File details

Details for the file tyson-0.1.5-cp310-none-win_amd64.whl.

File metadata

  • Download URL: tyson-0.1.5-cp310-none-win_amd64.whl
  • Upload date:
  • Size: 167.8 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.13.3

File hashes

Hashes for tyson-0.1.5-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 e9453206935b2ee524889337ffd0ffe2279fce3dcdf85abe7f7a062fa98704a6
MD5 bce018707da2fdca75f49943918f5a4f
BLAKE2b-256 e6bee183b0f7768d9a2f5b9fd27f4c7d554e271f77edb5049c3f95c13a9503e2

See more details on using hashes here.

File details

Details for the file tyson-0.1.5-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for tyson-0.1.5-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ca3930537722ac21a0e8ff077c9bd8df79e560faf019b1d23779584101ed6c2a
MD5 7c33ee4b23fbee6962def30c31f076c3
BLAKE2b-256 1ec4a1e9bde6a5af46251c2372ac29618040f15f7454564c8ff602726e96f17b

See more details on using hashes here.

File details

Details for the file tyson-0.1.5-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for tyson-0.1.5-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 66df07efda1b08df160594ac19e1b4821cd7581d582ee8f1767f72e63e9fd7cf
MD5 b4f85b7ee1c97ce330fce58712625aba
BLAKE2b-256 6e86d83faf9f92eef97aac72af528031498841725b59728aff9095fdc07fd0bf

See more details on using hashes here.

File details

Details for the file tyson-0.1.5-cp39-none-win_amd64.whl.

File metadata

  • Download URL: tyson-0.1.5-cp39-none-win_amd64.whl
  • Upload date:
  • Size: 167.9 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.13.3

File hashes

Hashes for tyson-0.1.5-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 97dea8e25bb3fdaeb04c0615117831897650197e38a055f842e480a6eb3c2d29
MD5 b83952b6bbb3e68c7353bd1949f9d592
BLAKE2b-256 d60ff6d4965320c440067aba46130e4010a2d626f762ac7d131066ff2beeb6a9

See more details on using hashes here.

File details

Details for the file tyson-0.1.5-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for tyson-0.1.5-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5cd38eb0f72b567c392fbe140da88c19cd626554be5fd3c994318ec96d56a0f7
MD5 ce469ec572203c620f3f278520b5dde1
BLAKE2b-256 fb5e78083269206fa9bfe8be96d94018fbe33cecce9f1384fcc68bd6137ad1e0

See more details on using hashes here.

File details

Details for the file tyson-0.1.5-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for tyson-0.1.5-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 0a7bcbe50884dde35f912734a7a2e326560b376efad21469f78b6788f8400fd4
MD5 35fa0e6d287c747fb56e37beba538f8f
BLAKE2b-256 8fb99f4588159c4c728185a966ab27e1d87a956d98631a1318b4f78c1f63a1b4

See more details on using hashes here.

File details

Details for the file tyson-0.1.5-cp38-none-win_amd64.whl.

File metadata

  • Download URL: tyson-0.1.5-cp38-none-win_amd64.whl
  • Upload date:
  • Size: 168.3 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.13.3

File hashes

Hashes for tyson-0.1.5-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 1cc7819db3fdd3c6b81fd48576b09587a0744694612aff81ab760336a03c00b3
MD5 26df864cbe79fcd651bc8ce055d78ed9
BLAKE2b-256 65aca79bffefe9b49336fa2c4fd84556c05f53a55fe8a2159c90701c298f9450

See more details on using hashes here.

File details

Details for the file tyson-0.1.5-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for tyson-0.1.5-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f0418c18f892fffa81ba549980464d1816b99b71ae40f66f4d8609dac28bf956
MD5 fef3f73c287ad425d4f85248d9edb0bd
BLAKE2b-256 f2e6d1e58290b9bbb5769c53cc10c4839a353836a353482430ef0c3c9f2dbf03

See more details on using hashes here.

File details

Details for the file tyson-0.1.5-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for tyson-0.1.5-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 3d8c0d21e17fc38041001eaba090b414b160e485ca4f5c20ef3fbd31082738b5
MD5 ca701c209ff6db352de43250de45b93c
BLAKE2b-256 efaa33d1924e01e29239ee753151f53eb25e9e6d5b6236f53e874b4fdea5fca3

See more details on using hashes here.

File details

Details for the file tyson-0.1.5-cp37-none-win_amd64.whl.

File metadata

  • Download URL: tyson-0.1.5-cp37-none-win_amd64.whl
  • Upload date:
  • Size: 168.2 kB
  • Tags: CPython 3.7, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.13.3

File hashes

Hashes for tyson-0.1.5-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 b31fc550e3a4d0b49df37f2a6468252cbfc83cb9a54d39f39e29671d1d4cb43e
MD5 e97b1a460b0030edfe7d07b7a9b7f940
BLAKE2b-256 920e02e8901f60318c8a69a029010bb3d7445276e4a6b1d8c127fbf296b65e55

See more details on using hashes here.

File details

Details for the file tyson-0.1.5-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for tyson-0.1.5-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 2dc83a4c38d7555d77e4ecbf87f5e62cd73adccaa093b0d645bece100eb84709
MD5 a2c3c5c921382d9adff3ace71a94ea48
BLAKE2b-256 9b110d306a1ec7aaf22b3acdbedcb75bd74b169a120bd0578c0e771c0544ac9d

See more details on using hashes here.

File details

Details for the file tyson-0.1.5-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for tyson-0.1.5-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 a4ad7342e21eb39ac5a47e6180e0f794355ad5cabfc9240b51e35e07fea4471a
MD5 30d67a5ab995694365fc42a189ccf975
BLAKE2b-256 3acfad704aff98409c53b13be172a27e5fa8982795a8c430fb037467841324fc

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