Skip to content

feat(sdk): Add std python sdk to wheel#147

Merged
devsjc merged 1 commit intomainfrom
devsjc/python-output
Apr 1, 2026
Merged

feat(sdk): Add std python sdk to wheel#147
devsjc merged 1 commit intomainfrom
devsjc/python-output

Conversation

@devsjc
Copy link
Copy Markdown
Contributor

@devsjc devsjc commented Apr 1, 2026

Contribution Checklist

  • Have you followed the Open Climate Fix Contribution Guidelines?
  • Have you referenced the Issue this PR addresses, where applicable?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added a summary of the changes?
  • Have you written new tests for your changes, where applicable?
  • Have you successfully run make lint with your changes locally?
  • Have you successfully run make test with your changes locally?

Warning

PRs may be closed if all the above boxes are not checked.

Changes in this Pull Request

Adds standard python grpc generated files in the python sdk wheel.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 1, 2026

Benchmark Results

Benchmark results
?   	github.com/openclimatefix/data-platform/cmd	[no test files]
?   	github.com/openclimatefix/data-platform/internal/gen/ocf/dp	[no test files]
?   	github.com/openclimatefix/data-platform/internal/interceptors	[no test files]
PASS
ok  	github.com/openclimatefix/data-platform/internal/server/dummy	0.005s
{"level":"debug","time":"2026-04-01T08:52:55Z","message":"Completed migrations"}
goos: linux
goarch: amd64
pkg: github.com/openclimatefix/data-platform/internal/server/postgres
cpu: AMD EPYC 7763 64-Core Processor                
BenchmarkPostgresClient/small/GetForecastAsTimeseries-4         	      70	  15753666 ns/op
BenchmarkPostgresClient/small/GetForecastAtTimestamp-4          	     283	   4080369 ns/op
BenchmarkPostgresClient/small/GetObservationsAsTimeseries-4     	     944	   1236760 ns/op
BenchmarkPostgresClient/small/CreateForecast-4                  	      91	  12785670 ns/op
PASS
ok  	github.com/openclimatefix/data-platform/internal/server/postgres	68.881s
?   	github.com/openclimatefix/data-platform/internal/server/postgres/gen	[no test files]
Benchmark vs base branch
goos: linux
goarch: amd64
pkg: github.com/openclimatefix/data-platform/internal/server/postgres
cpu: AMD EPYC 7763 64-Core Processor                
                                                   │ bench-devsjc-python-output.txt │
                                                   │             sec/op             │
PostgresClient/small/GetForecastAsTimeseries-4                         15.75m ± ∞ ¹
PostgresClient/small/GetForecastAtTimestamp-4                          4.080m ± ∞ ¹
PostgresClient/small/GetObservationsAsTimeseries-4                     1.237m ± ∞ ¹
PostgresClient/small/CreateForecast-4                                  12.79m ± ∞ ¹
geomean                                                                5.646m
¹ need >= 6 samples for confidence interval at level 0.95

cpu: Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz
                                                   │ bench-main.txt │
                                                   │     sec/op     │
PostgresClient/small/GetForecastAsTimeseries-4         17.72m ± ∞ ¹
PostgresClient/small/GetForecastAtTimestamp-4          3.714m ± ∞ ¹
PostgresClient/small/GetObservationsAsTimeseries-4     1.025m ± ∞ ¹
PostgresClient/small/CreateForecast-4                  11.74m ± ∞ ¹
geomean                                                5.306m
¹ need >= 6 samples for confidence interval at level 0.95

@devsjc devsjc merged commit ce4a4a6 into main Apr 1, 2026
4 checks passed
@devsjc devsjc deleted the devsjc/python-output branch April 1, 2026 08:55
devsjc added a commit that referenced this pull request Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant