Saravanan666/pypi-org huggingface dataset:
Package: texture-mapping
Texture MappingInstallpip install texture-mappingInput txt config formattxtfile indicates camera pose and intrinsic parameters.
The format is as follows.translation_x translation_y translation_z
rotation_00 rotation_01 rotation_02
rotation_10 rotation_11 rotation_12
rotation_20 rotation_21 rotation_22
fx
fy
cx
cy
image_height
image_widthExamplesgit clone https://github.com/iory/texture-mapping.git
cd texture-mapping
texture-mapping --input examples/obj.ply --out textured.obj --config-dir examples/Output obj filetextured.objwill be created at the same directory of input ply file.
Package: textureminer
textureminerA Python script that allows you to extract and scale Minecraft's item and block textures. It automates the process of downloading the necessary files and performing the required operations.Table of ContentsTable of ContentsGetting StartedPrerequisitesInstallationUsageGetting StartedPrerequisitesInstall Git if you plan on using the Bedrock edition.You can install Git using your system's package manager, or by downloading theinstallerfrom the official website.LinuxsudoaptinstallgitMacOSbrewinstallgitWindowswingetinstallGit.GitInstall/update thepippackage manager.python3-mpipinstall--upgradepipIt's also recommended to use avirtual environment.Linux / MacOSpython3-mvenv<venv-name>sourcevenv/bin/activateWindowspython3-mvenv<venv-name>
<venv-name>/Scripts/activateInstallationUse pip to installtextureminerpackage.pipinstall--upgradetextureminerAfter installing the package,textureminerwill be available as a command line tool.UsageThe base syntax fortexturemineristextureminer [version] [flags]. If version is omitted, the latest version of Minecraft will be used. If no edition flags are specified, the Java edition will be used.To download and scale textures for the most recent Java version, run the following command.textureminerAdd--bedrockor-bto use the Bedrock edition.textureminer--bedrock# or -bYou can also pick a specific update or update channel of Minecraft to download textures for.textureminer1.17.1# a java stable releasetextureminer22w14a# a java snapshottextureminerv1.20.0.1# a bedrock releasetextureminerv1.20.50.22-preview# a bedrock preview# update channels, gets latest version from channel, by default using java edition if no edition is specifiedtextureminerstable# stable versiontextureminerexperimental# snapshot/preview version depending on editiontextureminersnapshot# java snapshottextureminerpreview# bedrock preview, no need to specify editionThere is also options for the scale factor and output directory. Get more information with the--helpflag.textureminer--helpAt a high level, the script follows the following steps:Download files.If Java edition, download the client.jarfile for the specified version from Mojang's servers.If Bedrock edition, clone theMojang/bedrock-samplesrepository from GitHub.Extract correct files.If Java edition, extract the textures from the.jarfile.If Bedrock edition, change to the specified version tag.Filter files, only leaving item and block textures to the specified output directory (default:~/Downloads/textureminer/<edition>/<version>/).Scale textures by a specified factor (default: 100).Merge block and item textures into a single directory by default.
Package: texturepacker
Minecraft Texture-Pack MakerPurposeTexturepacker provides programmaketexturefor assembling
texture packs for Minecraft using recipes written in a simple language
expressed using JSON or as Python dicts, and a library of Python classes
that can be used to do the same thing in your own programs.Texture packs can be created by combining image files in PNG format, or
images extracted from existing texture packs. This enables you to remix
texture packs to use alternative textures for some elements if the
original artist included them, or even to combine textures from two or
more separate packs. One use for this might be to upgrade a pack
designed for an earlier version of Minecraft to work with newly added
items.InstallationRequirements:Python 2.7Distribute (or Setuptools might work)You should be able to install with the following command:$ python setup.py installYou can test it worked by running it on an example recipe:$ maketexture -v examples/groovystipple.zip(These are included in the source distribution but will not be
included in a binary install.)To run automated tests, you need to install 2 more packages and
then use Nose:$ pip install nose mock
$ nosetests testsThis should print a lot of dots and then report OK at the end.
Package: texture-replicator
Texture ReplicatorTexture replicator is an app that takes a base image and a folder of images, and replicates the folder while replacing all the images with the base image.DescriptionOne day, my friends and I were using Dolphin to emulate a popular GameCube game, and my friend Ned suggested that we dump the textures and replace them with pictures of bread. After an hour of tediously copying, rescaling, and renaming one bread image over and over, I decided there must be a better way. So, the Texture Replicator was born.I decided to use Python to create this app because it is a powerful language that I am unfamiliar with. I also want to showcase my ability to learn new things and to develop using TDD.ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT
Package: textures
TexturesTextures is a python package that allows you to extract some handy features and stats from text columns in Pandas DataFrames.
It also includes some useful functions for cleaning text and extracting patterns (e.g., hashtags and emails from strings) and save your time looking for regular expression patterns on google and stackoverflowOverviewThe package has three modules:features: has aextract_featureswhich allow you to compute and return more than 30 features from a Pandas DataFrame.clean_text: provides several functions for cleaning string inputs (e.g., remove hashtags).find: provides several functions for finding patterns such as hashtags in string inputs.
Installation
~~~~~~~~~~~~~~~~~~~~~~LicenseBibliographySee also
Package: texturize
Generate photo-realistic textures similar to a source picture. Remix, remake, mashup!A command-line tool and Python library to automatically generate new textures similar
to a source image or photograph.  It’s useful in the context of computer graphics if
you want to make variations on a theme or expand the size of an existing texture.This software is powered by deep learning technology — using a combination of
convolution networks and example-based optimization to synthesize images.  We’re
buildingtexturizeas the highest-quality open source library available!➔ See theGitHub repositoryfor details.
Package: text-validator
text-validatorpluggable command-line tool for validating the formatting and orthography of text filesYou config your validator plugins with a TOML file like:["text_validator.plugins.whitespace"]
CHECK_CRLF = true
CHECK_TABS = true
CHECK_TRAILING_WHITESPACE = true
CHECK_NO_EOF_NEWLINE = true

