polygon-io / client-python

The official Python client library for the Polygon REST and WebSocket API.
https://polygon-api-client.readthedocs.io/
MIT License
744 stars 204 forks source link

Update base.py to remove setuptools and use standard library #694

Closed justinpolygon closed 1 week ago

justinpolygon commented 1 week ago

This PR updates the method for retrieving the version number of the polygon-api-client package. It replaces the use of pkg_resources from setuptools with importlib.metadata, which is part of the standard library in Python 3.8 and newer.

Changes

Benefits