Skip to main content

灵犀埋点CLI工具 - 自动安装脚本

Project description

lx-reporter-cli

灵犀埋点CLI工具的Python安装器

简介

lx-reporter-cli 是一个用于安装灵犀埋点CLI工具的Python包。它会自动检查并安装Node.js依赖,然后通过npm全局安装lx-reporter-cli。

功能特性

  • ✅ 自动检测Node.js是否已安装
  • ✅ 检查Node.js版本是否满足最低要求(v18.0.0+)
  • ✅ 自动通过npm安装lx-reporter-cli
  • ✅ 兼容Python 2.7+ 和 Python 3.x

安装

从PyPI安装(推荐)

pip install lx-reporter-cli

从源码安装

git clone https://github.com/meituan/lx-reporter-cli.git
cd lx-reporter-cli
pip install .

使用方法

安装完成后,运行以下命令:

lx-reporter-cli

或者直接在Python中使用:

import lx_reporter_cli

系统要求

  • Python: 2.7+ 或 3.5+
  • Node.js: v18.0.0 或更高版本
  • npm: 随Node.js一起安装

工作原理

  1. 检查系统中是否已安装lx命令
  2. 如果未安装,检查Node.js环境
  3. 验证Node.js版本是否满足要求
  4. 通过npm全局安装lx-reporter-cli
  5. 验证安装是否成功

开发

构建分发包

python setup.py sdist bdist_wheel

上传到PyPI

twine upload dist/*

许可证

MIT License

作者

Meituan Team

问题反馈

如有问题或建议,请提交Issue: https://github.com/meituan/lx-reporter-cli/issues

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

lx_reporter_cli-1.0.0-py2-none-any.whl (5.2 kB view details)

Uploaded Python 2

File details

Details for the file lx_reporter_cli-1.0.0-py2-none-any.whl.

File metadata

  • Download URL: lx_reporter_cli-1.0.0-py2-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.8.3 requests/2.27.1 setuptools/41.2.0 requests-toolbelt/1.0.0 tqdm/4.64.1 CPython/2.7.18

File hashes

Hashes for lx_reporter_cli-1.0.0-py2-none-any.whl
Algorithm Hash digest
SHA256 49eee82ca1003df933aabe024dc0662c72421be5af0fd0491fe0d8d9f53a5c95
MD5 35a8be8c247f0fc3b8a8eb47d3c7e91a
BLAKE2b-256 33b5db9232f46cbb9e50ab08abc9618954c4b936703fab172768bedc05331e02

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