Skip to main content

A custom Streamlit component to get the users location via js navigator.geolocation.

Project description

streamlit-geolocation

A geolocation button for streamlit

This uses the javascript method navigator.geolocation.getCurrentPosition to get the user's location. The response is a GeolocationCoordinates object.

This is heavily inspired by this repository: https://github.com/aghasemi/streamlit_js_eval I am simplifying the scope to just getting the user's location and not evaluating arbitrary javascript, but I owe a lot to the original author.

sample

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

streamlit_geolocation-0.0.9.tar.gz (795.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

streamlit_geolocation-0.0.9-py3-none-any.whl (802.4 kB view details)

Uploaded Python 3

File details

Details for the file streamlit_geolocation-0.0.9.tar.gz.

File metadata

  • Download URL: streamlit_geolocation-0.0.9.tar.gz
  • Upload date:
  • Size: 795.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.31.0 rfc3986/1.5.0 tqdm/4.66.1 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for streamlit_geolocation-0.0.9.tar.gz
Algorithm Hash digest
SHA256 e79428255089dbf7a5140b1cc0a72061ef7eebc198cd05905a7168429fbbdcf7
MD5 d10a4fb939ac407a98f481e217688aaf
BLAKE2b-256 4d53d61b6e6207cf70a8172df4ae5b51ffa726a10bc90bf3fc3550f77d56cf70

See more details on using hashes here.

File details

Details for the file streamlit_geolocation-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: streamlit_geolocation-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 802.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.31.0 rfc3986/1.5.0 tqdm/4.66.1 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for streamlit_geolocation-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 41bdbb27a24d0bde0c1a86731b1e1cd011d4221f2e66d7e4ceb31935a20e2ce0
MD5 dc4d407a52de49892538c02b357d93db
BLAKE2b-256 41bc4ae92b4c65d292fdc25c8ba65d205ed31c8627d673b2a1d161c38de7ca8f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page