kxi publish
Publish to tickerplant or RT.
Usage:
text
Copy
kxi publish [OPTIONS]
Options:
text
Copy
--mode [tp|rt] tp: publish data via a tickerplant rt:
publish data using Reliable Transport (RT)
--url TEXT RT configuration URL
--endpoint TEXT RT endpoint
--name TEXT Used to distinguish multiple RT publishers
on the same host
--stream TEXT RT stream name
--path TEXT The parent path of RT log directories
--port INTEGER the port at the host (TP/QIPC)
--data TEXT The following use cases are supported: - a
file path on the local filesystem (eg.
'/home/user/data.csv') - an HTTP/S3/GS URL
- http://localhost:8080/data.csv -
s3://bucket_name/data.csv -
gs://bucket_name/data.csv - a directory
('/home/user/data') - in this case, all
files in the directory get published (non-
recursive) [required]
--table TEXT the name of a table in the database to
insert data into [required]
--file-format [csv|json|parquet|json_records]
If file_format is not provided, it will be
set based on the file extension.
--type-map TEXT JSON object of column names -> target data
types to override default Pandas type
casting. Target data type can be timespan,
timestamp, numeric. Example:
type_map={"time": "TIMEDELTA", "realTime":
"DATETIME"}
--help Show this message and exit.