Saravanan666/pypi-org huggingface dataset:
Package: jinjasql
Generate SQL Queries using a Jinja Template, without worrying about SQL InjectionJinjaSQL automatically binds parameters that are inserted into the template.
After JinjaSQL evaluates the template, you get 1) Query with placeholders
for parameters, and 2) List of values that need to be bound to the query.JinjaSQL doesn’t actually execute the query - it only prepares the
query and the bind parameters. You can execute the query using any
database engine / driver you are working with.
Package: jinjasql2
Generate SQL Queries using a Jinja Template, without worrying about SQL InjectionJinjaSQL automatically binds parameters that are inserted into the template.
After JinjaSQL evaluates the template, you get 1) Query with placeholders
for parameters, and 2) List of values that need to be bound to the query.JinjaSQL doesn’t actually execute the query - it only prepares the
query and the bind parameters. You can execute the query using any
database engine / driver you are working with.
Package: jinjasql-poklet
Generate SQL Queries using a Jinja Template, without worrying about SQL InjectionJinjaSQL automatically binds parameters that are inserted into the template.
After JinjaSQL evaluates the template, you get 1) Query with placeholders
for parameters, and 2) List of values that need to be bound to the query.JinjaSQL doesn’t actually execute the query - it only prepares the
query and the bind parameters. You can execute the query using any
database engine / driver you are working with.
Package: jinja-subrender
Jinja ToolsA tool to help you logically separate how things are rendered in your project.
For example, you may want to have smaller templates rendered within larger templates.Register the BlueprintTo enable the features of the package, you must register the flask blueprint.from flask import Flask
import jinja_subrender

app = Flask()
app.register_blueprint(jinja_subrender.bp)Sub-Render ExampleYou may have a jinja-template that displays a collection of items, called ‘all_items.jinja’.
You may also have a jinja-templte for how each item should be rendered, called ‘item.jinja’.In this case your ‘all_items.jinja’ template could look something like:{% extends "main.jinja" %}

{% block content %}

{% for item in items %}
    <div>
        {{ item | Render('item.jinja') }}
    </div>
{% endfor %}

{% endblock %}The ‘item.jinja’ template could look something like:<div>
    {{ obj['name'] }}
    <img src="{{ obj['src'] }}"/>
</div>Note: Render() always passes the item as ‘obj’, but you can rename within the jinja template, like so:{% set item = obj %}
<div>
    {{ item['name'] }}
    <img src="{{ item['src'] }}"/>
</div>Passing multiple argumentsYou can also pass multiple arguments by passing them as a tuple in the super-template.
For example, ‘all_items.jinja’ could look like:{% set total = items | length %}
{% for item in items %}
    <div>
        {{ (item, total) | Render('item.jinja') }}
    </div>
{% endfor %}You can then access the second argument in the sub-template by breaking it apart with ‘set’{% set item, total = obj %}
<div>
    {{ item['name'] }}
    <img src="{{ item['src'] }}"/>
    total = {{ total }}
</div>
Package: jinjat
JinjatDevelop data applications with dbt, SQL, and OpenAPIInstallationpip install jinjatCreate your first APICreate ananalysisinanalysis/my_first_api.sql:{%-setquery=request().query%}select'{{query.example}}'ascol1And create a YML file inanalysis/schema.yml:version: 2

analyses:
  - name: my_first_api
    config:
      jinjat:
        method: get
        openapi:
          parameters:
            - in: query
              name: example
              schema:
                type: numberStart Jinjat as follows:jinjat serve --project-dir [YOUR_DBT_PROJECT_DIRECTORY]And then run the following CURL command to test the API:curl -XGET 'http://127.0.0.1:8581?example=value'It should return the following response:["col1":"3"]Jinjat uses OpenAPI to validate the requests and create an API documentation automatically for your API.Integrationspoetry install --extras "duckdb"Playgroundpoetry install --extras "playground"Installationpip install jinjat[playground]Jinjat Playground is a Streamlit app that lets you develop APIs in your browser.
