Skip to content

Commit

Permalink
Add dump_sbs.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mrvanes committed Mar 7, 2024
1 parent e3ef156 commit 43bd180
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions dump_sbs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/env python
import sys
import yaml
import json

from sbs import SBS


def main():
if len(sys.argv) < 2:
sys.exit(sys.argv[0] + " <conf.yml>")

with open(sys.argv[1]) as f:
config = yaml.safe_load(f)

src = SBS(config['sbs']['src'])
sync = src.api("api/plsc/sync")

print(json.dumps(sync, indent=2))


if __name__ == "__main__":
main()

0 comments on commit 43bd180

Please sign in to comment.