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.1.tar.gz (3.8 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.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: whereami_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 3.8 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.1.tar.gz
Algorithm Hash digest
SHA256 322419dd967721416cdfb8481e26f7418709a1a17c143c20a42d58f5a4292575
MD5 f9865a0931c85e04b708ad49619dd305
BLAKE2b-256 af848008a6d90967d1f4530a8886131e009ae1caae81c9f679316271942f380d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: whereami_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 918522ed85b9d445c649587edb4776200bb89ce947071073df3e4468410ccc59
MD5 90ad1e8dfb102a99cdbea84922ed42b9
BLAKE2b-256 85e40d20e56f48484cd4053bf31c144e53d450c6e8620de89907335b07ddced1

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