Skip to content

Commit

Permalink
regenerate fern code to support pydantic v1 and v2 (#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoralez authored Apr 25, 2024
1 parent 06cebcc commit 1e0b0a8
Show file tree
Hide file tree
Showing 37 changed files with 12,414 additions and 882 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/fern-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Fern check

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
fern-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v4

- name: Install fern
run: npm install -g fern-api

- name: Generate code
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
run: fern generate --group publish --local --log-level=debug

- name: Copy files
run: rm generated/__init__.py && cp -r generated/* nixtla

- name: Verify no changes were made
run: if git diff --exit-code; then echo "No changes"; else echo "Changes were made"; exit 1; fi
4 changes: 4 additions & 0 deletions fern/fern.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"organization": "nixtla",
"version": "0.22.0"
}
14 changes: 14 additions & 0 deletions fern/generators.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
groups:
publish:
generators:
- name: fernapi/fern-python-sdk
version: 1.1.0-rc4
output:
location: local-file-system
path: ../generated
config:
client_class_name: Nixtla
package_name: nixtla
flat_layout: true
pydantic_config:
version: both
5,712 changes: 5,712 additions & 0 deletions fern/openapi/timegpt.json

Large diffs are not rendered by default.

11 changes: 5 additions & 6 deletions nixtla/_modidx.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@
'nixtla.core.api_error': {},
'nixtla.core.client_wrapper': {},
'nixtla.core.datetime_utils': {},
'nixtla.core.file': {},
'nixtla.core.http_client': {},
'nixtla.core.jsonable_encoder': {},
'nixtla.core.pydantic_utilities': {},
'nixtla.core.remove_none_from_dict': {},
'nixtla.core.request_options': {},
'nixtla.date_features': { 'nixtla.date_features.CountryHolidays': ( 'date_features.html#countryholidays',
'nixtla/date_features.py'),
'nixtla.date_features.CountryHolidays.__call__': ( 'date_features.html#countryholidays.__call__',
Expand Down Expand Up @@ -137,25 +141,20 @@
'nixtla.nixtla_client.validate_model_parameter': ( 'nixtla_client.html#validate_model_parameter',
'nixtla/nixtla_client.py')},
'nixtla.types.http_validation_error': {},
'nixtla.types.model': {},
'nixtla.types.multi_series_anomaly': {},
'nixtla.types.multi_series_anomaly_model': {},
'nixtla.types.multi_series_cross_validation': {},
'nixtla.types.multi_series_cross_validation_fewshot_loss': {},
'nixtla.types.multi_series_cross_validation_finetune_loss': {},
'nixtla.types.multi_series_cross_validation_model': {},
'nixtla.types.multi_series_forecast': {},
'nixtla.types.multi_series_forecast_fewshot_loss': {},
'nixtla.types.multi_series_forecast_finetune_loss': {},
'nixtla.types.multi_series_forecast_model': {},
'nixtla.types.multi_series_input': {},
'nixtla.types.multi_series_insample_forecast': {},
'nixtla.types.multi_series_insample_forecast_model': {},
'nixtla.types.single_series_forecast': {},
'nixtla.types.single_series_forecast_fewshot_loss': {},
'nixtla.types.single_series_forecast_finetune_loss': {},
'nixtla.types.single_series_forecast_model': {},
'nixtla.types.single_series_insample_forecast': {},
'nixtla.types.single_series_insample_forecast_model': {},
'nixtla.types.validation_error': {},
'nixtla.types.validation_error_loc_item': {},
'nixtla.utils': {'nixtla.utils.colab_badge': ('utils.html#colab_badge', 'nixtla/utils.py')}}}
Loading

0 comments on commit 1e0b0a8

Please sign in to comment.