Once you write the template, you can save it to your dbt project as an analysis and expose the API.
Package: jinjatag
A Library to Quickly Turn Functions into Jinja2 Extensions==========================================================This library is best demonstrated through example:```pythonimport jinjatag### Configure your Jinja2 Environment:jinja_tag = jinjatag.JinjaTag()jinja2_env = Environment(extensions=[jinja_tag])jinja_tag.init()### Decorate your functions@jinjatag.simple_tag()def mytag(foo, bar=None, **kwargs):return "mytag: "+foo+(bar or '')+str(kwargs)@jinjatag.simple_block()def myblock(body, foo, bar=None):return "myblock : "+body+foo+(bar or '')```Then, in your template code, use your new tags:{% mytag foo='abc' xyz='def' %}{% myblock foo='bar' %}contents{% endmyblock %}The resulting output:mytag: abc{'xyz':'def'}myblock: contentsbarThat's really all there is to it. A simple_tag is expected to accept 0 or more arguments and return a string. A simple_block is expected to accept at least one argument which will be its rendered body.Install-------The module is registered with pypi, so simply use:easy_install jinjatagor, if you're so inclined:pip install jinjatagFurther Documentation----------------------More documentation is available at http://mankyd.github.com/jinjatag/Also, tests are available in https://github.com/mankyd/jinjatag/tree/master/jinjatag/testsLicense--------GPL v3Authors-------Dave MankoffMike Axiak
Package: jinjatex
A wrapper ofJinja2for easy
rendering of.texfiles of all sorts.InstallationpipinstalljinjatexUsageThe mainJinjatexclass provides wrappers to compile tex templates
with jinja. Tex is not included, so make sure the binaries are available.Template SyntaxThe jinja template syntax is changed a little to not interference with latex
commands:((( This is a variable )))
((= This is a comment. =))
((* This is a block *))

((= Example =))
((* for value in somelist *))
    ((( value )))