["text_validator.plugins.unicode"]
CONFIRM_UTF_8_NFC = true

["text_validator.plugins.ref_line_format"]
REF_REGEX = "(\\d+|EP|SB)\\.\\d+(\\.\\d+)?$"  # example from AF

["text_validator.plugins.characters"]
REPLACE_CHARS = [
    # bad character, suggested replacement
    ["\u02BC", "\u2019"],
    ["\u1FBF", "\u2019"],
    ["\u037E", "\u003B"],
    ["\u0387", "\u00B7"],
    ["\u0374", "\u02B9"],
    ["\u03D5", "\u03C6"],
    ["\u03D1", "\u03B8"],
]and they'll validate the texts you give it:tests/test_0001.txt:1:line ends with CRLF
tests/test_0001.txt:2:line ends with CRLF
tests/test_0002.txt:1:no newline at end of file
tests/test_0003.txt:1:line contains a tab
tests/test_0004.txt:1:trailing whitespace
tests/test_0006.txt:1:not NFC
tests/test_0007.txt:2:BLANK LINE
tests/test_0008.txt:1:BAD WHITESPACE
tests/test_0008.txt:2:BAD WHITESPACE
tests/test_0009.txt:4:BAD REFERENCE FORM
tests/test_0009.txt:5:BAD REFERENCE FORM
tests/test_0010.txt:2:29:bad U+02BC; consider replacing with U+2019
tests/test_0010.txt:3:29:bad U+1FBF; consider replacing with U+2019To install:pip install text-validatorThen you can either run from the command line:validate-text tests/config_004.toml tests/test_0007.txt tests/test_0008.txt tests/test_0009.txtor programmatically from Python, either with the helper functionvalidate:from text_validator.main import validate

validate("tests/config_003.toml", ["tests/test_0005.txt", "tests/test_0006.txt"])or by working directly with a Suite instance:from text_validator.base import Suite

suite = Suite()
suite.load_toml("tests/config_002.toml")
suite.validate_files(["tests/test_0005.txt", "tests/test_0006.txt"])Also see:Plugin DirectoryHow to Write a Plugin
Package: textwatermark
TextWatermarkTextWatermark is a library for inserting watermarks into textPlease take a look at our documentation for how to install and use TextWatermark:WebsiteGithubUsageExampleChangelogAPI DocumentsTemplatesPyPIRequirementsTested on Python>= 3.10InstallationUsing Pip$ pip install textwatermarkFrom Codegitclonehttps://github.com/JDArmy/TextWatermark.gitcdTextWatermark

