All Projects → xmonader → nim-redisparser

xmonader / nim-redisparser

Licence: BSD-3-Clause License
RESP(REdis Serialization Protocol) Serialization for Nim

Programming Languages

nim
578 projects

Projects that are alternatives of or similar to nim-redisparser

indelope
find large indels (in the blind spot between GATK/freebayes and SV callers)
Stars: ✭ 38 (+137.5%)
Mutual labels:  nim-lang
nim-lmdb
Nim LMDB wrapper
Stars: ✭ 31 (+93.75%)
Mutual labels:  nim-lang
LatexDSL
A mini DSL to generate LaTeX from Nim
Stars: ✭ 22 (+37.5%)
Mutual labels:  nim-lang
cpython
Alternative StdLib for Nim for Python targets, hijacks Python StdLib for Nim
Stars: ✭ 75 (+368.75%)
Mutual labels:  nim-lang
easywave
Easy WAVE file handling for Nim
Stars: ✭ 18 (+12.5%)
Mutual labels:  nim-lang
resp-server
Netty implementation of REdis Serialization Protocol, and a simple framework to implement command based protocols
Stars: ✭ 40 (+150%)
Mutual labels:  resp
cpuwhat
Nim utilities for advanced CPU operations: CPU identification, ISA extension detection, bindings to assorted intrinsics
Stars: ✭ 25 (+56.25%)
Mutual labels:  nim-lang
cosmonim
A simple example to show how cosmopolitan libc can be used with Nim
Stars: ✭ 90 (+462.5%)
Mutual labels:  nim-lang
nim-gatabase
Connection-Pooling Compile-Time ORM for Nim
Stars: ✭ 103 (+543.75%)
Mutual labels:  nim-lang
webgui
Web Technologies based Crossplatform GUI Framework with Dark theme
Stars: ✭ 81 (+406.25%)
Mutual labels:  nim-lang
flake-nimble
Nimble packages Nix flake [maintainer=@ehmry]
Stars: ✭ 26 (+62.5%)
Mutual labels:  nim-lang
grim
grim brings property graphs to the Nim language. Look around you: everything is a graph!
Stars: ✭ 44 (+175%)
Mutual labels:  nim-lang
nim magic
Nim cell magic for JupyterLab or Juypter Python Notebooks.
Stars: ✭ 41 (+156.25%)
Mutual labels:  nim-lang
sound-garden
A personal journey into the audio synth domain
Stars: ✭ 21 (+31.25%)
Mutual labels:  nim-lang
Neel
A Nim library for making Electron-like HTML/JS GUI apps, with full access to Nim capabilities.
Stars: ✭ 144 (+800%)
Mutual labels:  nim-lang
nim-dashing
Terminal dashboards for Nim
Stars: ✭ 105 (+556.25%)
Mutual labels:  nim-lang
unofficial-webapp-office-poc1
Access all of your favorite Office 365 apps from Linux
Stars: ✭ 31 (+93.75%)
Mutual labels:  nim-lang
nim-syslog
Nim syslog module
Stars: ✭ 17 (+6.25%)
Mutual labels:  nim-lang
nimodpi
Oracle ODPI-C wrapper for Nim
Stars: ✭ 17 (+6.25%)
Mutual labels:  nim-lang
nim-telegram-bot
Nim Telegram Bot.
Stars: ✭ 18 (+12.5%)
Mutual labels:  nim-lang

nim-resp

RESP(REdis Serialization Protocol) Serialization for Nim

How to use

  echo $encodeValue(RedisValue(kind:vkStr, s:"Hello, World"))
  # # +Hello, World
  echo $encodeValue(RedisValue(kind:vkInt, i:341))
  # # :341
  echo $encodeValue(RedisValue(kind:vkError, err:"Not found"))
  # # -Not found
  echo $encodeValue(RedisValue(kind:vkArray, l: @[RedisValue(kind:vkStr, s:"Hello World"), RedisValue(kind:vkInt, i:23)]  ))
  # #*2
  # #+Hello World
  # #:23

  echo $encodeValue(RedisValue(kind:vkBulkStr, bs:"Hello, World THIS IS REALLY NICE"))
  # #$32
  # # Hello, World THIS IS REALLY NICE  
  echo decodeString("*3\r\n:1\r\n:2\r\n:3\r\n\r\n")
  # # @[1, 2, 3]
  echo decodeString("+Hello, World\r\n")
  # # Hello, World
  echo decodeString("-Not found\r\n")
  # # Not found
  echo decodeString(":1512\r\n")
  # # 1512
  echo $decodeString("$32\r\nHello, World THIS IS REALLY NICE\r\n")
  # Hello, World THIS IS REALLY NICE
  echo decodeString("*2\r\n+Hello World\r\n:23\r\n")
  # @[Hello World, 23]
  echo decodeString("*2\r\n*3\r\n:1\r\n:2\r\n:3\r\n\r\n*5\r\n:5\r\n:7\r\n+Hello Word\r\n-Err\r\n$6\r\nfoobar\r\n")
  # @[@[1, 2, 3], @[5, 7, Hello Word, Err, foobar]]
  echo $decodeString("*4\r\n:51231\r\n$3\r\nfoo\r\n$-1\r\n$3\r\nbar\r\n")
  # @[51231, foo, , bar]

Roadmap

  • Protocol serializer/deserializer
  • Tests
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].