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

Uploaded Python 3

File details

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

File metadata

  • Download URL: prelims_cli-0.0.5rc1.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.5rc1.tar.gz
Algorithm Hash digest
SHA256 40fcaf2ed97b1d89fe435b9dfdd041ba4f531dd125c70afe1e27219459b7c78c
MD5 7189d8c027d08e194d325c3d80e17500
BLAKE2b-256 fe24ddf44f29674a778623e3d4bd397c47a520e505c4b11e2411508a500209b8

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: prelims_cli-0.0.5rc1-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.5rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 075ccbe8b8056fac69ddc4e226da2efec5772f4116a0eeed9ebf0639cc245d14
MD5 884003eb07ce683a0df2db104c3c2bf7
BLAKE2b-256 11b726a89c3e780c151e742f8ede0869ecd3bf1daaf671a8f982512824dcd0ae

See more details on using hashes here.

Provenance

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