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.4.tar.gz
(5.0 kB
view details)
Built Distribution
File details
Details for the file prelims-cli-0.0.4.tar.gz
.
File metadata
- Download URL: prelims-cli-0.0.4.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.0 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ac63dabc9ec60ba4e6b627723f18bdaa39507248fccde6533fa2a04d9f174c8 |
|
MD5 | 45d3c852b706de9fe85dcaf5d44bfbf5 |
|
BLAKE2b-256 | be882e089ba0dc1ea1a39474afacd5995fbf2e9de432d52dee0ed5df25830c35 |
File details
Details for the file prelims_cli-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: prelims_cli-0.0.4-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.0 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd6bb1b3eb7c4cc48d6e0454b90134014b7356d4d350c031e7231a8b4bf3b747 |
|
MD5 | a75f7b7994cec660b6a25caa92d22132 |
|
BLAKE2b-256 | d3ee489a5c9bc2a77161302348977ad1339f3d08a1201dc0d8a22b0cb780567c |