Skip to main content

prelims CLI - Front matter post-processor CLI

Project description

prelims-cli

CLI for prelims.

Install

Run:

pip install prelims-cli

If you need Japanese tokenization, run:

pip install prelims-cli[ja]

Usage

Assuming the following folder directory:

- content
|  ├── post
|  └── blog
└─ scripts
    config
      myconfig.yaml

where, post and blog are pages, and scripts is the place to put scripts.

Here is the example of configuration:

handlers:
  - target_path: "content/blog"
    ignore_files:
      - _index.md
    processors:
      - type: recommender
        permalink_base: "/blog"
        tfidf_options:
          stop_words: english
          max_df: 0.95
          min_df: 2
        tokenizer: null
  - target_path: "content/post"
    ignore_files:
      - _index.md
    processors:
      - type: recommender
        permalink_base: "/post"
        tfidf_options:
          max_df: 0.95
          min_df: 2
        tokenizer:
          lang: ja
          type: sudachi
          mode: C
          dict: full
$ prelims-cli --config ./scripts/config/myconfig.yaml
target: /user/chezo/src/chezo.uno/content/blog
target: /users/chezo/src/chezo.uno/content/post

Then your articles' front matter were updated.

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

prelims_cli-0.0.6rc1.tar.gz (85.4 kB view details)

Uploaded Source

Built Distribution

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

prelims_cli-0.0.6rc1-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file prelims_cli-0.0.6rc1.tar.gz.

File metadata

  • Download URL: prelims_cli-0.0.6rc1.tar.gz
  • Upload date:
  • Size: 85.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for prelims_cli-0.0.6rc1.tar.gz
Algorithm Hash digest
SHA256 bf43159884a6bcf51cfd401a875aaeac58363b6f8e8a5d7748b408744c4e3ab6
MD5 9a0f318df8f32fd0560f92e355e380b2
BLAKE2b-256 3d0fa2fbc13fc67b397b0a561c843041d2613f3426956e24f2e93c8a296937c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for prelims_cli-0.0.6rc1.tar.gz:

Publisher: release.yml on chezou/prelims-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file prelims_cli-0.0.6rc1-py3-none-any.whl.

File metadata

  • Download URL: prelims_cli-0.0.6rc1-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for prelims_cli-0.0.6rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 c87756b5317b673b8d408e3eb34ea24af4a22bf458ae6f84c890b353dd6ead0f
MD5 a9e9e3abf6ea658065ad887952871af9
BLAKE2b-256 ca1132d8ba096e2b8a66f62fcdc2117f1c02d600987901a4b90071fd9df24d2d

See more details on using hashes here.

Provenance

The following attestation bundles were made for prelims_cli-0.0.6rc1-py3-none-any.whl:

Publisher: release.yml on chezou/prelims-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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