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.6.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.6-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: prelims_cli-0.0.6.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.6.tar.gz
Algorithm Hash digest
SHA256 74526f0ffe50759c52bd60ae6f3945d71ddb8246cb77d997e8bf50fb5f4226c5
MD5 aac7dda3b40fc6368c65b4c839a05576
BLAKE2b-256 a1fa73f9df33fc11c70fc4a8a8df9a9c99041cca8d66638af4cabcd554fc252f

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: prelims_cli-0.0.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a5313121a493ff61a666a82dbe7183d132f31fd6a106f35aff0382833637a706
MD5 5a59c1c1f3848b628fdfd2813feb3c2d
BLAKE2b-256 0e341db1ea135af2335b4dc7691cb3d0f964674789a8f63864b0400841a2bdba

See more details on using hashes here.

Provenance

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