Skip to main content

用于获取当前用户的经纬度位置信息的命令行工具

Project description

WhereAmI CLI

这是一个简单的命令行工具,用于获取当前用户的经纬度位置信息。

安装

从PyPI安装

pip install whereami-cli

从源码安装

  1. 确保您已安装Python 3.6或更高版本
  2. 克隆仓库:
git clone https://github.com/zhangzimin/geo-location.git
cd geo-location
  1. 安装依赖:
pip install -r requirements.txt

使用方法

安装后,您可以直接使用命令:

whereami

或者运行Python脚本:

python get_location.py

输出示例

您当前的位置是:
纬度: 39.9042
经度: 116.4074
地址: 北京市, 中国

注意事项

  • 需要网络连接
  • 位置信息基于IP地址,可能不是非常精确
  • 如果无法获取位置信息,请检查网络连接

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

whereami_cli-0.1.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

whereami_cli-0.1.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file whereami_cli-0.1.0.tar.gz.

File metadata

  • Download URL: whereami_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for whereami_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ba6f0ae279b833c4964915e552b8b9c7bfe4228f6fff60eaf36bee188e63a593
MD5 13649c054b7cbee1b2676d52e9d34266
BLAKE2b-256 6f2c77ec04fcd32d90343420aae72117fe54692816db3da6be3c26119a74100c

See more details on using hashes here.

File details

Details for the file whereami_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: whereami_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for whereami_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d470e709e5ba9890d34870dafa30483e59538af8391ae486a9726f9983e61464
MD5 4e92a99af087aa3cdf799d2007733507
BLAKE2b-256 a793df1923c4f762f646f83ae6a37c5c6a330b8c4f560d62e8c821d57e8e3e93

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