((* endfor *))Python BindingsfromjinjateximportJinjatexfromtextwrapimportdedent# Example 1: Compile string templatestemplate_string=dedent(r"""% Example Template
    \documentclass{article}\begin{document}Hi ((( name )))!

    The document will be compiled multiple times, until
    all references etc. are resolved, like this one: \ref{somelabel}\section{Somesection}\label{somelabel}Some more content.

    \end{document}""")tex=Jinjatex()# Return rendered template onlytex.render(template_string)# Compile .tex and return content of .pdf, default engine is pdflatexwithopen('result.pdf','wb')asfile:file.write(tex.compile(template_string))# Example 2: Jinja options and other tex compilers# Assuming a template 'mytemplate.tex' exists in mypackage/tex_templatesfromjinja2importPackageLoader,StrictUndefinedtex=Jinjatex(tex_engine='xelatex',loader=PackageLoader('mypackage','tex_templates'),trim_blocks=True,undefined=StrictUndefined)tex.render_template('mytemplate.tex')withopen('result.pdf','wb')asfile:file.write(tex.compile_template('mytemplate.tex'))
Package: jinja-try-catch
jinja-try-catchA Jinja2 extension providing exception handling within templates.{%-try-%}{{1/0}}{%-catch-%}Can't divide by zero!{%-endtry-%}Can't divide by zero!This extension works in both sync and async environments, as well as the native variants, too.Quickstartpipinstalljinja-try-catchAnd add theTryCatchExtensionto yourEnvironmentextensions list:importjinja2fromjinja_try_catchimportTryCatchExtensionjinja_env=jinja2.Environment(extensions=[TryCatchExtension])UsageSuppressing errorsSimply omit the{% catch %}to silently swallow exceptions{%-try-%}{{1/0}}{%-endtry-%}Error messagesDefine a{% catch %}to render something else if an exception is raised{%-try-%}{{1/0}}{%-catch-%}There are infinite zeroes, duh{%-endtry-%}There are infinite zeroes, duhDisplay exceptionsThe raised exception is exposed within the{% catch %}through the{{ exception }}variable{%-try-%}{{1/0}}{%-catch-%}Uh-oh, an error occurred:{{exception.__class__.__name__}}:{{exception}}{%-endtry-%}Uh-oh, an error occurred:
  ZeroDivisionError: division by zero
Package: jinja-unquote-resolvers-filter
READMEOverviewA custom Jinja filter for Sceptre for unquoting resolvers appearing in
var files.MotivationIn Sceptre, resolvers are an essential feature for simplifying complex
configurations by enabling dynamic data retrieval. Resolvers such as!stack_output_externaland!stack_outputare particularly useful
for referencing output values from other stacks or external sources,
among many others.When using resolvers in var files, however, they must be protected from
being interpreted as YAML tags by the YAML loader.This plugin addresses this challenge by allowing you to safely include
resolvers in your var files. It ensures that resolvers are not processed
as YAML tags by the loader, and then turned back into YAML tags after
Jinja interpolation in the generated config.InstallationInstallation instructionsTo install directly from PyPIpipinstalljinja-unquote-resolvers-filterTo install from the git repopipinstallgit+https://github.com/Sceptre/jinja-unquote-resolvers-filter.gitUsage/ExamplesIn your var file:Subnets:-'!stack_output_externalmystack::subnet_a'# Quotes needed to protect a YAML tag.-'!stack_output_externalmystack::subnet_b'VPC:'!stack_output_externalmystack::vpc_id'In your config:j2_environment:extensions:-jinja_unquote_resolvers_filter.UnquoteResolversFilterExtensionsceptre_user_data:subnets:{{var.Subnets | unquote_resolvers(output_indent=4,trim=True)}}vpc:{{var.VPC}}# This filter is not needed if the quoted resolvers are passed in as scalars.Argumentsindent(optional, default=2): The number of spaces to use for indentation of nested structures in the output YAML.output_indent(optional, default=0): The number of spaces to use for indentation of the entire output YAML.trim(optional, default=False): Whether to trim leading and trailing spaces in the output YAML.LimitationsAt this time, resolver expressions must be wrapped in a single line of text. That is, instead of:my_multiline_resolver:|!from_json- !request http://www.whatever.comInstead write:my_multiline_resolver:'!from_json[!requesthttp://www.whatever.com]'
Package: jinja-vanish
When usingJinja2-templates to output non-HTML contents, autoescaping cannot
be used because it is hardcoded to work with an HTMLescapefunction andMarkupSafe’s Markup objects.jinja_vanishenables implementing custom auto-escapes by overriding theescapefunction inside the generated template code using an extended
code-generator and replacing the built-in filters|eand|escape. Usage
is fairly simple, here is an example that usespsycopg2’smogrify()function to escape SQL for Postgres:fromdatetimeimportdatetimefromjinja_vanishimportDynAutoEscapeEnvironment,markup_escape_funcfrompsycopg2.extensionsimportadapt@markup_escape_funcdefsql_escape(v):# the decorator handles wrapping/unwrapping in Markup(), but is# otherwise not necessaryreturnadapt(v)env=DynAutoEscapeEnvironment(autoescape=True,escape_func=sql_escape)tpl=env.from_string('SELECT * FROM foo where post_date <= {{now}}')print(tpl.render(now=datetime.now()))Running it outputs:SELECT * FROM foo where post_date <= '2016-01-24T23:23:22.727789'::timestamp
Package: jinja-yaml-magic
Jinja2 and YAML for JupyterPlease seethe full HTML version.The rest of this file is just thenbconvertinto Markdown; it's hard to read. Seethe HTML version.People use YAML and Jinja2 together; they're the core of Ansible. Sometimes you need a playground to figure out details of how they work. This magic provides both.In:%load_extjinja_yaml_magic%reload_extjinja_yaml_magic(Ignore the warning for%load_ext/%reload_ext.)YAML%%yaml variableparses the YAML in a cell into the namedvariable.
If you omitvariable, the YAML is parsed into the variablejinja_env; it's also
then available through the history mechanism:Out[3]or_3.In:%%yamlnames:-Jay-Chris-PatOut:{'names': ['Jay', 'Chris', 'Pat']}In:%%jinja{{names}}Out:['Jay', 'Chris', 'Pat']Jinja2If you just want to try out a quick template, write%%jinjaat the top of a cell. Both the contents ofjinja_envand notebook variables are available. Below, we're usingnamesfrom the%%yamlabove, andseparatorfrom the notebook.In:separator=", "In:%%jinja{{names|sort|join(separator)}}Out:Chris, Jay, PatNamed templatesYou may want to store Jinja2 code as a template.You can reuse the template later in the notebook;You can use Jinja2's powerfulextends,import, andincludemechanisms.The template below is available under the namefancy_names.Files in the current directory are also available as templates.In:%%jinja_templatefancy_names{%fornameinnames%}<b>{{name}}</b><br>{%-endfor%}In:%jinja--templatefancy_namesOut:<b>Jay</b><br>
<b>Chris</b><br>
<b>Pat</b><br>FormattingBy default, the result of running a%jinjatemplate is formatted as "pretty" text.
You can choose other formats.Type...displays as--prettyA string, without quotes--plainPython string literal--htmlHTML--svgSVG--latexLaTeX--markdownMarkdown--codeSyntax-highlighted code--latexrequires MathJax to be loaded; it is by default.--coderequires
a recent version of IPython.In:%jinja--templatefancy_names--htmlOut:JayChrisPatAn SVG exampleFromhttps://medium.com/@heyoka/scratch-made-svg-donut-pie-charts-in-html5-2c587e935d72. This template does math, so you may not want to follow its example.In:# Percent of circle to be filledfull=60# Percent distance from top to startoffset=12.5In:%%jinja_templatesvg_example<svgwidth="25%"height="25%"viewBox="0 0 42 42"class="donut"><circleclass="donut-hole"cx="21"cy="21"r="15.91549430918954"fill="#fff"></circle><circleclass="donut-ring"cx="21"cy="21"r="15.91549430918954"fill="transparent"stroke="#d2d3d4"stroke-width="3"></circle><circleclass="donut-segment"cx="21"cy="21"r="15.91549430918954"fill="transparent"stroke="#ce4b99"stroke-width="3"stroke-dasharray="{{ full }} {{ 100-full }}"stroke-dashoffset="{{ 25 - offset }}"></circle></svg>In:%jinja--templatesvg_example--svg(There is an SVG image in the actual notebook.)
Package: jinjazzle
jinjazzleJinja2 extensions and CLI toolInstallationYou can install the latest version from PyPI package repository.python3-mpipinstall-UjinjazzleLicenseThis project is licensed under the MIT License - see theLICENSEfile for details.LocationsDocumentation:https://jinjazzle.docs.twiddle-z.ovh/Website:https://gitlab.com/twiddle-z/jinjazzlePyPi:https://pypi.org/project/jinjazzle
Package: jinjyaml
jinjyamlApplication specific tag ofJinja2template inPyYAML.It may be useful if you only want to render special tag nodes in the document,
instead of whole YAML string as a template.UsageExample 1>>>importyaml>>>importjinjyamlasjy>>>>>>ctor=jy.Constructor()>>>yaml.add_constructor('!j2',ctor,yaml.FullLoader)>>>>>>s='''... array:...   !j2 |...     {% for i in range(n) %}...     - sub{{i}}: {{loop.index}}...     {% endfor %}... '''>>>>>>obj=yaml.full_load(s)>>>>>>data=jy.extract(obj,context={'n':3})>>>print(data){'array':[{'sub0':1},{'sub1':2},{'sub2':3}]}Example 2We have such YAML files:child-1.yml:"1.1":one"1.2":twochild-2.yml:"2.1":"2.1.1":three"2.1.2":fourmain.yml:children:!j2|{% include "child-1.yml" %}{% include "child-2.yml" %}execute python code:frompprintimportpprintimportjinja2importjinjyamlasjyimportyamlenv=jinja2.Environment(loader=jinja2.FileSystemLoader('.'))ctor=jy.Constructor()yaml.add_constructor('!j2',ctor,yaml.FullLoader)withopen('main.yml')asfp:doc=yaml.full_load(fp)obj=jy.extract(doc,env)pprint(obj)We'll get:{'foo':{'1.1':'one','1.2':'two','2.1':{'2.1.1':'three','2.1.2':'four'}}}
Package: jinns
jinnsPhysics Informed Neural Networks with JAX.jinnshas been developed to estimate solutions to your ODE et PDE problems using neural networks.jinnsis built on JAX.jinnsspecific points:jinnsis coded with JAX as a backend: forward and backward autodiff, vmapping, jitting and more!Injinns, we give the user maximum control on what is happening. We also keep the maths and computations visible and not hidden behind layers of code!In the near future, we want to focus the development on inverse problems and inference in mecanistic-statistical modelsSeparable PINNsare implementedHyper PINNsare implementedCheck out our various notebooks to get started withjinnsFor more information, open an issue or contact us!InstallationInstall the latest version with pippipinstalljinnsDocumentationThe project's documentation is available athttps://mia_jinns.gitlab.io/jinns/index.htmlContributingFirst fork the library on Gitlab.Then clone and install the library in development mode withpipinstall-e.Install pre-commit and run it.pipinstallpre-commit
pre-commitinstallOpen a merge request once you are done with your changes.Contributors & referencesActive: Hugo Gangloff, Nicolas JouvinPast: Pierre Gloaguen, Charles Ollion, Achille Thin
Package: jinny
jinnyJinny is a templating tool for jinja templates. It can be used for a number of things but was created from a DevOps perspective to aid in configuration management for scaled deployments instead of using tools like Helm, Kustomize, jinja-cli, etc. These days jinny is still used for Ops work but is also used for live applications handling email templating, static HTML generation and moreCLI Usage Examples=> Templating multiple templates with a single input file:
$ jinny -t template-1.txt template-2.txt -i inputs.yml

=> Templating any number of templates with two input files where base-values.yml provides all the base values and any values in overrides.json acts as an override:
$ jinny -t template.yml -i base-values.yml overrides.json

=> Use an environment value file for templating
$ jinny -t template.yml -i ENVIRONMENT_VARIABLES.env

=> Add an explicit override via CLI argument -e
$ jinny -t template.yml -i base-values.yml -e 'image=smasherofallthings/flask-waitress:latest'

=> Add even more overrides via environment variables, so your pipelines can completely replace any bad value:
$ JINNY_overridden_value="top-priority" jinny -t template.yml -i base-values.yml overrides.json

=> Pump all your files to a single stdout stream with a separator so different files are clearly marked:
$ jinny -t template-1.yml template-2.yml -i inputs.json -s '---'

=> Dump all your templated files into a directory for capture, comparison and deployment
$ jinny -t template-1.yml template-2.yml -i inputs.json -d /path/to/directory
$ kubectl diff -f /path/to/directory
$ kubectl apply --server-dry-run -f /path/to/directory

=> Pipe jinny to kubectl directly
$ jinny -t template-1.yml -i inputs.json | kubectl apply -f -DocumentationJinny has a lot of functionality, settings and more. You can review the documentation at -https://jinny.southall.solutions.The documentation is a single HTML page built with Jinny. The source code for the site is atdocs/*and contains:The mainindex.htmlpagedocs/inputs/*- containingymlfiles that cover separate content and configurationdocs/partials/*- covering separate HTML parials which jinny collates into the single pagedocs/css/*&&docs/js/*- static files that jinny dynamically loads in a build time with the templating provided atindex.htmldocs/img/*- static images that jinny reads, base64 encodes and integrates directly into the HTMLAll the other frontend stuffThe directory tree is as standard as you can expect, but with jinny's features the whole functionality is compiled and deployed into a single HTML page.
Package: jino
Jino====Jino is a web application, used for managing and monitoring Jenkins jobs.Installation------------To install jino, run the following command:sudo pip install jinoRunning the server------------------Jino requires several arguments in order to run properly:* Jenkins URL   - the url of your Jenkins server (e.g http://my_jenkins)* Username      - Jenkins username* Password      - Jenkins password* Jobs YAML - Jino will build the home page tables based on this fileTo run Jino::jino runserver --jenkins 'http://my_jenkins' --username X --password Y --jobs /etc/jobs.yamlORjino runserver --conf /etc/jino.cfg --jobs /etc/jobs.yamlConfiguration-------------You must specify three variables:JENKINS = http://<your_jenkins_server>USERNAME = <Jenkins user>PASSWORD = <Jenkins user password>The location specified by --conf. By default, Jino will look for /etc/jino/config.cfg.Jobs----Using YAML format:- table: neutronjobs:- title: "Title of the first row"name: "jenkins-job-name1"- title: "Title of the second row"name: "jenkins-job-name2"The location specified by --jobs. By default, Jino will look for /etc/jino/jobs.yaml.Drop database tables--------------------To drop all the tables, run:jino drop
Package: jinsung
Who is Jinsung Ha?:nerd_face: About MeFrom your terminal,pipinstalljinsungThen in python shell,importjinsungBriefly,classMe:def__init__(self):print('About Me - Jinsung Ha')@propertydefeducation(self)->str:degree:str='MEng Computing (Artificial Intelligence)'where:str='Imperial College London'when:str='10.2014 - 06.2019'return' | '.join([degree,where,when])@propertydefworkspace(self)->Tuple[str,str]:company:str='LUXROBO'position:str='Backend Software Engineer'returncompany,position@propertydeflocation(self)->Tuple[float,float]:return37.5665,126.9780@propertydefcode(self)->List[str]:return['Python','Java','C','C++','Bash']:chart_with_upwards_trend: Github Stats
Package: jintegral
JintegralA Python implementation of J-integral data reduction for translaminar toughness of compact tension specimensRoadmapCurrently, this repository contains only (functional) raw code as a support for paper doi: .
It will be cleaned and (hopefully) packaged for a future release.DocumentationTo be doneRelated works on githubhttps://github.com/smrg-uob/OUR-OMAhttps://github.com/irfancn/Matlab-J-integralAcknowledgementThe research leading to this software has been carried out within the framework ofHyFiSyn projectand has received funding from the European Union’s Horizon 2020 research and innovation programme under the Marie Skłodowska-Curie grant agreement No. 765881.
Package: jin-test-packet
这是第一次编写Python资源包，这里仅仅是做一个测试，没有任何的实际使用价值这里是对项目的详细描述，也就是`long_description`对应的内容在这里尽量描述资源包的作用，资源包的用法，每个方法的使用，最好能给出使用范例，方便其他人使用
Package: jintonic
jintonicA package of tools for composition in just intonation with Python.David B. Doty's technical definition of just intonation :Just Intonation is any system of tuning in which all of the intervals can be
represented by whole-number frequency ratios, with a strongly implied preference
for the simplest ratios compatible with a given musical purpose.You can find a more lyrical definition in the first chapter of his primer, which
isavailable online.I strongly recommend his book :Just Intonation Primer.Installingpip install jintonicDocumentationFull documentation is available here.
Package: jinxed
OverviewJinxed is an implementation of a subset of the Pythoncurseslibrary.
It provides pure Python implementations of terminfo functions such astigetstr()andtparm()as well as convenience methods for working with Windows terminals.Jinxed was initially written to supportBlessedon Windows, but will work on all platforms.Installation$pipinstalljinxedDocumentationJinxed documentation can be found onRead the Docs.
Package: jinx-web
Jinx: Python Web Framework built to learn how to create a frameworkJinx (Jinja - htmx) Web is a Python Web Framework, built to learn how frameworks work, and to experiment a bit with WSGI servers. Also, I'll probably be trying htmx to power the client sideInstallationpipinstalljinx-webBasic usagefromjinximportJinxapp=Jinx()@app.route("/user/{name}",allowed_methods=["get"])defuser_name(request,response,name):response.text=f"Hello,{name}"