pipinstall.# or in editable modepipinstall--editable.UsageCMD LineInsert watermark into text$textwatermark-vinsert-f'./tests/text/number.txt'-mALPHA_NUMERICAL-tHOMOGRAPH_NUMBERS-x999-w123Ӏ2𝟑𝟒𝟓Ⳓ𝟟890Export watermark parameters$textwatermark-vinsert-f'./tests/text/number.txt'-mALPHA_NUMERICAL-tHOMOGRAPH_NUMBERS-x999-w123-e{"tpl_type": "HOMOGRAPH_NUMBERS", "confusables_chars": [], "confusables_chars_key": "", "wm_base": 7, "method": 1, "wm_mode": 5, "wm_len": 7, "wm_loop": false, "start_at": 0, "version": "0.1.2"}Retrieve the watermark from the text$textwatermark-vretrieve-fout.txt-p'{"tpl_type": "HOMOGRAPH_NUMBERS", "confusables_chars": [], "confusables_chars_key": "", "wm_base": 7, "method": 1, "wm_mode": 5, "wm_len": 7, "wm_loop": false, "start_at": 0, "version": "0.1.2"}'The retrieved watermark is: 123Coding'''Sample Example'''importosfromtextwatermark.definesimportWMModefromtextwatermark.mainimportTextWatermarkfromtextwatermark.template_typeimportWMTemplateType# 1.Init TextWatermark instancewm_mode=WMMode.REAL_NUMBERwm=TextWatermark(wm_mode=wm_mode)# 2.Choose a watermark templatewm.set_tpl_type(tpl_type=WMTemplateType.HOMOGRAPH_NUMBERS)# 3.Set the maximum value of the watermark stringwm_max='9'*9wm.set_wm_max(wm_max=wm_max)# 4.Set the text to be watermarkedwm.set_text_file(path=os.path.abspath('../tests/text/1.txt'))# 5.Insert watermark string to textwm_str='123456789'wm_text=wm.insert_watermark(wm_str=wm_str)print(wm_text)############################################################### Save the parameters to retrieve the watermarkparams=wm.export_params()# retrieve the watermarkwm_out_str=TextWatermark.retrieve_watermark(wm_text=wm_text,params=params)assertwm_out_str==wm_strMoreSee:Documents
Package: textworker
TextworkerA simple and cross-platform Python text editor.This is an initial port of texteditor to use wxPython - not all features are implemented.Stuffs you can do with this editor:Split tabs and rearrange them like VSCode (but it's a bit limited)Access to your files without opening File ExplorerRun some tasks with Command WindowCustomizable interfaceAuto save! (for the current tab in this time)SetupRead the instruction onBuildAndRun.md.See all app releaseshere.You can get wheels onGitHub actions..
Package: textworld-remote-env
Remote Env for TextWorldFree software: Apache Software License 2.0Installationpip install textworld-remote-envDocumentationhttps://TextWorld_remote_env.readthedocs.io/DevelopmentTo run the all tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append toxChangelog0.1.0 (2018-11-06)First release on PyPI.
Package: textwrap3
textwrap3is a compatibility back-port of Python 3.6’stextwrapmodule that supports Python 2.6 forward. (Though honestly, if you’re not
already usingat least2.7, you’re way behind the times!)This makes a few new
APIs such asshortenand themax_linesparameter available
in a compatible way to all Python versions typically in current use.Import and use it like you wouldtextwrapfrom the standard library:from textwrap3 import wrap

text = 'long text here...'
print(wrap(text, 40))The standardtextwrap documentationis the best reference material.Bias and TweaksBy design, Python 3 sensibilities and expectations rule. Especially when
processing text that includes Unicode characters,textwrap3’s results may
differ a bit from those of thetextwrapof the underlying Python version
(esp. 2.x). In particular,textwrap3uses there.UNICODEflag so that
non-ASCII characters such as accented letters are considered legitimate word
characters.It also adds one tweak, considering the Unicode em-dash
('\N{EM DASH}'oru'\u2014') identical to the simulated ASCII em-dash'--'.NotesSeeCHANGES.ymlfor the Change Log.This module is almost entirely the work of Gregory P. Ward
(textwrap’s original author) plus enhancements from the Python
community.  This separate packaging is just a delivery and
compatibility vehicle. It contributes cross-Python
version compatibility shims, a few additional tests, and better
handling of real em-dashes. The vast majority of functionality
still comes from the standardtextwrapcode base, as of the
Python 3.6 release.InstallationTo install or upgrade to the latest version:pip install -U textwrap3You may need to prefix these withsudoto authorize
installation. In environments without super-user privileges, you may want to
usepip’s--useroption, to install only for a single user, rather
than system-wide. Depending on your system configuration, you may also
need to use separatepip2andpip3programs to install for Python
2 and 3 respectively.
Package: textx-dsldoc
# TextX DSL autodocumentation tool
A non-official TextX poc-project aiming to autogenerate documentation of DSL.For testing the TextX integration, you will be required to install [from repository](https://github.com/textX/textX) since the CLI extending is not available in 1.8.## Files[example.py](example.py): example of DSL definition directly taken [from another project](https://github.com/aluriak/24h2019)[out.html](out.html): the HTML output file (take a look to get a feeling of the current project achievements)[poc.py](poc.py): first implementation, absolutely bad, but few functions are worth saving[poc_as_cls.py](poc_as_cls.py): use some functions ofpoc.pyto implement the same thing, but in a clearer manner[poc_render_peg.py](poc_render_peg.py): rendering of arpeggio (textx backend) grammars[Current results](out.html) are encouraging.## F(unny )eaturessupport of docstrings (those at user classes level)auto-generation of examples for regexes, and complete linking to [pythex.org](https://pythex.org)## TODOintegrate complete example (either randomly or author-provided)get a complete example with advanced features like references and other textx/arpeggio constructsfix detection and handling of terminal for the description of rulesgenerate few examples for each documented rule (randomly, probably)make the generation deterministichumanize the phrasing (ex: when choice only on raw strings, avoid the bullet list and list them inline directly with anorfor the last join:Type either _a_, _b_ or _c_)integration into textx with [textx subcommands](https://github.com/textX/textX/pull/162) (see [doc](http://textx.github.io/textX/latest/textx_command/#extending-textx-command))
Package: textx-gen-coloring
Syntax Highlighting Generator for textX LanguagesThis project usestextXgrammar and generates syntax highlighting file for it.Supported syntax highlighting languages:textmate (used by VS Code andtextx-gen-vscodeproject)CLI ExamplesGenerate a default syntax highlighting forworkflowlanguage:textXgenerate--targettextmate./examples/workflow/workflow.tx--nameWorkflowGenerate a custom syntax highlighting forworkflowlanguage:textXgenerate--targettextmate./examples/workflow/workflow.tx--nameWorkflow--syntax_spec./examples/workflow/workflow.txclOther NotesSome parts of code are used fromtextX-languageserverproject.
Package: textx-gen-vscode
VS Code Extension Generator for textX LanguagesAtextXgenerator which outputs simple, installableVS Codeextension from a registeredtextXlanguage project.It is used primary bytextX-LSproject when generating and installingtextXlanguages.CLI ExamplesGenerate aVS Codeextension fortx_workflowproject packaged in archive:textxgenerateexamples/workflow/tx_workflow/workflow.tx-o.--target=vscode--project_nametx-workflowGenerate aVS Codeextension fortx_workflowproject packaged in installablevsixformat:textxgenerateexamples/workflow/tx_workflow/workflow.tx-o.--target=vscode--project_nametx-workflow--vsixTrueOther NotestextX language project should be registrated in order generator to find it by passedproject namepath to the grammar (examples/workflow/tx_workflow/workflow.tx) is not used for now, but idea is to be able to create project from it
Package: textX-jinja
textX-jinjaJinjabased framework fortextXgenerators. Use if you need to generate a
set of template-based files from textX models.How to use?Create a folder containing files and folder which resemble the structure you
want to generate. Each file may be a Jinja template (should end with.jinjaextension).File names may contain variable parts in the form__<varible name>__(double underscores around the variable name). These parts of file names will
be replaced by the value of the variable from the generator context. If the
variable is iterable, a file will be created for each object. In that case,
the value for substitution in the file name will be created by functionmap_names(still WIP!), if given, orstrof the object itself. The object
will be available in the template context under the nameobj. If the
variable is ofbooltype the file will be skipped if the variable value isFalse.In your textX project register a generator (seeregistration).fromtextximportgeneratorfromtextxjinjaimporttextx_jinja_generator@generator('mylang','mytarget')defmygenerator(metamodel,model,output_path,overwrite,debug):# template directorytemplate_folder=os.path.join(os.path.dirname(__file__),'templates')# create context dict with all variables that should be accessible# by templatescontext={'some_variable':'some value'}# Optionally provide Jinja filtersdefstriptabs(s):returnre.sub(r'^[ \t]+','',s,flags=re.M)filters={'striptabs':striptabs}# call the generatortextx_jinja_generator(template_folder,output_path,context,overwrite,filters)Install your project (recommended is the usage of Python virtual environment):pip install -e <path to your project>Run your textX generator as usual:$textxgenerate...The generator will use the template folder for rendering files using Jinja
template engine. All files from the template folder which are not Jinja
templates (don't end with.jinja' extensions) will be copied over to the
target folder unchanged (variable substitutions in file names still apply).As a full example of its usage seestartproject generator in textX-dev
project.
Templates for thestartprojectcommand arehere.
Package: textx-lang-questionnaire
Questionnaire DSLA DSL for describing questionnaires with a simple terminal interpreter.Example:Q[type]: Project type
1[lang]. Language project
2[gen]. Generator project

Q[type=lang, extension]: File extension (e.g. "*.que"):
___ /\*\.[a-z0-9]+/

Q[package]: Package name
___ /[a-z][a-z0-9_]*$/

Q: Author name
___

Q: Author email
___

Q: This question is to
   test multiline feature and indenting.
   1. Working
   2. Not working.
      This is also to test multiline in choices.Each question is of the formQ:orQ[<comma separated terms>]. If[]with
terms is given, each term is either a question ID or a boolean expression of the
form<lhs>=<rhs>where<lhs>is a reference to previous question ID while<rhs>is a value of the previous question which must be satisfied for this
question to be used. This is handy if the questions that follows depends on the
answer. SeeFile extensionquestion above which is asked only for language
projects (thustype=lang, thetypeis a reference to the previous question).The type of the question is either free-form (specified by___) or choice if
enumerated options are given.Both question and option can span multiple lines (like in the last question).For free-form question an optional regular expression can be given inside//(seePackage nameabove). This regex is an input validator.This package provides an interpreter of the questionnairetxquestionnaire.questionnaire_interpreter(model, data=None)which accepts the
model created by parsing of questionnaire description using this language and
optionally a dictionary of default answers keyed by either question ID if given
or question number. The interpreter will run the questionnaire on the console
and return a dictionary of collected data. The values for options are ordinal
numbers or IDs if given (like inProject typeabove --lang,gen).Please seetestsfor
the detailed usage.
Package: textx-model
textx_model介绍以textX为基础构建出可运行条件规则语句然后输出结果的模型条件规则语句（例）："(current_medical_program = '白细胞计数') and (specimen_type = '全血') and ""(medicine_projects in '[1,2,3]') and (time < 6)"当里面变量是："current_medical_program = '白细胞计数';specimen_type = '全血';medicine_projects = '2';time = 5;"结果输出: True当里面变量是："current_medical_program = '白细胞计数';specimen_type = '全血';medicine_projects = '2';time = 8;"结果输出: False功能介绍包含两个模型：通用模型（general_model）和 case when 专用模型（cs_model），它们处理的条件规则语句不同。包含一个工具：字典转字符串工具（dict_to_str）通用模型能处理的条件规则语句（例）："(current_medical_program = '白细胞计数') and (specimen_type = '全血') and ""(medicine_projects in '[1,2,3]') and (time < 6)"使用通用模型：
from textx_model import general_modelcase when 专用模型能处理的条件规则语句（例）："case when (current_medical_program = '白细胞计数') and (specimen_type = '全血') and ""(medicine_projects in '[1,2,3]') and (time < 6) then '提醒消息：白细胞计数的消息' else ''"使用case when 专用模型from textx_model import cs_model字典转字符串工具from textx_tools import dict_to_str安装教程pip install textx-model使用说明通用模型from textx_model import general_modelrule = "(current_medical_program = '白细胞计数') and (specimen_type = '全血') and ""(medicine_projects in '[1,2,3]') and (time < 6)"true_example = "current_medical_program = '白细胞计数';specimen_type = '全血';medicine_projects = '2';time = 5;"false_example = "current_medical_program = '白细胞计数';specimen_type = '全血';medicine_projects = '2';time = 8;"gm = general_model(true_example, rule)print(gm.run())   # 预期结果：Truegm = general_model(false_example, rule)print(gm.run())   # 预期结果：Falsecase when 专用模型from textx_model import cs_modelrule = "case when (current_medical_program = '白细胞计数') and (specimen_type = '全血') and ""(medicine_projects in '[1,2,3]') and (time < 6) then '提醒消息：白细胞计数的消息' else ''"true_example = "current_medical_program = '白细胞计数';specimen_type = '全血';medicine_projects = '2';time = 5;"false_example = "current_medical_program = '白细胞计数';specimen_type = '全血';medicine_projects = '2';time = 8;"cs = cs_model(true_example, rule)print(cs.run())   # 预期结果：提醒消息：白细胞计数的消息cs = cs_model(false_example, rule)print(cs.run())   # 预期结果：''字典转字符串工具from textx_tools import dict_to_strdata_dict = {
'current_medical_program': '白细胞计数',
'specimen_type': '全血',
'medicine_projects': '2',
'time': 8,
'_list': [1, 2, 3]
}"""
预期结果：
"current_medical_program = '白细胞计数';specimen_type = '全血';medicine_projects = '2';time = 8;_list = '[1,2,3]';"
"""print(dict_to_str(data_dict))