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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c658f96f4529689e8f7498a589928cc6f9837bf54d13a190f7914d0079ddb629
|
|
| MD5 |
a0d4de30a3f606aac1f25a0adcf2d313
|
|
| BLAKE2b-256 |
0643c51311c0e958a724e50b4aa3e97592212bedd2468d39eed4eebc00431afe
|
Provenance
The following attestation bundles were made for prelims_cli-0.0.5.tar.gz:
Publisher:
release.yml on chezou/prelims-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
prelims_cli-0.0.5.tar.gz -
Subject digest:
c658f96f4529689e8f7498a589928cc6f9837bf54d13a190f7914d0079ddb629 - Sigstore transparency entry: 974233556
- Sigstore integration time:
-
Permalink:
chezou/prelims-cli@2282cd391a272bc7cb68c4a5d44a19254df3ea17 -
Branch / Tag:
refs/tags/v0.0.5 - Owner: https://github.com/chezou
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2282cd391a272bc7cb68c4a5d44a19254df3ea17 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9074a43d93e8cf1486bf7b892138fcde8eb4a960f01ddb392cc2f6f76166e13
|
|
| MD5 |
ebcf44d3af491e807aec6dd94f70a8a1
|
|
| BLAKE2b-256 |
a126bc404614e547ad69653383baff3fabd725ff7ce0b8b7be349f69ec62f388
|
Provenance
The following attestation bundles were made for prelims_cli-0.0.5-py3-none-any.whl:
Publisher:
release.yml on chezou/prelims-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
prelims_cli-0.0.5-py3-none-any.whl -
Subject digest:
a9074a43d93e8cf1486bf7b892138fcde8eb4a960f01ddb392cc2f6f76166e13 - Sigstore transparency entry: 974233647
- Sigstore integration time:
-
Permalink:
chezou/prelims-cli@2282cd391a272bc7cb68c4a5d44a19254df3ea17 -
Branch / Tag:
refs/tags/v0.0.5 - Owner: https://github.com/chezou
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2282cd391a272bc7cb68c4a5d44a19254df3ea17 -
Trigger Event:
release
-
Statement type: