narwhalapi 0.1.0__tar.gz → 0.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {narwhalapi-0.1.0 → narwhalapi-0.2.0}/CHANGELOG.md +10 -0
- {narwhalapi-0.1.0 → narwhalapi-0.2.0}/PKG-INFO +1 -1
- {narwhalapi-0.1.0 → narwhalapi-0.2.0}/pyproject.toml +1 -1
- narwhalapi-0.2.0/src/narwhalapi/_generated/__init__.py +3 -0
- {narwhalapi-0.1.0 → narwhalapi-0.2.0}/src/narwhalapi/_generated/models.py +64 -2
- {narwhalapi-0.1.0 → narwhalapi-0.2.0}/src/narwhalapi/_generated/operations.py +5 -3
- narwhalapi-0.2.0/src/narwhalapi/_version.py +1 -0
- {narwhalapi-0.1.0 → narwhalapi-0.2.0}/src/narwhalapi/codes.py +1 -0
- {narwhalapi-0.1.0 → narwhalapi-0.2.0}/src/narwhalapi/models.py +6 -2
- narwhalapi-0.1.0/src/narwhalapi/_generated/__init__.py +0 -3
- narwhalapi-0.1.0/src/narwhalapi/_version.py +0 -1
- {narwhalapi-0.1.0 → narwhalapi-0.2.0}/LICENSE +0 -0
- {narwhalapi-0.1.0 → narwhalapi-0.2.0}/README.md +0 -0
- {narwhalapi-0.1.0 → narwhalapi-0.2.0}/hatch_build.py +0 -0
- {narwhalapi-0.1.0 → narwhalapi-0.2.0}/src/narwhalapi/__init__.py +0 -0
- {narwhalapi-0.1.0 → narwhalapi-0.2.0}/src/narwhalapi/_client.py +0 -0
- {narwhalapi-0.1.0 → narwhalapi-0.2.0}/src/narwhalapi/_deadline.py +0 -0
- {narwhalapi-0.1.0 → narwhalapi-0.2.0}/src/narwhalapi/_decode.py +0 -0
- {narwhalapi-0.1.0 → narwhalapi-0.2.0}/src/narwhalapi/_meta.py +0 -0
- {narwhalapi-0.1.0 → narwhalapi-0.2.0}/src/narwhalapi/_pagination.py +0 -0
- {narwhalapi-0.1.0 → narwhalapi-0.2.0}/src/narwhalapi/_transport.py +0 -0
- {narwhalapi-0.1.0 → narwhalapi-0.2.0}/src/narwhalapi/errors.py +0 -0
- {narwhalapi-0.1.0 → narwhalapi-0.2.0}/src/narwhalapi/py.typed +0 -0
- {narwhalapi-0.1.0 → narwhalapi-0.2.0}/src/narwhalapi/webhooks.py +0 -0
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.0 — unreleased (pending owner GO)
|
|
4
|
+
|
|
5
|
+
- Breaking: economic calendar releases now carry Narwhal's English `name`, a permanent
|
|
6
|
+
`series_id`, a `topic` and a `stage` beside the publisher's `title`, and each schedule
|
|
7
|
+
carries its `local_date`. The API lists releases compactly by default; the SDK always asks
|
|
8
|
+
for the full release (`view=full`), so every field stays typed. Research articles are no
|
|
9
|
+
longer listed.
|
|
10
|
+
- `CALENDAR_NOT_PUBLISHED` for the 404 returned when a holiday calendar year is not published.
|
|
11
|
+
- FX bars publish their five fields again in the contract (no wire change).
|
|
12
|
+
|
|
3
13
|
## 0.1.0 — 2026-10-09
|
|
4
14
|
|
|
5
15
|
- Initial typed synchronous and asynchronous clients for the stable API: economics,
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# Generated from spec/live/openapi.json sha256 549d8458a8dcfbbccea3ea4b23f7d9163c6525ce932e4c5f6657fdd9b728985c. Do not edit.
|
|
2
|
+
# Generated from spec/next/openapi.json sha256 549d8458a8dcfbbccea3ea4b23f7d9163c6525ce932e4c5f6657fdd9b728985c. Do not edit.
|
|
3
|
+
"""Generated contract surface."""
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# Generated from spec/live/openapi.json sha256
|
|
2
|
-
# Generated from spec/next/openapi.json sha256
|
|
1
|
+
# Generated from spec/live/openapi.json sha256 549d8458a8dcfbbccea3ea4b23f7d9163c6525ce932e4c5f6657fdd9b728985c. Do not edit.
|
|
2
|
+
# Generated from spec/next/openapi.json sha256 549d8458a8dcfbbccea3ea4b23f7d9163c6525ce932e4c5f6657fdd9b728985c. Do not edit.
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
from dataclasses import dataclass, field
|
|
@@ -323,6 +323,18 @@ class QuoteRole:
|
|
|
323
323
|
EXCLUDED: Literal["excluded"] = "excluded"
|
|
324
324
|
|
|
325
325
|
|
|
326
|
+
class ReleaseStage:
|
|
327
|
+
"""Known values; response fields also accept future strings."""
|
|
328
|
+
|
|
329
|
+
ADVANCE: Literal["advance"] = "advance"
|
|
330
|
+
FINAL: Literal["final"] = "final"
|
|
331
|
+
FIRST: Literal["first"] = "first"
|
|
332
|
+
FLASH: Literal["flash"] = "flash"
|
|
333
|
+
PRELIMINARY: Literal["preliminary"] = "preliminary"
|
|
334
|
+
SECOND: Literal["second"] = "second"
|
|
335
|
+
THIRD: Literal["third"] = "third"
|
|
336
|
+
|
|
337
|
+
|
|
326
338
|
class ReleaseStatus:
|
|
327
339
|
"""Known values; response fields also accept future strings."""
|
|
328
340
|
|
|
@@ -331,6 +343,42 @@ class ReleaseStatus:
|
|
|
331
343
|
SCHEDULED: Literal["scheduled"] = "scheduled"
|
|
332
344
|
|
|
333
345
|
|
|
346
|
+
class ReleaseTopic:
|
|
347
|
+
"""Known values; response fields also accept future strings."""
|
|
348
|
+
|
|
349
|
+
BALANCE_OF_PAYMENTS: Literal["balance_of_payments"] = "balance_of_payments"
|
|
350
|
+
BUSINESS_CONFIDENCE: Literal["business_confidence"] = "business_confidence"
|
|
351
|
+
CONSTRUCTION: Literal["construction"] = "construction"
|
|
352
|
+
CONSUMER_CONFIDENCE: Literal["consumer_confidence"] = "consumer_confidence"
|
|
353
|
+
CONSUMER_PRICES: Literal["consumer_prices"] = "consumer_prices"
|
|
354
|
+
EMPLOYMENT: Literal["employment"] = "employment"
|
|
355
|
+
ENERGY: Literal["energy"] = "energy"
|
|
356
|
+
GDP: Literal["gdp"] = "gdp"
|
|
357
|
+
HOME_SALES: Literal["home_sales"] = "home_sales"
|
|
358
|
+
HOUSE_PRICES: Literal["house_prices"] = "house_prices"
|
|
359
|
+
HOUSEHOLD_SPENDING: Literal["household_spending"] = "household_spending"
|
|
360
|
+
HOUSING_CONSTRUCTION: Literal["housing_construction"] = "housing_construction"
|
|
361
|
+
IMPORT_EXPORT_PRICES: Literal["import_export_prices"] = "import_export_prices"
|
|
362
|
+
INDUSTRIAL_PRODUCTION: Literal["industrial_production"] = "industrial_production"
|
|
363
|
+
INVESTMENT: Literal["investment"] = "investment"
|
|
364
|
+
JOBLESS_CLAIMS: Literal["jobless_claims"] = "jobless_claims"
|
|
365
|
+
LABOUR_FORCE: Literal["labour_force"] = "labour_force"
|
|
366
|
+
MANUFACTURING: Literal["manufacturing"] = "manufacturing"
|
|
367
|
+
MERCHANDISE_TRADE: Literal["merchandise_trade"] = "merchandise_trade"
|
|
368
|
+
MONEY_CREDIT: Literal["money_credit"] = "money_credit"
|
|
369
|
+
OTHER: Literal["other"] = "other"
|
|
370
|
+
POLICY_COMMUNICATION: Literal["policy_communication"] = "policy_communication"
|
|
371
|
+
POLICY_MINUTES: Literal["policy_minutes"] = "policy_minutes"
|
|
372
|
+
POLICY_RATE: Literal["policy_rate"] = "policy_rate"
|
|
373
|
+
PRODUCER_PRICES: Literal["producer_prices"] = "producer_prices"
|
|
374
|
+
PUBLIC_FINANCE: Literal["public_finance"] = "public_finance"
|
|
375
|
+
RETAIL_SALES: Literal["retail_sales"] = "retail_sales"
|
|
376
|
+
SERVICES: Literal["services"] = "services"
|
|
377
|
+
TOURISM: Literal["tourism"] = "tourism"
|
|
378
|
+
WAGES: Literal["wages"] = "wages"
|
|
379
|
+
WHOLESALE_TRADE: Literal["wholesale_trade"] = "wholesale_trade"
|
|
380
|
+
|
|
381
|
+
|
|
334
382
|
class ResolutionKind:
|
|
335
383
|
"""Known values; response fields also accept future strings."""
|
|
336
384
|
|
|
@@ -682,6 +730,7 @@ class EconomicRelease:
|
|
|
682
730
|
country: str
|
|
683
731
|
family: str
|
|
684
732
|
indicators: list[EconomicReleaseIndicator] | None = None
|
|
733
|
+
name: str
|
|
685
734
|
notice: str | None = None
|
|
686
735
|
observed_at: str | None = None
|
|
687
736
|
officially_published_at: str | None = None
|
|
@@ -689,8 +738,11 @@ class EconomicRelease:
|
|
|
689
738
|
release_id: str
|
|
690
739
|
revision: int | None = None
|
|
691
740
|
schedule: EconomicReleaseSchedule
|
|
741
|
+
series_id: str | None = None
|
|
742
|
+
stage: str | None = None
|
|
692
743
|
status: str
|
|
693
744
|
title: str
|
|
745
|
+
topic: str | None = None
|
|
694
746
|
variant: str | None = None
|
|
695
747
|
version: str
|
|
696
748
|
meta: ResponseMeta = field(default_factory=ResponseMeta, compare=False)
|
|
@@ -721,6 +773,7 @@ class EconomicReleaseIndicator:
|
|
|
721
773
|
class EconomicReleaseSchedule:
|
|
722
774
|
at: str | None = None
|
|
723
775
|
date: str | None = None
|
|
776
|
+
local_date: str | None = None
|
|
724
777
|
precision: str
|
|
725
778
|
time_basis: str | None = None
|
|
726
779
|
timezone: str | None = None
|
|
@@ -2064,6 +2117,7 @@ def decode_EconomicRelease(
|
|
|
2064
2117
|
]
|
|
2065
2118
|
if data.get("indicators") is not None
|
|
2066
2119
|
else None,
|
|
2120
|
+
name=read_str(data["name"]),
|
|
2067
2121
|
notice=read_str(data["notice"]) if data.get("notice") is not None else None,
|
|
2068
2122
|
observed_at=read_str(data["observed_at"])
|
|
2069
2123
|
if data.get("observed_at") is not None
|
|
@@ -2079,8 +2133,13 @@ def decode_EconomicRelease(
|
|
|
2079
2133
|
if data.get("revision") is not None
|
|
2080
2134
|
else None,
|
|
2081
2135
|
schedule=decode_EconomicReleaseSchedule(data["schedule"]),
|
|
2136
|
+
series_id=read_str(data["series_id"])
|
|
2137
|
+
if data.get("series_id") is not None
|
|
2138
|
+
else None,
|
|
2139
|
+
stage=read_str(data["stage"]) if data.get("stage") is not None else None,
|
|
2082
2140
|
status=read_str(data["status"]),
|
|
2083
2141
|
title=read_str(data["title"]),
|
|
2142
|
+
topic=read_str(data["topic"]) if data.get("topic") is not None else None,
|
|
2084
2143
|
variant=read_str(data["variant"]) if data.get("variant") is not None else None,
|
|
2085
2144
|
version=read_str(data["version"]),
|
|
2086
2145
|
meta=meta if meta is not None else ResponseMeta(),
|
|
@@ -2133,6 +2192,9 @@ def decode_EconomicReleaseSchedule(
|
|
|
2133
2192
|
return EconomicReleaseSchedule(
|
|
2134
2193
|
at=read_str(data["at"]) if data.get("at") is not None else None,
|
|
2135
2194
|
date=read_str(data["date"]) if data.get("date") is not None else None,
|
|
2195
|
+
local_date=read_str(data["local_date"])
|
|
2196
|
+
if data.get("local_date") is not None
|
|
2197
|
+
else None,
|
|
2136
2198
|
precision=read_str(data["precision"]),
|
|
2137
2199
|
time_basis=read_str(data["time_basis"])
|
|
2138
2200
|
if data.get("time_basis") is not None
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# Generated from spec/live/openapi.json sha256
|
|
2
|
-
# Generated from spec/next/openapi.json sha256
|
|
1
|
+
# Generated from spec/live/openapi.json sha256 549d8458a8dcfbbccea3ea4b23f7d9163c6525ce932e4c5f6657fdd9b728985c. Do not edit.
|
|
2
|
+
# Generated from spec/next/openapi.json sha256 549d8458a8dcfbbccea3ea4b23f7d9163c6525ce932e4c5f6657fdd9b728985c. Do not edit.
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
import builtins
|
|
@@ -19,7 +19,7 @@ from .._transport import (
|
|
|
19
19
|
)
|
|
20
20
|
from . import models
|
|
21
21
|
|
|
22
|
-
LIVE_SPEC_SHA = "
|
|
22
|
+
LIVE_SPEC_SHA = "549d8458a8dcfbbccea3ea4b23f7d9163c6525ce932e4c5f6657fdd9b728985c"
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
class CalendarSubscriptions:
|
|
@@ -2104,6 +2104,7 @@ class Economics:
|
|
|
2104
2104
|
"start_date", start_date, "single", required=False, decimal=False
|
|
2105
2105
|
)
|
|
2106
2106
|
)
|
|
2107
|
+
_query.append(("view", "full"))
|
|
2107
2108
|
return self._transport.request(
|
|
2108
2109
|
"GET",
|
|
2109
2110
|
encode_path("/v1/economics/calendar", {}),
|
|
@@ -5338,6 +5339,7 @@ class AsyncEconomics:
|
|
|
5338
5339
|
"start_date", start_date, "single", required=False, decimal=False
|
|
5339
5340
|
)
|
|
5340
5341
|
)
|
|
5342
|
+
_query.append(("view", "full"))
|
|
5341
5343
|
return await self._transport.request(
|
|
5342
5344
|
"GET",
|
|
5343
5345
|
encode_path("/v1/economics/calendar", {}),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.2.0"
|
|
@@ -23,6 +23,7 @@ PALMOIL_SERIES_NOT_FOUND = "palmoil_series_not_found"
|
|
|
23
23
|
PHYSICAL_SERIES_AMBIGUOUS = "physical_series_ambiguous"
|
|
24
24
|
PHYSICAL_PRICE_UNAVAILABLE = "physical_price_unavailable"
|
|
25
25
|
CALENDAR_COVERAGE_UNAVAILABLE = "calendar_coverage_unavailable"
|
|
26
|
+
CALENDAR_NOT_PUBLISHED = "calendar_not_published"
|
|
26
27
|
PLAN_UPGRADE_REQUIRED = "plan_upgrade_required"
|
|
27
28
|
SUBSCRIPTION_NOT_FOUND = "subscription_not_found"
|
|
28
29
|
WEBHOOK_UNAVAILABLE = "webhook_unavailable"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# Generated from spec/live/openapi.json sha256
|
|
2
|
-
# Generated from spec/next/openapi.json sha256
|
|
1
|
+
# Generated from spec/live/openapi.json sha256 549d8458a8dcfbbccea3ea4b23f7d9163c6525ce932e4c5f6657fdd9b728985c. Do not edit.
|
|
2
|
+
# Generated from spec/next/openapi.json sha256 549d8458a8dcfbbccea3ea4b23f7d9163c6525ce932e4c5f6657fdd9b728985c. Do not edit.
|
|
3
3
|
"""Public response models, request models, and known enum values."""
|
|
4
4
|
|
|
5
5
|
from ._generated.models import (
|
|
@@ -116,7 +116,9 @@ from ._generated.models import (
|
|
|
116
116
|
Quote,
|
|
117
117
|
QuoteFreshness,
|
|
118
118
|
QuoteRole,
|
|
119
|
+
ReleaseStage,
|
|
119
120
|
ReleaseStatus,
|
|
121
|
+
ReleaseTopic,
|
|
120
122
|
ResolutionKind,
|
|
121
123
|
ScalarBody,
|
|
122
124
|
ScalarEvent,
|
|
@@ -281,7 +283,9 @@ __all__ = [
|
|
|
281
283
|
"Quote",
|
|
282
284
|
"QuoteFreshness",
|
|
283
285
|
"QuoteRole",
|
|
286
|
+
"ReleaseStage",
|
|
284
287
|
"ReleaseStatus",
|
|
288
|
+
"ReleaseTopic",
|
|
285
289
|
"ResolutionKind",
|
|
286
290
|
"ScalarBody",
|
|
287
291
|
"ScalarEvent",
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
# Generated from spec/live/openapi.json sha256 b60f17d48a2e406d95b34c274a80961d2a3de2b5e7b056a082d0ded894340420. Do not edit.
|
|
2
|
-
# Generated from spec/next/openapi.json sha256 b60f17d48a2e406d95b34c274a80961d2a3de2b5e7b056a082d0ded894340420. Do not edit.
|
|
3
|
-
"""Generated contract surface."""
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.1.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|