Skip to main content

A simlpe tool for Tujian

Project description

Tu

Build Status PyPI - Downloads PyPI

一个使用 Python3 编写的 Tujian 的简易工具。
One Each Make use Python3 Make up write of Tujian of simple easy work With.

图片保存于当前目录下的 Tujian 文件夹。
Figure sheet Guarantee Save to when before Head record under of Tujian Text Pieces folder.

如果你无法理解,你可以使用 python3 -m PyTujian path 来打印存储图片的路径。
Such as fruit you no law Reason solution, you can To Make use python3 -m PyTujian path Come hit Seal Save Store Figure sheet of road path.

请使用 Python3 运行此工具。
please Make use Python3 Transport Row this work With.

此工具仅支持简体中文。
this work With only support ** hold simple body in Text **.

如何使用 Usage

pip3 instal PyTujian
python3 -m PyTujian

获取图片 Get Pictures

使用 python3 -m PyTujian today 来获取当日图片,
使用 python3 -m PyTujian all 来获取所有图片,
使用 python3 -m PyTujian get <PID> 来获取指定图片,
使用 python3 -m PyTujian archive <TID> 来获得指定分类下的图片归档(不含当日图片).

TID 可使用 python3 -m PyTujian sort 来获取,
PID 为图片的 UUID.

保存的图片命名格式如下:

日期-分类名_标题_PID.发布者.jpeg

查询信息 Inqire

使用 python3 -m PyTujian info <PID> 来查询单张图片的详细信息.
PID 为图片的 UUID.

投稿 Submission

使用以下命令来进行投稿:

python3 -m PyTujian upload xxx.yml

需要提供参数: 一个 YAML 文件

YAML 文件

YAML 是什么请自行百度

此处提供一个完整的示例文件:

name: Gadgetry
mail: 2331490629@qq.com
pics:
  - title: 示例图片1
    sort: e5771003-b4ed-11e8-a8ea-0202761b0892
    content: |-
      示例图片1
    path: F:\Pictures\001.png
  - title: 示例图片2
    sort: e5771003-b4ed-11e8-a8ea-0202761b0892
    content: |-
      示例图片2
    link: http://example.com/001.png

用户数据 Profile

作为投稿者,你需要提供你的部分信息:

name: 你的昵称
mail: 你的邮箱地址

图片 Pictures

作为投稿者,你需要提供需投稿的图片.

所有的图片作为一个 list:

pics:
  - title: 示例图片1
    sort: e5771003-b4ed-11e8-a8ea-0202761b0892
    content: |-
      示例图片1
    path: F:\Pictures\001.png
  - title: 示例图片2
    sort: e5771003-b4ed-11e8-a8ea-0202761b0892
    content: |-
      示例图片2
    path: http://example.com/001.png

对于单张图片:

  - title: 图片名称
    sort: 图片分类 TID
    content: |-
      图片简介
      图片简介
      图片简介
    path: 图片本地地址
    link: 图片网络地址

TID 可使用 python3 -m PyTujian sort 来获取.

pathlink 仅需提供其中一个,

如果使用单行的 content ,仅需这样:

    ...
    content: 图片简介
    ...

如果使用多行的 content ,请这样:

    ...
    content: |-
      图片简介
      图片简介
      图片简介
    ...

其他 Others

没有更多了

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

PyTujian-0.0.21.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

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

PyTujian-0.0.21-py3.7.egg (20.3 kB view details)

Uploaded Egg

File details

Details for the file PyTujian-0.0.21.tar.gz.

File metadata

  • Download URL: PyTujian-0.0.21.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.1

File hashes

Hashes for PyTujian-0.0.21.tar.gz
Algorithm Hash digest
SHA256 0bae8dd67a1a57317d57614cd3bf1c52bb001b11dbaf1699d36f6d1a61d52328
MD5 67b7b519302df489453b83e0c8612e9c
BLAKE2b-256 f53a5db2999181dff9d4e99ba2963ed3b4707830afeeeef6c77033a64b2612ee

See more details on using hashes here.

File details

Details for the file PyTujian-0.0.21-py3.7.egg.

File metadata

  • Download URL: PyTujian-0.0.21-py3.7.egg
  • Upload date:
  • Size: 20.3 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.1

File hashes

Hashes for PyTujian-0.0.21-py3.7.egg
Algorithm Hash digest
SHA256 722e4cf8a4def34375c4e77bd492f6e1102fd3168830a3a5d027b95f3982cde4
MD5 142039930117f47ec7ff6f35fa7236d2
BLAKE2b-256 0eb1007d820889558b368bfbfa0ce5f0c0a7e10470ead6086bbaa5b0ecd9b7ed

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