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.5.tar.gz (64.5 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.5-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file prelims_cli-0.0.5.tar.gz.

File metadata

  • Download URL: prelims_cli-0.0.5.tar.gz
  • Upload date:
  • Size: 64.5 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.5.tar.gz
Algorithm Hash digest
SHA256 c658f96f4529689e8f7498a589928cc6f9837bf54d13a190f7914d0079ddb629
MD5 a0d4de30a3f606aac1f25a0adcf2d313
BLAKE2b-256 0643c51311c0e958a724e50b4aa3e97592212bedd2468d39eed4eebc00431afe

See more details on using hashes here.

Provenance

The following attestation bundles were made for prelims_cli-0.0.5.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.5-py3-none-any.whl.

File metadata

  • Download URL: prelims_cli-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 6.0 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a9074a43d93e8cf1486bf7b892138fcde8eb4a960f01ddb392cc2f6f76166e13
MD5 ebcf44d3af491e807aec6dd94f70a8a1
BLAKE2b-256 a126bc404614e547ad69653383baff3fabd725ff7ce0b8b7be349f69ec62f388

See more details on using hashes here.

Provenance

The following attestation bundles were made for prelims_cli-0.0.5-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