Skip to main content

Basic but fast network communication between scientific applications

Project description

py-hi-tension, hi-tension for Python

py-hi-tension is a Python module designed for basic but fast network communication between scientific applications, backed by hi-tension. The focus is on transferring large unsized arrays of f64 with maximum throughput and minimum latency. More informations to be found in hi-tension's github page.

Usage

Using the library is quite simple:

# Connect to a server
socket = HiTensionSocket.connect("127.0.0.1:34487")
# You can make such a server though the following line:
# socket = HiTensionSocket.accept("127.0.0.1:34487")

# Send a simple text message
socket.send(b"status\n")
# Receive a simple text message
text_data = socket.read()

# Send formatted data as simple text message
id = 1
msg = f"do_something {id + 1}\n"
socket.send(msg.encode())

# Send formatted data and receive a high tension message
msg = f"fly {id}\n"
socket.send(msg.encode())
array = socket.hiread() # array is a numpy array

# Send the array back as a high tension message
socket.hisend(array)
socket.hidelimiter()

# You can send the array back
socket.hisend(array)
socket.hidelimiter()

# You may send your data in multible packets
socket.hisend(array[:10])
socket.hisend(array[10:])
socket.hidelimiter()
# This is useful for example if you are calculating your data while
# transferring it.

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

hi_tension-0.1.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

hi_tension-0.1.0-cp36-abi3-win_amd64.whl (137.4 kB view details)

Uploaded CPython 3.6+Windows x86-64

hi_tension-0.1.0-cp36-abi3-win32.whl (131.1 kB view details)

Uploaded CPython 3.6+Windows x86

hi_tension-0.1.0-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (892.4 kB view details)

Uploaded CPython 3.6+manylinux: glibc 2.17+ ARM64

hi_tension-0.1.0-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (904.3 kB view details)

Uploaded CPython 3.6+manylinux: glibc 2.12+ x86-64

hi_tension-0.1.0-cp36-abi3-manylinux_2_12_i686.manylinux2010_i686.whl (944.0 kB view details)

Uploaded CPython 3.6+manylinux: glibc 2.12+ i686

hi_tension-0.1.0-cp36-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (479.8 kB view details)

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

hi_tension-0.1.0-cp36-abi3-macosx_10_7_x86_64.whl (237.8 kB view details)

Uploaded CPython 3.6+macOS 10.7+ x86-64

File details

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

File metadata

  • Download URL: hi_tension-0.1.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

File hashes

Hashes for hi_tension-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0a0722888a7662373db14effddc2cf9ac2d6d128af5871d47376ca3244d500b0
MD5 9a9a4e96e6102083ec7f28fb8f3264a6
BLAKE2b-256 1b9f18031cb6d8dd006252586d6c9af46b2e07503b6bb6aa6e5989c47b8acc24

See more details on using hashes here.

File details

Details for the file hi_tension-0.1.0-cp36-abi3-win_amd64.whl.

File metadata

  • Download URL: hi_tension-0.1.0-cp36-abi3-win_amd64.whl
  • Upload date:
  • Size: 137.4 kB
  • Tags: CPython 3.6+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

File hashes

Hashes for hi_tension-0.1.0-cp36-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 8476194eb7f711eff02fcc797e7629102188fac232734b8a1cab95b525ea7556
MD5 b4b4842d1acc29d591c761e32a58a2de
BLAKE2b-256 5be18c52c77e9bbb2b1a3e8412a069e8da19c0c8cb0cab105dcf633801886896

See more details on using hashes here.

File details

Details for the file hi_tension-0.1.0-cp36-abi3-win32.whl.

File metadata

  • Download URL: hi_tension-0.1.0-cp36-abi3-win32.whl
  • Upload date:
  • Size: 131.1 kB
  • Tags: CPython 3.6+, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

File hashes

Hashes for hi_tension-0.1.0-cp36-abi3-win32.whl
Algorithm Hash digest
SHA256 fda515e40ab9cf392b2a46661882ffee321a1b2f4a958c187086d671303acf05
MD5 7af150ef419090ce10fd32216fa06995
BLAKE2b-256 b7f362a757307f04ef1ffd0f6a694c2ed810435947586669f78f7289322ab134

See more details on using hashes here.

File details

Details for the file hi_tension-0.1.0-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for hi_tension-0.1.0-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 066ebf598f71b51aaa8e74dad363d7412d6792f423949e9bcdd5fabcba55b420
MD5 e02fea6bf0d9f28bfe32f83324add9ef
BLAKE2b-256 25dae28e4432d63dbd6461a33394fca90f922fbbe46d0950d0b061ee7a186663

See more details on using hashes here.

File details

Details for the file hi_tension-0.1.0-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for hi_tension-0.1.0-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 acf59698f44e1892c242aabde6e06cc882ae45287f126b76e13662b5a52e4706
MD5 9cdf0214593814e9f9184700626e79d3
BLAKE2b-256 1ce836381cfeaef8fa265b9a0e479e0837374321e9ee67dfa6f24170f2a95932

See more details on using hashes here.

File details

Details for the file hi_tension-0.1.0-cp36-abi3-manylinux_2_12_i686.manylinux2010_i686.whl.

File metadata

File hashes

Hashes for hi_tension-0.1.0-cp36-abi3-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 2934b6ab97892c0c0fb6d53b067bb4d04eb05a2d479f59c957168b61c4add6d4
MD5 c8d3cd5b3b9a5aa7b904b48fec5e2b05
BLAKE2b-256 098c1c2c6aed85cb8859c5cd0c18d352c2a1ec58d02cfc638c0fc5639bfd7340

See more details on using hashes here.

File details

Details for the file hi_tension-0.1.0-cp36-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for hi_tension-0.1.0-cp36-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 1670b7088c7c5682a1cd179d1b851292701648182adfba4f9dbfc92151a31619
MD5 5117b79c15b23e0ea6853218b439aa57
BLAKE2b-256 3fe45464d121582ca46ecd49332722c0f508ab0f88d576379163ca7132d6dd61

See more details on using hashes here.

File details

Details for the file hi_tension-0.1.0-cp36-abi3-macosx_10_7_x86_64.whl.

File metadata

  • Download URL: hi_tension-0.1.0-cp36-abi3-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 237.8 kB
  • Tags: CPython 3.6+, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

File hashes

Hashes for hi_tension-0.1.0-cp36-abi3-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 1ab7c4d8d01b161ff736281d04034c36da30aa41bab188372803e001ec420407
MD5 c56ba11e6fcd86cae03889fd4cf262ce
BLAKE2b-256 021a6a4020ee3eff7f98476ea6e315bec1667e6c4a42fe3a2a78f635144472eb

See more details on using hashes here.

Supported by

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