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.8.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.8-py3-none-any.whl (802.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: streamlit_geolocation-0.0.8.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.8.tar.gz
Algorithm Hash digest
SHA256 4ed263f88b4ac92585eae225567ff35ab215557a9a49428cecc3f3f646c4e968
MD5 015f051eaa80da9e0ca22df19d870c23
BLAKE2b-256 f40c6f2823f8ae4b34eb4eb5c8a6eb6dae8fe1b872050bef31483975c978ff4e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: streamlit_geolocation-0.0.8-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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 43a2db1180b33472cd8ca3c46c22a70e08c471fe3b913d025322a41a8fb2cbee
MD5 28523f838107780c8edcd15adbeba8ab
BLAKE2b-256 9537b028b495061f33c001fa0cebf1e4b18a5499c65017aa8c49bfc1046ae9f5

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