import-scripts

Version, currently main branch1 version
  • main branchlatestJun 23, 2025

github.com/place-labs/scripts

Placeos import, updating and debugging scripts

1 stars
0 dependents
License: not declared

Installation

# Add this to your shard.yml
dependencies:
  import-scripts:
    github: place-labs/scripts
    branch: main

main is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
no constraint declared
Targets
  • import_desks from src/import_desks.cr
  • import_modules from src/import_modules.cr
  • import_bookings from src/import_bookings.cr
  • import_schedules from src/import_schedules.cr

Dependencies

Runtime Dependencies

  • placeos*github: placeos/crystal-client, branch: master
  • connect-proxy*github: spider-gazelle/connect-proxy

README

Example Import Scripts

Modify for importing your specific data. Recommend:

  1. writing scripts that can be executed multiple times
  2. use a source of truth like a published Google Sheets (publish in TSV format for best results)
  3. use API keys for instance access

Usage

  1. shards build
  2. ./bin/import_bookings
  3. ./bin/import_desks

Desk Command line switches

  • -f ./data.tsv if you have the data locally
  • -u https://path_to_TSV if you've published a google sheet
  • -d https://placeos.domain the placeos instance
  • -k abs1234xfndsx the placeos api key

i.e.

./bin/import_desks -d "https://placeos.domain" -k "c3c1ebeb60d94dcc96caf5fae12"