-
-
Notifications
You must be signed in to change notification settings - Fork 207
sdk-drift: FeedClient is not exported from Python package __init__.py #830
Copy link
Copy link
Open
Labels
P2: mediumbugSomething isn't workingSomething isn't workingeffort: smallgood first issueGood for newcomersGood for newcomerspythonPython SDK specificPython SDK specificsdk-driftCross-language SDK consistency findings (TypeScript vs Python)Cross-language SDK consistency findings (TypeScript vs Python)sdk-parityConsistency between SDKsConsistency between SDKstype: inconsistency
Metadata
Metadata
Assignees
Labels
P2: mediumbugSomething isn't workingSomething isn't workingeffort: smallgood first issueGood for newcomersGood for newcomerspythonPython SDK specificPython SDK specificsdk-driftCross-language SDK consistency findings (TypeScript vs Python)Cross-language SDK consistency findings (TypeScript vs Python)sdk-parityConsistency between SDKsConsistency between SDKstype: inconsistency
Type
Fields
Give feedbackNo fields configured for issues without a type.
Drift
FeedClientis a public, named export in the TypeScript SDK (feed-client.ts) but is entirely absent from the Python package's public surface (__init__.py/__all__). Python users must reach into the internal submodule pathfrom pmxt.feed_client import FeedClientrather than using the top-levelimport pmxt; pmxt.FeedClientorfrom pmxt import FeedClient.TypeScript SDK
FeedClient(and its companion typesTicker,Tickers,OHLCV,Market,OracleRound,FeedClientOptions) are all named exports fromsdks/typescript/pmxt/feed-client.ts(lines 66–144). The class is part of the published package surface.Python SDK
sdks/python/pmxt/__init__.py(lines 1–231):FeedClientis not imported and does not appear in__all__.sdks/python/pmxt/feed_client.pydefines the class (line 84) but nothing re-exports it.Expected
FeedClientshould be importable asfrom pmxt import FeedClient(Python) just as it is a direct named export in the TypeScript SDK. At minimum,FeedClientshould be added to__init__.pyand__all__so both SDKs present the same top-level surface.Impact
Python users who read TypeScript examples or the docs and try
from pmxt import FeedClientget anImportError. They must discover the undocumented submodule pathfrom pmxt.feed_client import FeedClient, creating a needlessly different experience and breaking parity with the TypeScript SDK.Found by automated SDK cross-language drift audit