Skip to main content

DOC generator for language learning

Project description

Installation

pip3 install --verbose linguadoc 

Usage

Please refer to api docs.

Execute usage

  • Convert json into docx
gen_lingua_docx --sourcejson [source.json] --lang [en/de/es] --destdocx [output.docx] --title [test_title]

Package usage


Development

Clone project

git clone https://github.com/qishe-nlp/linguadoc.git

Install poetry

Install dependencies

poetry update

Test

poetry run pytest -rP --capture=sys

which run tests under tests/*

Execute

poetry run gen_lingua_docx --help

Create sphinx docs

poetry shell
cd apidocs
sphinx-apidoc -f -o source ../linguadoc
make html
python -m http.server -d build/html

Host docs on github pages

cp -rf apidocs/build/html/* docs/

Build

  • Change version in pyproject.toml and linguadoc/__init__.py
  • Build python package by poetry build

Git commit and push

Publish from local dev env

  • Set pypi test environment variables in poetry, refer to poetry doc
  • Publish to pypi test by poetry publish -r test

Publish through CI

git tag [x.x.x]
git push origin master

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

linguadoc-0.1.5.tar.gz (3.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

linguadoc-0.1.5-py3-none-any.whl (3.1 MB view details)

Uploaded Python 3

File details

Details for the file linguadoc-0.1.5.tar.gz.

File metadata

  • Download URL: linguadoc-0.1.5.tar.gz
  • Upload date:
  • Size: 3.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.8.12 Linux/5.11.0-1028-azure

File hashes

Hashes for linguadoc-0.1.5.tar.gz
Algorithm Hash digest
SHA256 6ed4bacd3a3a913d01b8ef4b6cb2e79f6d633be988737efdd5423ee1e531080b
MD5 76fdfc5006855ec785cae142084e59b5
BLAKE2b-256 530cb4eed5786018386eb4a6f774d3ddf71d179a338212d5a38dab270870253e

See more details on using hashes here.

File details

Details for the file linguadoc-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: linguadoc-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 3.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.8.12 Linux/5.11.0-1028-azure

File hashes

Hashes for linguadoc-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 db894bcad162f029353ba28554a6ee7565f5e144b475948b78789ac7998cf60c
MD5 8e2f60d6766dc1c4ca483c46ecdceefd
BLAKE2b-256 4840f090cf835c273e348064ecff49410899535fe9f43cb29e979529c028a728

See more details on using hashes here.

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