mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-23 02:01:55 +00:00
14 lines
196 B
Python
14 lines
196 B
Python
import cbor
|
|
import json
|
|
import sys
|
|
|
|
import JSON_CBOR
|
|
|
|
#print(sys.argv[1])
|
|
|
|
msg = JSON_CBOR.Message(sys.argv[1], "json")
|
|
with open(sys.argv[2], "wb") as of:
|
|
cbor.dump(msg.raw, of)
|
|
|
|
print("OK")
|