Socket
Socket
Sign inDemoInstall

tzgeo

Package Overview
Dependencies
0
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    tzgeo

Get the timezone for a location


Maintainers
1

Readme

tzgeo

tzgeo is a library with one simple purpose - to convert a lat/lon to a timezone - really fast!

Installation

The easiest way to install is using pip::

pip install tzgeo

Usage

Using tzgeo is very simple!

::

>>> import tzgeo
>>> tzgeo.tz_lookup(39.888724, -75.107952)
u'America/New_York'

If the location is invalid, or points at the ocean, tz_lookup will return None.

More Information

More information can be found on the project's github page_

.. _github page: https://github.com/judy2k/tzgeo

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc