Saravanan666/pypi-org huggingface dataset:
Package: jpreprocess
jpreprocess (python binding)Japanese text preprocessor for Text-to-Speech application.This is a python binding of jpreprocess, which is written in Rust.
The rust library is published incrates.io.JPreprocess (the base code written in Rust) is a rewrite ofOpenJTalk.UsageUnlikepyopenjtalk, this package does not include support of marine and TTS.Currently, this package is for text processing only.Run text processing frontendimportjpreprocessj=jpreprocess.jpreprocess()njd_features=j.run_frontend("本日は晴天なり")assertnjd_features[0].get("string")=="本日"assertnjd_features[0].get("pos")=="名詞"Extract full-context labelimportjpreprocessj=jpreprocess.jpreprocess()fullcontext=j.extract_fullcontext("本日は晴天なり")assertlen(fullcontext)==21assertfullcontext[0]==r"xx^xx-sil+h=o/A:xx+xx+xx/B:xx-xx_xx/C:xx_xx+xx/D:xx+xx_xx/E:xx_xx!xx_xx-xx/F:xx_xx#xx_xx@xx_xx|xx_xx/G:5_1%0_xx_xx/H:xx_xx/I:xx-xx@xx+xx&xx-xx|xx+xx/J:2_11/K:1+2-11"Grapheme-to-phoeneme (G2P)importjpreprocessj=jpreprocess.jpreprocess()assertj.g2p("おはようございます")=="o h a y o o g o z a i m a s U"assertj.g2p("おはようございます",kana=True)=="オハヨーゴザイマス"CopyrightsPlease seeREADME.md.LicenseBSD-3-Clause
Package: jprint
jprintA simple tool for pretty priting json strings and python dictionaries to the console.Python Dictionary Examplefromjprintimportjprintexample_dict={"name":"John Doe","age":30,"city":"New York","hobbies":["reading","traveling","photography"]}jprint(example_dict)JSON String Examplefromjprintimportjprintjson_string='''{"name": "Alice","age": 32,"email": "alice@example.com","address": {"street": "123 Main St","city": "Los Angeles","state": "CA","zip": "90012"},"phone_numbers": [{"type": "home","number": "555-1234"},{"type": "work","number": "555-5678"}]}'''jprint(json_string,indent=2)Under The Coversjprint makes use of the pygmyents library for colored output and json.dumps() for other formatting.
You can pass jprint any of the parameters that you would pass to json.dumps
Package: jprm
InstallingFrom PyPIpipinstall--userjprmFrom GitHubpip install --user git+https://github.com/oddstr13/jellyfin-plugin-repository-managerFrom local developement directorygit clone https://github.com/oddstr13/jellyfin-plugin-repository-manager.git
pip install --user --editable jellyfin-plugin-metadata-managerStand-alone Python scriptwget -O jprm.py https://raw.githubusercontent.com/oddstr13/jellyfin-plugin-repository-manager/master/jprm/__init__.pyExamplesRunning jprmjprm --versionpython3 -m jprm --versionpython3 jprm.py --versionInitializing plugin repositorymkdir -p /path/to/repo
jprm repo init /path/to/repoSeebuild_plugin.shfor an example script.
Package: jProcessing
RequirementsThird Party DependenciesCabocha Japanese Morphological parserhttp://sourceforge.net/projects/cabocha/Python DependenciesPython 2.6.*or aboveLinksAll code at jProcessing RepoGitHubDocumentationandHomePageandSphinxPyPiPython Packageclone git@github.com:kevincobain2000/jProcessing.gitInstallInTerminal>>>bash$ python setup.py installHistory0.2Sentiment Analysis of Japanese Text0.1Morphologically Tokenize Japanese SentenceKanji / Hiragana / Katakana to Romaji ConverterEdict Dictionary Search - borrowedEdict Examples Search - incompleteSentence Similarity between two JP SentencesRun Cabocha(ISO–8859-1 configured) in Python.Longest Common String between SentencesKanji to Katakana PronunciationHiragana, Katakana Chart ParserContactsContactFormBugReportContributeAuthor:pulkit[at]jaist.ac.jp[changeatwith@]
Package: jproperties3
python-jproperties==================[![Build Status](https://travis-ci.org/translate/python-jproperties.svg)](https://travis-ci.org/translate/python-jproperties)A python library for parsing and handling Java .properties files.Installation------------```$ pip install jproperties3```Test----```$ python setup.py test```Build-----```$ python setup.py build```Usage-----A Properties object is, on the outside, a simple key-value store.Initialize it as such:```pythonfrom jproperties import Propertiesp = Properties()# Or with default values:p2 = Properties({"foo": "bar"})print(p2["foo"])```The usual dictionary interfaces are available:```pythonp2["key"] = "value"for key in p2.keys():print(key, p2[key])```Note that keys and values are all expected to be and be treated as strings.To serialize the object into the .properties format, turn it into a string:```pythonwith open("out.properties", "w") as f:f.write(str(p2))```To read an existing properties file, create the instance using the `stream`keyword parameter```pythonwith open("out.properties", "r") as f:p = Properties(stream=f)```Note that comments and blank lines are loaded into the Properties object'snodes when using load(), and will be serialized in str().If comments and blank lines are unimportant and you want to get rid of them,you can create a new Properties object from an existing one's keys:```pythonp3 = Properties(p2.keys())```### LicenseThis project is licensed under the MIT license. The full license text isavailable in the LICENSE file.
Package: jprops2bash
Convert Java properties file to bash env var scriptUsageIt reads from stdin and writes to stdout:$ cat > sample.properties
teamcity.agent.jvm.file.encoding=UTF-8
teamcity.agent.jvm.file.separator=/
teamcity.agent.jvm.os.arch=amd64
teamcity.agent.jvm.os.name=Linux
teamcity.agent.jvm.os.version=3.13.0-43-generic
teamcity.agent.jvm.path.separator=\:
teamcity.agent.jvm.specification=1.8
teamcity.agent.jvm.user.country=US
teamcity.agent.jvm.user.home=/home/teamcity
runParam.script.content=\#\!/bin/bash\n\nset -o errexit\n\# set -o xtrace\n\necho "*** <Root project> \:\: \\"run pipeline script\\"

$ jprops2bash < sample.properties
export TEAMCITY_AGENT_JVM_FILE_ENCODING='UTF-8'
export TEAMCITY_AGENT_JVM_FILE_SEPARATOR='/'
export TEAMCITY_AGENT_JVM_OS_ARCH='amd64'
export TEAMCITY_AGENT_JVM_OS_NAME='Linux'
export TEAMCITY_AGENT_JVM_OS_VERSION='3.13.0-43-generic'
export TEAMCITY_AGENT_JVM_PATH_SEPARATOR=':'
export TEAMCITY_AGENT_JVM_SPECIFICATION='1.8'
export TEAMCITY_AGENT_JVM_USER_COUNTRY='US'
export TEAMCITY_AGENT_JVM_USER_HOME='/home/teamcity'
export RUNPARAM_SCRIPT_CONTENT='#!/bin/bash\n\nset -o errexit\n# set -o xtrace\n\necho "*** <Root project> :: \"run pipeline script\"'and if you wanted to set environment variables for all of these you
could do something like the following:$ env | grep TEAM
$ eval $(jprops2bash < sample.properties)
$ env | grep TEAM
TEAMCITY_AGENT_JVM_SPECIFICATION=1.8
TEAMCITY_AGENT_JVM_OS_NAME=Linux
TEAMCITY_AGENT_JVM_PATH_SEPARATOR=:
TEAMCITY_AGENT_JVM_FILE_SEPARATOR=/
TEAMCITY_AGENT_JVM_OS_ARCH=amd64
TEAMCITY_AGENT_JVM_USER_HOME=/home/teamcity
TEAMCITY_AGENT_JVM_FILE_ENCODING=UTF-8
TEAMCITY_AGENT_JVM_USER_COUNTRY=US
TEAMCITY_AGENT_JVM_OS_VERSION=3.13.0-43-generic
Package: jprq
JPRQ - Ngrok AlternativeGet Your Localhost Online and HTTPSHow JPRQ is different from Ngrok?JPRQ is a free and open-source Ngrok alternative to expose local servers online easily.It allows developers to serve unlimited requests to the local server compared to Ngrok's40 requests/minutelimit.It can expose multiple ports at the same time compared to Ngrok with1 portlimit.[NEW] it can now expose any TCP protocol, like SSH, MySQL, Redis, etc.How to install$pipinstalljprqHow to useReplace 8000 with the port you want to expose$ jprq http 8000For exposing SSH, WebSocket, Postgresql or any TCP servers$ jprq tcp 22For windows users:For exposing HTTP servers> py -m jprq http 8000For exposing TCP servers> py -m jprq tcp 22Press Ctrl+C to stop it[NEW] Custom SubdomainReplacesubdomainwith a subdomain you want, works with ony http tunnels.$ jprq http 8000 -s=subdomainHow to uninstall$pipuninstalljprqHow JPRQ WorksJPRQ's Client-side implementation in Python:https://github.com/azimjohn/jprq-python-clientLimitationsHTTP Tunneling cannot expose WebSocket, use TCP TunnelingDoesn't work with HTTP Long Polling with HTTP Tunneling, Use TCP TunnelingTroubleshootingWith serving React, Vue or any other modern web apps, make sure you run production server or build the app and serve static files as JPRQ is not capable of exposing Websocket.With serving React, Vue or any other modern web apps in development mode, you can use TCP Tunneling
Package: jprqqq
JPRQ - Ngrok AlternativeGet Your Localhost Online and HTTPSHow JPRQ is different from Ngrok?JPRQ is a free and open-source Ngrok alternative to expose local servers online easily.It allows developers to serve unlimited requests to the local server compared to Ngrok's40 requests/minutelimit.It can expose multiple ports at the same time compared to Ngrok with1 portlimit.[NEW] it can now expose any TCP protocol, like SSH, MySQL, Redis, etc.How to install$pipinstalljprqHow to useReplace 8000 with the port you want to expose$ jprq http 8000For exposing SSH, WebSocket, Postgresql or any TCP servers$ jprq tcp 22For windows users:For exposing HTTP servers> py -m jprq http 8000For exposing TCP servers> py -m jprq tcp 22Press Ctrl+C to stop it[NEW] Custom SubdomainReplacesubdomainwith a subdomain you want, works with ony http tunnels.$ jprq http 8000 -s=subdomainHow to uninstall$pipuninstalljprqHow JPRQ WorksJPRQ's Client-side implementation in Python:https://github.com/azimjohn/jprq-python-clientLimitationsHTTP Tunneling cannot expose WebSocket, use TCP TunnelingDoesn't work with HTTP Long Polling with HTTP Tunneling, Use TCP TunnelingTroubleshootingWith serving React, Vue or any other modern web apps, make sure you run production server or build the app and serve static files as JPRQ is not capable of exposing Websocket.With serving React, Vue or any other modern web apps in development mode, you can use TCP Tunneling
Package: jpscore
Scoring covid-19 policies by prefecture in JapanDOI:https://doi.org/10.24433/CO.2522268.v1This is under review.dataset of NHK is not updated so that the following dataset will be used.https://covid19.mhlw.go.jp/public/opendata/deaths_cumulative_daily.csvorhttps://covid19.mhlw.go.jp/public/opendata/number_of_deaths_daily.csvHow to install jpscoreYou need pandas and openpyxl library.$ pip install pandas$ pip install openpyxlOn WSL on Windows, MacOS, or Linux operating systems, run the following command:$ pip install jpscoreOn Windows 11 or 10$ pip install jpscore --force-reinstall --no-cache-dir --no-binary :all:The latest data on the number of deaths by prefecture in Japan is at the following site:https://www3.nhk.or.jp/n-data/opendata/coronavirus/nhk_news_covid19_prefectures_daily_data.csvHow to run jpscoreThe result.csv will be generated by the following command:
as of march 19, 2022$ jpscoreExercises1. Make a csv file of the total deaths by prefecture using the latest data.
Hints:
Use pandas DataFrame.
Prefecture deaths population score
...

Find the latest date on the total deaths by prefecture in the csv file.
Make a list of prefectures.
Make the total deaths data by prefecture.
Find the latest population csv.
Make the latest population by prefecture.
Calculate a score by prefecture.
Package: jpserve
jpserveJpserve provides a simple and high performance way to execute Python script in JAVA. It includes PyServe and JClient API.PyServe is an execute server running on Python side and listening the execute requests from JAVA.The JClient API can executes Python snippet or complete script file from java, it send the script to PyServe and get the execution result. The result is JSON format, so you can exchange the complex data between JAVA and Python flexibly.Quick StartPython SideOpen Python console, import jpserve and start the PyServe:>>> from jpserve.jpserve import PyServe
>>> server = PyServe(("localhost", 8888))
>>> server.start()
>>>
    INFO:pserve:starting...
    INFO:pserve:pyserve listening in localhost 8888
>>>JAVA Side>>>
// init the PyServeContext, it will make a connection to PyServe
PyServeContext.init("localhost", 8888);
//
// prepare the script, and assign the return value to _result_
String script = "a = 2\n"
              + "b = 3\n"
              + "_result_ = a * b";
//
// sned the script to PyServe, it returns the final result
PyResult rs = executor.exec(script);
//
// check if the execution is success
if (rs.isSuccess()) {
  System.out.println("Result: " + rs.getResult()); // get the _result_ value
}
else {
  System.out.println("Execute python script failed: " + rs.getMsg());
}
------------------------
Result: 6
Package: jpstat
jpstatA python package for accessing the official statistics of Japan.Featuresestat apiestat fileInstallpipinstalljpstatestat APIestatis the official site for government statistics in Japan. Its api service offers data of over 250+ statistics in Japan. You need to register an api key to access to the statistics.FunctionsAll functions return one or multiple pandas DataFrames.To see a list of statistics offered by estat apiimportjpstatstat=jpstat.estat.get_stat(key=YOUR_API_KEY)To search data by either the code of a statistic or some keywordsdata=jpstat.estat.get_list(statsCode="00400001")data=jpstat.estat.get_list(searchWord="企業")To download data and data notedata,note=jpstat.estat.get_data(statsDataId="0000040001")If there is an error related to accessing the data note, one can simply suppress outputting it bydata=jpstat.estat.get_data(statsDataId="0000040001",return_note=False)ConfigurationYou can pass the estat api key to each function. Or you can set a configurationjpstat.options["estat.api_key"]="MY_API_KEY"You can also set the language from Japanese (default, "J") to English
(However it is strongly recommended to use "J" as it often returns more information about the data)jpstat.options["estat.lang"]="E"To see a list of valid configuration optionsjpstat.config.describe_options()estat FileMany statistics and datasets in estat can not be accessed through API, but are excel, csv, or pdf files and can be downloaded. Here jpstat provides the functions that scrape the information of statistics and download the files. Api key for estat is not needed, and the result is in Japanese only.FunctionsTo see a list of all statistics in estat that have downloadable filesdata=jpstat.estatFile.get_stat()It will take some time to scraping the website of estat at the first time and then save the list tooptions["estat.data_dir"]. From then on, the function would first try to read the local file. You can force scraping again by settingupdate=True.To search data files by code of a statistic and the survey year (optional)data=jpstat.estatFile.get_list(statsCode="00400001")data=jpstat.estatFile.get_list(statsCode="00400001",year="1950")Again, you can save the result by settingsave=True, and from next time jpstat would first check if the result already exists.To download the file by using the information of data id and file type ("EXCEL"/"CSV"/"PDF") gotten from the result ofestatFile.get_listjpstat.estatFile.get_file(statsDataId="000029094935",file_type="EXCEL")The file would be downloaded to current folder by default.
Package: jpsy
jpsyEnforcing Language Naming ConventionsWhat is it?jpsy (pronounced like Gypsy), is a tool for naming convention purists, who don't like seeing other languages' naming
conventions messing around their code's look and feel.It comes in handy when your python code handles JSONs created in a JavaScript component,
or just when you have people in your project who don't play by the book when it comes to naming conventions.Installationpip install jpsyorpip install -e git+git://github.com/RomAviad/jpsy.gitWhat's with the name?Obviously, it's a mash-up between JS and Py(thon).Usage Examplefromjpsyimportpythonify,jsifysample={"abc_pep8":123,"dictKey":{"PascalCase":"whatever","camelCaseLongKEY":"woot"}}pythonified=pythonify(sample)print(pythonified)# >>> {'abc_pep8': 123, 'dict_key': {'pascal_case': 'whatever', 'camel_case_long_key': 'woot'}}jsified=jsify(sample)print(jsified)# >>> {'abcPep8': 123, 'dictKey': {'PascalCase': 'whatever', 'camelCaseLongKEY': 'woot'}}jsified_python=jsify(pythonified)print(jsified_python)# >>> {'abcPep8': 123, 'dictKey': {'pascalCase': 'whatever', 'camelCaseLongKey': 'woot'}}
Package: jpt
# JPT
Jake’s Python ToolsCHANGELOG:
1.1:Added tobinary()Added toascii()Added write()Added speak()COMMANDS:DATE:dt() Show date and timetime() shows the timedate() shows the datedatenoash() shows the date without dashesdt() same as above except shows the time aswelldtforwardslash() Shows date and time with forward slashesdateforwardslash() Shows the date with forward slashesSTRING MODIFICATIONS:caps(string) Shows string with first letter as capitaltitle(string) Shows string with first letter of each word as capitallower(string) Shows string with all letters as lower caseupper(string) Shows string with all letters as upper casejoin(string) Joins two stringsnonum(string) Removes all numbers in a stringtobinary(string) Converts string to binarytoascii(string) Converts string of binary to asciiSAVING AND LOADING:save(string2save, whatfiletosaveto) Saves string to fileload(whatfiletoload) Loads filezip(zipfile, filetozip) Zips a fileunzip(ziptounzip) Unzips a zip filewrite(nameoffile, whattowrite) Writes text to a fileNUMBERS:isprime(number) Shows if number is prime or notOTHER:username() Shows the username of the current userpipupgrade() Upgrades all modules installed by pipupgrade() Upgrades JPTcmd(command) Runs command as cmdspeak(string) TTS, Speaks string out loudtobinary(acsiistring) Converts acsii to binarytoacsii(binarystring) Converts binary to ascii
Package: jpt-django-utils
Re-usable Django utils.DocumentationThe full documentation is athttps://JPT-DJANGO-UTILS.readthedocs.io.QuickstartInstall JPT Django Utils:pip install jpt-django-utilsAdd it to yourINSTALLED_APPS:INSTALLED_APPS=(...'jpt_django_utils.apps.JptDjangoUtilsConfig',...)Add JPT Django Utils’s URL patterns:fromjpt_django_utilsimporturlsasjpt_django_utils_urlsurlpatterns=[...url(r'^',include(jpt_django_utils_urls)),...]FeaturesTODORunning TestsDoes the code actually work?source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ toxHistory0.8.0 (2021-01-05)Use serializer.instance instead of serializer.data0.7.0 (2020-11-17)Add perform_create method in CreateModelMixin0.6.0 (2018-11-08)Log full exception traceback in ExceptionMiddleware.Allow additional data to be passed to APIView.failure().0.5.2 (2018-03-05)Fix PublishExpireManager not being exported by publishable module.0.5.1 (2018-03-05)Add PublishExpireManager.0.5.0 (2018-02-06)Add AutoIntVersionSerializer0.4.0 (2018-01-30)Add json_client fixture.Add rest_framework utils0.3.0 (2018-01-26)Enforce Python 3.4 >= only in setup.py.Add PublishExpireMixin and PublishExpireQuerySet.0.2.1 (2018-01-24)Re-upload to PyPI with an all lowercase name.0.2.0 (2018-01-24)Add AutoIntVersionAdmin.0.1.0 (2018-01-22)Add SoftDeletionMixin.Add AutoIntVersionMixin and AutoIntVersionField.Add CreatedUpdatedMixin, CreatedUpdatedSerializer and CreatedUpdatedAdmin.Add exception utils: raise_truthy, raise_falsey, raise_none.Add testing.client.JSONClient.0.0.0 (2018-01-12)Initial commit.
Package: jptel
jptel は日本の電話番号を市外局番・市内局番・加入者番号に分割して返します。This package is utility for japaneses telephone number.インストール$ pip install jptel使い方>>>importjptel>>>jptel.normalize('0123456789')'0123-45-6789'>>>jptel.normalize('０１２３４５６７８９')'0123-45-6789'>>>jptel.validate('0123456789')True>>>jptel.validate('022252-2222')False>>>jptel.split('0312345678'){'area_code':'03','city_code':'1234','subscriber_code':'5678'}>>>jptel.split('00000000000')exception.InvalidTelephoneNumberExceptionその他固定電話の市外局番データは総務省のサイトからダウンロードできるExcelから生成しています。 再生成する場合は以下の手順で行って下さい。$ pip install -r dev_requirements.txt
$ python _generate_master_data.py
Package: jptime
jptimejptime handle japanese time format.InstallationpipinstalljptimeUsagefromdatetimeimportdatetimeimportjptime# from stringjpt=jptime.from_str("平成元年三月三日")assertjpt.to_tuple()==(4,1,3,3)assertjpt.to_datetime()==datetime(1989,3,3)# from datetimejpt=jptime.from_datetime(datetime(2019,5,1))assertjpt.to_tuple()==(5,1,5,1)# 令和1年5月1日Supported formatsjapanese eraera_symbol/yy/mm/dd (allow kanji number)
(e.g. 昭和5年3月3日)era_code + yymmdd
(e.g. 3031123, H040323)christian era (delegate to dateutil.parser)
(e.g. 19920323, 2018-12-12, 2018年8月13日)
Package: jptrade
World-Trade-VisualizationThis is package for visualizing bilateral imports.
You can visualize the bilateral import volume between Japan and any country.
You can also specify import items if you wish.
In that case, enter the following numbers as arguments.1:"Animal products"
2:"Dairy products"
3:"Fruits, vegetables, plants"
4:"Coffee, tea"
5:"Cereals and preparations"
6:"Oilseeds, fats and oils"
7:"Sugars and confectionery"
8:"Beverages and tobacco"
9:"Cotton"
10:"Other agricultural products"
11:"Fish and fish products"
12:"Minerals and metals"
13:"Petroleum"
14:"Chemicals"
15:"Wood, paper, etc"
16:"Textiles"
17:"Clothing"
18:"Leather"
19:"Non-electrical machinery"
20:"Electrical machinery"
21:"Transport equipment"
22:"Manufactures n.e.s."
Package: jptranstokenizer
jptranstokenizer: Japanese Tokenzier for transformersThis is a repository for japanese tokenizer with HuggingFace library.You can useJapaneseTransformerTokenizerliketransformers.BertJapaneseTokenizer.issue は日本語でも大丈夫です。DocumentationsDocumentations are available onreadthedoc.Installpip install jptranstokenizerQuickstartThis is the example to usejptranstokenizer.JapaneseTransformerTokenizerwithsentencepiece model of nlp-waseda/roberta-base-japaneseand Juman++.Before the following steps, you need toinstall pyknp and Juman++.>>>fromjptranstokenizerimportJapaneseTransformerTokenizer>>>tokenizer=JapaneseTransformerTokenizer.from_pretrained("nlp-waseda/roberta-base-japanese")>>>tokens=tokenizer.tokenize("外国人参政権")# tokens: ['▁外国', '▁人', '▁参政', '▁権']Note that different dependencies are required depending on the type of tokenizer you use.See alsoQuickstart on Read the DocsCitationThere will be another paper.
Be sure to check here again when you cite.This Implementation@inproceedings{Suzuki-2023-nlp,
  jtitle = {{異なる単語分割システムによる日本語事前学習言語モデルの性能評価}},
  title = {{Performance Evaluation of Japanese Pre-trained Language Models with Different Word Segmentation Systems}},
  jauthor = {鈴木, 雅弘 and 坂地, 泰紀 and 和泉, 潔},
  author = {Suzuki, Masahiro and Sakaji, Hiroki and Izumi, Kiyoshi},
  jbooktitle = {言語処理学会 第29回年次大会 (NLP2023)},
  booktitle = {29th Annual Meeting of the Association for Natural Language Processing (NLP)},
  year = {2023},
  pages = {894-898}
}Related WorkPretrained Japanese BERT models (containing Japanese tokenizer)Autor NLP Lab. in Tohoku Universityhttps://github.com/cl-tohoku/bert-japaneseSudachiTraAuthor Works Applicationshttps://github.com/WorksApplications/SudachiTraUD_Japanese-GSDAuthor megagonlabshttps://github.com/megagonlabs/UD_Japanese-GSDJuman++Author Kurohashi Lab. in University of Kyotohttps://github.com/ku-nlp/jumanpp
Package: jpt-templated-docs
Generate templated documents within Django in any format supported by
LibreOffice: texts, spreadsheets, presentations etc.Free software: MIT licenseDocumentation:https://templated-docs.readthedocs.io.RequirementsPython 2.7 or 3.4+Django >= 1.8A recent LibreOffice version (>=4.3.0) supporting LibreOfficeKit API.Example usageCreate asample.odtdocument (make sure it’s in OpenDocument format) and
put it in your Django templates folder. It should look something like this:Then write a view to generate documents from this template:fromtemplated_docsimportfill_templatefromtemplated_docs.httpimportFileResponsedefget_document(request):"""
    A view to get a document filled with context variables.
    """context={'user':request.user}# Just an examplefilename=fill_template('sample.odt',context,output_format='pdf')visible_filename='greeting.pdf'returnFileResponse(filename,visible_filename)Navigate to the url your view is connected to, and you’ll see a rendered and converted document:For more examples, see theexamples/subfolder in the repository. More detailed documentation is available onhttps://templated-docs.readthedocs.io.CreditsTemplated-docs was written byAlex Morozov.As the repository is left idle for 2 years,Sian Lerk Lauhas forked and resume the task of updating the module.This package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.