Skip to main content

MT to Hugo Article Converter

How to try

docker-compose up

And see tmp/output/*


Requirements

  • Python3

Installation

pip3 install mt-to-hugo-article-converter

How to use

mt-to-hugo-article-converter --output-directory=/path/to/out --input-file=/path/to/your-exported-articles.txt

You can use the configuration file that YAML format.

mt-to-hugo-article-converter --config-file=/path/to/config.yml
version: "2019.10.0"
output:
  base_path: tmp/output/
  content_path_fmt: "content/posts/%Y.%m"
  static_path_fmt: "static/posts/%Y.%m"
input:
  path: tmp/example-articles.txt
  start_at: 2018/02/01 00:00:00
  stop_at: 2018/03/01 23:00:00
asset_download:
  enabled: true
  base_url: "https://cdn-ak.f.st-hatena.com"
  filter:
    - regex: 'https?://cdn-ak\.f\.st-hatena\.com'
attribute_map:
  tags:
    from:
      - TAGS
      - CATEGORY
    values:
      news:
        - info
        - お知らせ

Metadata

Release files for mt-to-hugo-article-converter 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mt-to-hugo-article-converter 0.0.5
File Size Uploaded Provenance Actions
mt-to-hugo-article-converter-0.0.5.tar.gz 25.2 kB Without provenance Details for mt-to-hugo-article-converter-0.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mt-to-hugo-article-converter 0.0.5
File Interpreter ABI Platform Actions
mt_to_hugo_article_converter-0.0.5-py3-none-any.whl Python 3 none any Details for mt_to_hugo_article_converter-0.0.5-py3-none-any.whl

Total release size: 44.7 kB

Release files / mt-to-hugo-article-converter-0.0.5.tar.gz

Download URL mt-to-hugo-article-converter-0.0.5.tar.gz
Size 25.2 kB
Tags Source
SHA-256 checksum
How to use checksums
57c6dfb944e1ed4bc0b285225917dfec17a9a7f28870d9e115ec9c5f2836ecf7
BLAKE2b-256 checksum
How to use checksums
b00c096ab53d29fb137c4385c03786f23d35ddf256f23fbbfb11fbe0db828b31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

Release files / mt_to_hugo_article_converter-0.0.5-py3-none-any.whl

Download URL mt_to_hugo_article_converter-0.0.5-py3-none-any.whl
Size 19.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9fb007955fdf787bf90a5c8fa3eb2fbcc52c23fa779d5cfbd7237e38884ec871
BLAKE2b-256 checksum
How to use checksums
08ccbbfcb2ff53185c2370d553d0eee596982906af4e2a189cea4da4cc98aee0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

Security for mt-to-hugo-article-converter 0.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page