Metadata-Version: 2.1
Name: timezonedb
Version: 0.1
Summary: timezonedb.com API [python wrapper]
Home-page: https://github.com/abrihter/timezonedb/releases
Author: bojan
Author-email: 
License: MIT
Download-URL: https://github.com/abrihter/timezonedb/archive/refs/tags/v_01.tar.gz
Description: # timezonedb.com API [python wrapper]
        
        Wrapper for [timezonedb.com](https://timezonedb.com) API
        
        ## API Reference
        
        Full timezonedb.com API reference can be found [here](https://timezonedb.com/api)
        
        ## HOW TO USE
        
        ### list timezone [reference](https://timezonedb.com/references/list-time-zone)
        
        List out all available time zones supported by TimeZoneDB.
        
        ```python
        
        from timezonedb import TimezoneDBAPI
        
        #get timezones
        api = TimezoneDBAPI(api_key={TIMEZONEDB_API_KEY})
        res = api.list_time_zone(response_format="json")
        print(res)
        ```
        
        ### get timezone [reference](https://timezonedb.com/references/get-time-zone)
        
        Get local time of a city by its name, time zone, latitude & longtiude, or IP address.
        
        ```python
        
        from timezonedb import TimezoneDBAPI
        
        #get timezones
        api = TimezoneDBAPI(api_key={TIMEZONEDB_API_KEY})
        res = api.get_time_zone(
            response_format="json",
            by="position",
            lat="40.689247",
            lng="-74.044502",
        )
        print(res)
        ```
        ```python
        
        from timezonedb import TimezoneDBAPI
        
        #get timezones
        api = TimezoneDBAPI(api_key={TIMEZONEDB_API_KEY})
        res = api.get_time_zone(
            response_format="json",
            by="city",
            city="chicago",
            country="US",
        )
        print(res)
        ```
        
        
        ### convert timezones [reference](https://timezonedb.com/references/convert-time-zone)
        
        Convert timestamp between two different time zone.
        
        ```python
        
        from timezonedb import TimezoneDBAPI
        
        #get timezones
        api = TimezoneDBAPI(api_key={TIMEZONEDB_API_KEY})
        res = api.convert_time_zone(
            response_format="json",
            from_zone="America/Los_Angeles",
            to_zone="Australia/Sydney",
        )
        print(res)
        ```
        
Keywords: TIMEZONEDB,API,WRAPPER
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown
