{"id":37166071,"url":"https://github.com/tilebox/tilebox-generate","last_synced_at":"2026-01-14T19:40:44.065Z","repository":{"id":278405277,"uuid":"935327234","full_name":"tilebox/tilebox-generate","owner":"tilebox","description":"CLI for Tilebox Go SDK","archived":false,"fork":false,"pushed_at":"2025-10-23T09:26:22.000Z","size":46,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-23T11:26:43.092Z","etag":null,"topics":["custom-datasets","data-science","distributed-computing","go","satellite-data","space","space-data","space-data-pipeline","space-data-science","tilebox"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tilebox.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-02-19T09:11:22.000Z","updated_at":"2025-10-23T09:26:24.000Z","dependencies_parsed_at":"2025-04-17T17:20:18.088Z","dependency_job_id":"c7c08fa0-de62-477f-81d3-98c4f237b4a7","html_url":"https://github.com/tilebox/tilebox-generate","commit_stats":null,"previous_names":["tilebox/tilebox-datasets-cli"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tilebox/tilebox-generate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilebox%2Ftilebox-generate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilebox%2Ftilebox-generate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilebox%2Ftilebox-generate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilebox%2Ftilebox-generate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tilebox","download_url":"https://codeload.github.com/tilebox/tilebox-generate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilebox%2Ftilebox-generate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28432677,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["custom-datasets","data-science","distributed-computing","go","satellite-data","space","space-data","space-data-pipeline","space-data-science","tilebox"],"created_at":"2026-01-14T19:40:43.380Z","updated_at":"2026-01-14T19:40:44.059Z","avatar_url":"https://github.com/tilebox.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003cimg src=\"https://storage.googleapis.com/tbx-web-assets-2bad228/banners/tilebox-banner.svg\" alt=\"Tilebox Logo\"\u003e\n  \u003cbr\u003e\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://docs.tilebox.com/introduction\"\u003e\u003cb\u003eDocumentation\u003c/b\u003e\u003c/a\u003e\n  |\n  \u003ca href=\"https://console.tilebox.com/\"\u003e\u003cb\u003eConsole\u003c/b\u003e\u003c/a\u003e\n  |\n  \u003ca href=\"https://tilebox.com/discord\"\u003e\u003cb\u003eDiscord\u003c/b\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n# Tilebox Generate\n\nCLI tool to generate Tilebox datasets types for Go. It is intended be used alongside [tilebox-go](https://github.com/tilebox/tilebox-go).\n\n## Installation\n\n```bash\ngo install github.com/tilebox/tilebox-generate@latest\n```\n\n## Examples\n\nGenerate a dataset type for [Sentinel-1 SAR](https://docs.tilebox.com/datasets/open-data) dataset to `./protogen` using $TILEBOX_API_KEY api key:\n\n```bash\ntilebox-generate --dataset open_data.copernicus.sentinel1_sar\n```\n\nSame as above, but override the output directory, package name and message name:\n\n```bash\ntilebox-generate --dataset open_data.copernicus.sentinel1_sar --out ./protogen --package tilebox.v1 --name MyDataset\n```\n\n## Usage\n\n```\nNAME:\n   tilebox-generate - Generate Tilebox datasets types for Go\n\nUSAGE:\n   tilebox-generate [global options]\n\nGLOBAL OPTIONS:\n   --dataset value          A valid dataset slug e.g. 'open_data.copernicus.sentinel1_sar'\n   --out value              The directory to generate output files in (default: protogen)\n   --package value          Package name (default: tilebox.v1)\n   --name value             Protobuf message name for the dataset (optional)\n   --tilebox-api-key value  A Tilebox API key [$TILEBOX_API_KEY]\n   --tilebox-api-url value  The Tilebox API URL (default: https://api.tilebox.com) [$TILEBOX_API_URL]\n   --help, -h               show help\n```\n\n## Usage with go generate\n\nA handy way to generate the dataset types is to use `go generate`. Add the following to your `generate.go` file:\n\n```go\npackage main\n\n//go:generate go tool tilebox-generate --dataset open_data.copernicus.sentinel1_sar\n```\n\nThen run `go generate ./...` to generate the dataset types.\n\n## Usage with tilebox-go\n\nUsage example to [query typed data](https://github.com/tilebox/tilebox-go/blob/main/examples/datasets/query/main.go) from Tilebox.\n\nTo have typed datasets in Go you need to replace `datapoints` type with the generated one.\n\n```go\npackage main\n\nimport (\n\t\"github.com/google/uuid\"\n\t\"github.com/tilebox/tilebox-go/datasets/v1\"\n\t\"log\"\n\n\t// TODO: replace with your own path to the generated package\n\ttileboxv1 \"path/to/protogen/tilebox/v1\"\n)\n\nfunc main() {\n\t// ...\n\n\t// Perform a temporal query\n\t// TODO: replace tileboxv1.Sentinel1Sar with your own dataset type\n\tvar datapoints []*tileboxv1.Sentinel1Sar\n\terr := client.Datapoints.QueryInto(ctx,\n\t\t[]uuid.UUID{collection.ID}, \u0026datapoints,\n\t\tdatasets.WithTemporalExtent(timeInterval),\n\t)\n\tif err != nil {\n\t\tlog.Fatalf(\"Failed to query datapoints: %v\", err)\n\t}\n\t_ = datapoints // now datapoints are typed using tileboxv1.Sentinel1Sar\n\t\n\t// ...\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftilebox%2Ftilebox-generate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftilebox%2Ftilebox-generate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftilebox%2Ftilebox-generate/lists"}