https://github.com/motiva-ai/pipeline-transit
Transit handlers for other Motiva pipeline libraries
https://github.com/motiva-ai/pipeline-transit
Last synced: 3 months ago
JSON representation
Transit handlers for other Motiva pipeline libraries
- Host: GitHub
- URL: https://github.com/motiva-ai/pipeline-transit
- Owner: Motiva-AI
- License: mit
- Created: 2021-05-07T03:24:20.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-10-27T06:01:20.000Z (over 2 years ago)
- Last Synced: 2024-02-22T22:06:30.792Z (over 1 year ago)
- Language: Clojure
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# pipeline-transit
[](https://clojars.org/ai.motiva/pipeline-transit)
This is a convenience library containing Transit handlers. It is used by other Motiva pipeline libraries.
## Usage
```clj
pipeline-transit.core=> (write-transit-str :foo)
"[\"~#'\",\"~:foo\"]"pipeline-transit.core=> (read-transit-str *1)
:foo
```Supports `java.time` objects.
```clj
pipeline-transit.core=> (require 'tick.alpha.api)
nilpipeline-transit.core=> (write-transit-str (tick.alpha.api/date-time "2019-11-01T02:00"))
"[\"~#date-time\",\"2019-11-01T02:00\"]"pipeline-transit.core=> (read-transit-str *1)
#time/date-time "2019-11-01T02:00"
```