diff --git a/singstat/constants.py b/singstat/constants.py index cb3bbcd..4f71117 100644 --- a/singstat/constants.py +++ b/singstat/constants.py @@ -14,6 +14,8 @@ """Constants that can be used anywhere.""" +from . import VERSION + BASE_API_DOMAIN = 'https://tablebuilder.singstat.gov.sg' BASE_API_ENDPOINT = f'{BASE_API_DOMAIN}/api/table' @@ -41,7 +43,7 @@ CACHE_NAME = 'singstat_cache' CACHE_TWELVE_HOURS = 60 * 60 * 12 -USER_AGENT = 'SingStat Python package/2.0.0 https://pypi.org/project/singstat' +USER_AGENT = f'SingStat Python package/{VERSION} https://pypi.org/project/singstat' __all__ = [ 'METADATA_ENDPOINT',