Skip to main content

fei crypto command utils

Project description

项目

安装

  1. pipx install fei-crypto
  2. pipx upgrade fei-crypto

命令行

  1. say -t 'hello world' # 打印内容
  2. os # operating system # 打印操作系统
  3. dt # 打印datetime
  4. ts # 打印timestamp
  5. ms # 打印milliseconds
  6. nano # 打印nanoseconds
  7. e # 打印环境变量
    • 示例:e 'PATH'
    • env_name:环境变量名
    • --help:帮助
  8. uuid # 打印uuid
  9. btc-eth # 从币安获取比特币和以太坊的价格 支持socks5代理设置,设置环境变量->PROXY=socks5h://127.0.0.1:7890
  10. rmw # 简单的去水印
    • 示例:rmw './1.png'
    • file_path:例如./1.png
    • --colors:取色对比次数,默认值5
    • --help:帮助文档
  11. tgl # telegram login bot或user获取sessionString
  12. captcha # 阿里云验证码识别
    • 示例:captcha 'file_abs_path' 'aliyun_ocr_appcode'
    • file_abs_path:图片绝对路径
    • aliyun_ocr_appcode: 阿里云appcode 购买地址
    • --pri_id:文字类型(dn:纯数字,ne:英文数字,de:纯英文)
  13. t2m # 简单的文字转视频
    • 依赖安装Ubuntu: apt install -y gcc libpango1.0-dev pkg-config python3-dev ffmpeg
    • 依赖安装windows: scoop install gcc msys2 ffmpeg
    • 示例:t2m 'BTC-USDT' --out-filename btc --style 1 --preview
    • text:文本内容,文字长度最好不要超过15个字符
    • --out_filename:输出文件名,输出目录为当前目录下的media文件夹,默认值t2m
    • --quality:生成媒体质量,默认low_quality,还可设置为medium_quality|high_quality
    • --out_format:输出格式png,gif,mp4,webm,mov. 默认gif
    • --style:动画样式,默认值0
    • --preview:是否生成后立即预览
    • --help:帮助文档
  14. dcw # 使用discord webhook send发送消息
    • 示例:dcw 'https://discord.com/api/webhooks/{}' --text 'hello' --file-paths 'e:/btc.mp4,e:/pepe.mp4'
    • webhook_url:webhook url
    • --text:发送的文本
    • --file-paths:发送的文件路径,多个路径用逗号分隔
    • --proxy:使用代理,例如http://127.0.0.1:7890
    • --help:帮助文档
  15. tgf # 转发telegram group或channel,支持用户转发和机器人转发,转发规则在配置文件forwards节点下
    • 用户转发需申请对应的api_id,api_hash,并使用以上tgl命令获取sesssionString,网址:https://my.telegram.org/auth
    • 用户转发需在配置文件中填写API_ID,API_HASH,SESSION_STRING,"user_type": 1
    • 机器人转发直接到telegram@BotFather 里按流程申请Token
    • 机器人转发需在配置文件中填写BOT_TOKEN,"user_type": 0
    • 代理配置,在配置文件login下配置"PROXY": "socks5://127.0.0.1:7890"
    • 示例:tgf live -c "d:/tg.config.json" 默认值:当前目录下的tg.config.json
    • mode:live或者past live:实时转发 past:每分钟读取历史记录转发,第一次默认读取一个小时内的记录
    • --config-path,-c: 可传入任意配置文件路径,不传会在当前目录下创建tg.config.json,在json文件中填写配置重新运行即可
    • --version,-v: 查看版本信息
    • --help:帮助文档

dev

poetry shell
poetry run python --version
poetry run os
poetry run dt
poetry run ts

publish

poetry build
poetry publish

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

fei_crypto-0.2.8.tar.gz (43.7 kB view details)

Uploaded Source

Built Distribution

fei_crypto-0.2.8-py3-none-any.whl (63.7 kB view details)

Uploaded Python 3

File details

Details for the file fei_crypto-0.2.8.tar.gz.

File metadata

  • Download URL: fei_crypto-0.2.8.tar.gz
  • Upload date:
  • Size: 43.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.11 Windows/10

File hashes

Hashes for fei_crypto-0.2.8.tar.gz
Algorithm Hash digest
SHA256 ca1dfa19d9289ee490064d6c84e9bcfb76a3399e33ebd222887f906e32bb9298
MD5 b7c5da9c0a7511f2e750a70913376954
BLAKE2b-256 60f4625262bb0d7a6d61e6396bd42903b95addabd05c8d6bea8f1dbde695e703

See more details on using hashes here.

File details

Details for the file fei_crypto-0.2.8-py3-none-any.whl.

File metadata

  • Download URL: fei_crypto-0.2.8-py3-none-any.whl
  • Upload date:
  • Size: 63.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.11 Windows/10

File hashes

Hashes for fei_crypto-0.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 e26ae412ede7d4a2392a3f1f191b9e86c990f6cc3b553eed144d3a8f484d855e
MD5 c0221a9bcc82340d47ea295d3cb09f4c
BLAKE2b-256 b7c0e1bc8b2310278362506b5edda84dd9271678f76c581961f5c0249e96e7cd

See more details on using hashes here.

Supported by

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