Saravanan666/pypi-org huggingface dataset:
Package: template-ipython-magic
Template IPython magics 🎩This package provides simple IPython magics to render cells as templates in a variety of different templating languages. It currently supportsMakoandJinja2.To use it, first install the package from PyPI, along with at least one of the supported templating languages. E.g. usingpipenv(everyone should usepipenv):pipenvinstalltemplate-ipython-magicjinja2makoIn your notebook, load thetemplate_magicmodule:%load_exttemplate_magicNote that the available templating languages are detected at the point of loading the extension, and each magic only enabled if the appropriate package is found. If neither Jinja2 or Mako are installed, there will be no magics!Now you can use%jinjaas a line magic within any code block, with access to all variables in scope. The result is formatted as Markdown:importsys%jinjaHellofrom**Jinja**onPython{{sys.version_info.major}}.{{sys.version_info.minor}}!🐍Hello fromJinjaon Python 3.8! 🐍If you prefer,%makois also available:importdatetimenow=datetime.datetime.now()%makoHellofrom*Mako*at${now.strftime('%I:%M %p')}...⏰Hello fromMakoat 08:39 PM... ⏰Cell magics are also available for each language, which lets you render the entire cell as a template for convenient report generation:%%jinja{%-forxin['spam']*7+['eggs','spam']%}-{%ifloop.last%}and{%endif%}{{x}}{%ifnotloop.last%},{%endif%}{%-endfor%}spam,spam,spam,spam,spam,spam,spam,eggs,and spam
Package: templateless
Ship faster by treating email as code 🚀Website•Get Your API Key•TwitterTemplatelesslets you generate and send transactional emails quickly and easily so you can focus on building your product.✨ Features👋Anti drag-and-drop by design— emails are a part of your code✅Components as code— function calls turn into email HTML components💻SDK for any language— use your favoriteprogramming language🔍Meticulously tested— let us worry about email client compatibility💌Use your favorite ESP— Amazon SES, SendGrid, Mailgun + more💪Email infrastructure— rate-limiting, retries, scheduling + more⚡Batch sending— send 1 email or 1,000 with one API call🚀 Getting startedInstall the package from PyPI, e. g. with pip:pipinstalltemplatelessImport theTemplatelessclass from thetemplatelesspackage:fromtemplatelessimportTemplatelesstemplateless=Templateless()👩‍💻 Quick exampleThis is all it takes to send a signup confirmation email:fromtemplatelessimportContent,Email,EmailAddress,Templatelessdefmain():content=(Content().text("Hi, please **confirm your email**:").button("Confirm Email', 'https://your-company.com/signup/confirm?token=XYZ").build())email=(Email().to(EmailAddress("<YOUR_CUSTOMERS_EMAIL_ADDRESS>")).subject("Confirm your signup 👋").content(content).build())templateless=Templateless("<YOUR_API_KEY>")result=templateless.send(email)print(result)if__name__=="__main__":main()Note🚧This SDK is not stable yet.The API might change as more features are added. Please pay attention to theCHANGELOGfor breaking changes.Examples:Get yourfree API keyhere:https://app.templateless.com✨There are more Python examples in theexamplesfolder🤝 ContributingContributions are more than welcome <3Pleasestar this repofor more visibility ★📫 Get in touchFor customer support feel free to email us atgithub@templateless.comHave suggestions or want to give feedback? Here's how to reach us:For feature requests, pleasestart a discussionFound a bug?Open an issue!We are also on Twitter:@Templateless🍻 LicenseMIT
Package: templatelite
IntroductionA very lightweight templatelite system - suitable for simple html and python codeFeaturesFeature 1Feature 2Feature 3InstallationInstallation is very simple :$pipinstalltemplateliteTo upgrade an existing installation use$pipinstall--upgradetemplateliteGetting StartedDocument here a summary of how to use the module functionalityFurther InformationFull DocumentationOn PyPi (Python Package Index)Source code on GitHubTroubleshooting & BugsNoteEvery care is taken to try to ensure that this code comes to you bug free.
If you do find an error - please report the problem on :GitHub IssuesBy email to :Tony FluryLicenseThis software is covered by the provisions ofMITLicense.BugsEvery care is taken to try to ensure that this code comes to you bug free.
If you do find an error - please report the problem on :GitHubor
by email to :Tony Flury
Package: templatemail
Welcome to TemplateMailTemplateMail is a simple Python library that solves most projects' email templating and delivery needs with minimal hassle. Suppose you want to send a welcome email to a new user using Mailgun:importtemplatemailimporttemplatemail.engines.mailgun# Credentials for MailgunMAILGUN_API_KEY='YOUR API KEY'MAILGUN_DOMAIN='MAILGUN_DOMAIN'# The engine is in charge of sending email using a backend system.engine=templatemail.engines.mailgun.MailgunDeliveryEngine(api_key=MAILGUN_API_KEY,domain_name=MAILGUN_DOMAIN)# The mailer is in charge of rendering templates and sending them using an engine.mailer=templatemail.TemplateMail(template_dirs=['email_templates'],delivery_engine=engine)# Using the two, you can send templates.template_name='welcome.html'result=mailer.send_email(to_addresses=['test@example.com'],from_address='from@example.com',template_name=template_name,user_name='Ken')welcome.htmlis anemail templateused to render the subject, html, and text versions of an email. Let's have a look atemail_templates/welcome.html:{% block subject %}Welcome to our system{% endblock %}
{% block html_body %}
<h1>Welcome to our system, {{ user_name }}</h1>
<p>We think you'll really enjoy it here.</p>
{% endblock %}
{% block text_body %}
Welcome to our system, {{ user_name }}
--------------------------------------------

We think you'll really enjoy it here.
{% endblock %}Thesubjectblock renders the subject, whilehtml_bodyandtext_bodyrender the HTML and text versions of the email respectively. The work of composing the correct mime envelope, as well as delivery, is handled by an engine. At this time, TemplateMail has native Mailgun and SMTP backends, however you are also free to write your own. (SeeWriting your own engine)It's that simple.InstallationYou can install templatemail like any other Python module.pip install templatemailNOTE: Only Python 3 is supported.Read MoreRead the documentation onlineat Read The Docs.Get in touchHave a pull request or an issue?Use Github.Legal stuff© Copyright 2019 Ken Kinder. Includes work from Mailgun, which is © Copyright 2014 Mailgun.TemplateMail is licensed under the Apache 2.0 license. See LICENSE for details.Includes templates from the Mailgun Responsive Templates repository. See LICENSE-mailgun-templates for details on its license.
Package: template-mailer
[]template-mailerA simple python client for sending mass emails from html templates.DescriptionThe template-mailer lets you fill variables in html-templates and send the populated content via email.
It makes use of the jinja2 templating langauge (Reference).UsageProvide your html-template as a string to the render_template-method:>>> from template_mailer import render_template
>>> template = "<html> foo: {{ variable }} </html>"
>>> data = {"variable": "bar"}
>>> render_template(template, data)
'<html> foo: bar </html>'Use the SMTPClient to send the rendered template as html-email with the SMTPClient:>>> from template_mailer import SMTPClient
>>> smtp_client = SMTPClient()
>>> smtp_client.send("targetemailalldress@test.test", "subject", "message")By default the client will look for the following environment variables:SMTP_HOST,SMTP_PORT(starttls),EMAIL_USER(your email address),EMAIL_PASSWORDYou can provide the SMTP configurations in plain form as well:>>> smtp_client = SMTPClient("smtp.gmail.com", 587, "your_email@gmail.coim", "your_password")OptionsEncryptionThe default email encryption is TLS. An SSL option is not yet provided and will be part of a future release.Missing dataThe render_template method will throw an error if you don't provide enough data to populate all template-variables:>>> from template_mailer import render_template
>>> template = "<html> foo: {{ variable }} ham: {{ second_variable }} </html>"
>>> data = {"variable": "bar"}
>>> render_template(template, data)
Traceback (most recent call last):
...
jinja2.exceptions.UndefinedError: 'second_variable' is undefinedTo change this policy you can provide the option undefined="allow" to the render_template-method:>>> from template_mailer import render_template
>>> template = "<html> foo: {{ variable }} ham: {{ second_variable }} </html>"
>>> data = {"variable": "bar"}
>>> render_template(template, data, undefined="allow")
'<html> foo: bar ham:  </html>'LoggingBy default the SMTPClient uses the root-logger with log-level INFO. You can inject your own logger into the client:>>> from template_mailer import SMTPClient
>>> import logging
>>> some_logger = logging.getLogger("demo")
>>> smtp_client = SMTPClient(logger=some_logger)NoteThis project has been set up using PyScaffold 3.2.3. For details and usage
information on PyScaffold seehttps://pyscaffold.org/.
Package: template-maker
template-makerAn awesome tool to help in your projects!Explore the docs »Report Bug·Request FeatureAbout The ProjectThere are many great tools available on GitHub, however, I didn't find one that really suit my needs so I created this enhanced one. I want to create a tool which make me better.Getting StartedFollow the instructions to setting up project locally.
To get a local copy up and running follow these steps.InstallationInstall from the git repopipinstallhttps://github.com/shajeen/template-maker.gitInstall from pypipipinstalltemplate-makermore information athttps://pypi.org/project/template-maker/How it worksThere are two argument required, --name and --ptype.--name- Your project name--ptype- Type of your project, application or library.ptypevalueApp0Lib1Application mode with CMake conan supporttemplate-maker--name="sample_application"--ptype=0working exampleGenerated outputLibrary mode with CMake conan supporttemplate-maker--name="sample_library"--ptype=1working exampleGenerated outputRoadmapSee theopen issuesfor a list of proposed features (and known issues).ContributingAny contributions you make aregreatly appreciated.Create an issue describing your changes.Fork the repo, make the changes and please dont forget to test.Create the pull request.Please read theCONTRIBUTINGbefore raising the PR.LicenseDistributed under the GPL-3.0 License. SeeLICENSEfor more information.ContactShajeen Ahamed -@shajeenahamed-shajeenahmed@gmail.comProject Link:https://github.com/shajeen/template-maker
Package: templateme
Console programs to make new project in defined languages.InstalationThere are two different methods to installTemplateMe. You can install
it from PyPi repository or download sources from github and try to install
it. Please choose one of the methods and install it on you computer.from PyPi repositoryTo install TemplateMe from repository you can use pip program.pip3 install templatemefrom sourcesAnother option is to install program from github sources. To do this just
get all necessary files using git or by github’s zip file and call following
command:python3 setup.py installUsageThe TemplateMe works as console application. It allows you to create new
project from predefined templates. To see list of all available elements
call:templateme --listIn case that you want to prepare new project for your favourite language
you need to choose one of the templates and write in your terminal:templateme -t <template_name> -o <your_project_name>Where<template_name>is the one of the templates, listed in previous step
and<your_project_name>is a name of folder with your created project. After
that, the program will ask you to write a few variables that are necessary to
build templates.For more information about application please visit the documentation or try:templateme --helpUnit testFor testing module write:python3 setup.py testAuthorRafal Kobel <rafalkobel@rafyco.pl>
Package: templatenewproject
templatenewprojectTemplate de como criar um projeto do zero de python no git.#1) Utilização do git:-Criando repositório;-Criando chave ssh;-Criação de forks;-Commit and Push no Pycharm;-Realização de Pull Requests;-Feature Branch (origin, remote);-Gerenciando Branch e conflitos;#2) Atualizar .gitgnore para não utilizar .idea#3) Criar e Setar .gitgnore_global para excluir .idea/ com comando (no terminal):$ git config --global core.excludesfile ~/.gitignore_global#3) Criar virtualenv na pasta .venv-No Pycharm em settings > Project > Python Interpreter-via terminal utilizando o comando (Versão em Python 3):$ python -m venv .venv(nota: na linha de comando podemos usar qualquer versão python utililando o pyenv)-via terminal utilizando o comando (Versão em Python 2):$ python2 -m virtualenv .venv#4) Instalando a biblioteca request para testar na virtual venv$ pip install requests-Verificar se funcionou:$ pip freeze#5) Criação do templatenewproject e do github_api para usar o request como exemplo:#6) Criação do requirements.txt com comando:$ pip freeze > requirements.txtpara outros programadores usarem, será apenas necessário rodar o codigo no terminal:$ pip install -r requirements.txt#7) Flake8 (biblioteca de desenvolvimento para saber se o projeto está conforme a PEP 8)$ pip install flake8#8) Fazer pip freeze pararequirements-dev.txt (-r requirements.txt)#9) Criar arquivo .flake8:$ flake8para rodar o flake8#10) Integração com o travis ci:-travis serve para verificar se o codigo de pull request dos camaradas está de acordo.#11) Criar arquivo setup.py#12)testar a biblioteca com o codigo no terminal (uma pasta acima):$ pip install -e ./templatenewproject/-lembrar de criarversion= '0.1' eminit.py#13)Criar Release github:$ git tag 0.1$ git push --tags#14)Mandar no Pypi:$ python setup.py sdist
$ pip install twine
$ twine upload dist/*
Package: templateParse
Data extractor for PDF invoices - templateparse==============================================Download:1. pip install templateparse(Only one time): This will install all the dependency and library to be used later on.invoice.py: It conntans sample function to call template based parsing engine and persist in the database(import has to be modified as per the build folder location)Function 1: parse_invoice(org_id, user_id, file_loc, type_of_invoice, template_folder)Create dictionary "row" and returns True?false if it parse correctlyThe function call: dump_data(organization_id, row, type_of_invoice) can be calledinside to save data.Function 2: dump_data(organization_id, row, type_of_invoice)Give location of template_folder else it will take default template location
Package: template-pptx-jinja
Template pptx Jinja2This is a Python3 package that can generate.pptxfile from template using Jinja2 scheme.You can define your own Jinja2 filters.It can also replace picture.Seeexample.pyfor example.See the PyPI package athttps://pypi.org/project/template-pptx-jinja/0.2.1InstallRunpip install template-pptx-jinjaDevpython3 -m venv env
source env/bin/activate
pip install -r requirements.txt
Package: template-pptx-jinja-fix
Template pptx Jinja2This is a Python3 package that can generate.pptxfile from template using Jinja2 scheme.You can define your own Jinja2 filters.It can also replace picture.Seeexample.pyfor example.See the PyPI package athttps://pypi.org/project/template-pptx-jinja-fixInstallRunpip install template-pptx-jinja-fixDevpython3 -m venv env
source env/bin/activate
pip install -r requirements.txt
Package: template-pptx-jinja-my
Template pptx Jinja2This is a Python3 package that can generate.pptxfile from template using Jinja2 scheme.You can define your own Jinja2 filters.It can also replace picture.Seeexample.pyfor example.See the PyPI package athttps://pypi.org/project/template-pptx-jinja-my/0.0.1InstallRunpip install template-pptx-jinja-myDevpython3 -m venv env
source env/bin/activate
pip install -r requirements.txt
Package: template-project-nbdev
A Template Project with nbdevThis project is build on top ofnbdevframework, designed with the primary objective of facilitating my
learning and progression through python engineering practice.Installationpipinstalltemplate_project_nbdevUsage# WIPStatisticsCopyrightCopyright © 2024 onward Felidz. All rights reserved, with certain parts
of the project specifically licensed and subject to different terms and
conditions, e.g., source code of the project under the Apache-2.0
license; you may not use this project except in compliance with the
license.CitationBibTeX citation:@misc{felidz2024,author={Felidz},title={Template-Project-Nbdev},year={2024},publisher={GitHub},journal={GitHub repository},howpublished={\url{https://github.com/felidz/template-project-nbdev}}}
Package: template-project-utils
template_project_utilsPersonal utilities to initialize various projects (eg. Python, C++, Kicad)InstallationInstall via pip:pip install template-project-utilsUsageCreate a new project based on one of the following templates:https://github.com/twyleg/template_project_kicadhttps://github.com/twyleg/template_project_pythonChange into the new projects directory and run the following commandtemplate_project_utils <NEW_PROEJCTS_NAME>
Package: template-python-cmd
template-python-cmdA template for quickly making a python lib that has a command line program attachedReplacetemplate-python-cmdandtemplate_python_cmdwith your command. Run tox until it's
correct.To develop software, run. ./activate.shWindowsThis environment requires you to usegit-bash.LintingRun./lint.shto find linting errors usingpylint,flake8andmypy.
Package: template-python-package
Template Python PackageWelcome to template python package. This package is meant to test releasing a distribution in pypi and test pypi via azure pipelines from github.This package can also be helpful starting point for setting up various CI tools like codecov, azure pipelines and travis as it relates to maintaining and testing a python package.Motivations and PlansPlans include (Subject to change):Document steps taken to publish a packageDo a docker releasePlay with mkdocs to officially maintain a standard documentation on minimal steps to take while configuring CI, PyPi and Conda releases for a python packages
Package: template-python-project
template_python_projectThis is a sample application for test deployment on pypi.
You can use it as reference buti don't recommend its use.InstallFor install this app you need to havesetuptoolsin your python environment.# We assume that pip is install and is connected to python 3pipinstall--editable.# ORpipinstalltemplate-python-project# For install the project with development toolpipinstall--editable".[development]"UseFor further information use--helpoption.template-python-projectcompute--compute-typeMUL--first1--second2template-python-projectconcat--firsthello--secondworldLinterThis application use the linterpylint.pylintis installed with development tools.# For execute tests we assume that the development dependencies are installpylinttemplate_python_projectTestThis applciation use the test frameworkpytest.pytestis installed with development tools.# For execute tests we assume that the development dependencies are installpytest./testDeployYou need to installtwinefor deploy on pypi.
You need to installwheelto have a valid binary for deployment.# We assume that pip is install and is connected to python 3pipinstalltwine
pipinstallwheelAfter the installation of the dependencies.
You need to usesetup.pyfor build the project.
You need to use thetwinecommand for the deployment.# We assume that pip is install and is connected to python 3# We assume that python is install and is a symbolic link to python 3pythonsetup.pybdist_wheel
twineuploaddist/*
Package: template-python-projects
# [template-python-projects](https://github.org/djclavero/template-python-projects)Template Project for Python using gitby djclavero@yahoo.com## Installation### Requirements* Linux/Windows* Python 2.7 and up`$ pip install template-python-projects`## Usage```pythonfrom video.formats import mp4play# Call functionmp4play.test_mp4play()```## Create distribution```# Check the package first$ python setup.py --help-commands$ python setup.py check# Create distribution$ python setup.py sdist```## Upload release```$ twine upload dist/*   # pip install twine (if required)```### .pypirc file```[pypi]repository = https://upload.pypi.org/legacy/username   = djclavero```## Control of Versions (Git)Create local repository:```# Create local repository$ git init# Create remote repository 'template-python-projects' in GitHub```Configuration:```$ git config --global user.name 'djclavero'$ git config --global user.email djclavero@yahoo.com# Add remote repository$ git remote add origin https://github.org/djclavero/template-python-projects# Set .gitignore file$ git config --global core.excludesFile C:\Users\David\.gitignore```Upload to remote repository:```# Add files and commit$ git status$ git add .$ git commit -m "init commit"# Upload to repository$ git push origin master```### .gitignore file```# ignore bytecode python files*.pyc# ignore distribution filesdist/*.egg-info/# ignore spyder project files.spyproject/```## License[MIT](https://choosealicense.com/licenses/mit/)
Package: templater-cli
A cli ProjectInstallation$pipinstalltemplaterUsagesChecking versiontmt -V|tmt --versioncreating templatetmt new <template_name> <Dir Path| type:path; Default:current path>$ls
main.py
module
requirements.txt

$tmtnewmymodule./module
/usr/modulesuccessfullyInitasTemplate,"mymodule"loading templatetmt load <[project_name | type:non-existing path]> <template_name>$lsmyprojects

$tmtloadmyprojects/newmymodule
templatemymodulesuccessfullyloadedonmyprojects/newdir
$lsmyprojects
newshow current available templatestmt show$tmtshow
python
mymoduleremoving templatetmt remove <template_name> [--confirm -c [yes|no] | required: False]$tmtremovemymodule
Confirmation[yes/no]:yes
mymoduletemplatesuccessfullyremovedVisit UrlsVisit Github Repotell your Issues
Package: template-remover
Template RemoverTemplate remover is a tool to remove the PHP and Jinja markup from HTML files.MotivationMany tools, like html tidy, are designed to parse and analyze html files,
however they do not play well when there is language markup. This projects aims
to be a simple way of getting rid of those markups.Limitationstemplate_remover is based on regular expressions. This means that there are some
edge cases that cannot be captured with this method. Although we believe those
cases are too contrived, and probably should be avoided as many development
tools will fail as well.One example that won’t work is the following::<?php echo "?>" ?>The reason it does not work is because when the method sees the first ‘?>’
(the one inside the string), it thinks it’s a closing tag.Example useBelow are example of how template_remover.py is used:$ remove_template.py filename.html
$ remove_template.py filename.html | tidy -qeInstallationYou can install, upgrade or uninstall template-remover with these commands:$ pip install template-remover
$ pip install --upgrade template-remover
$ pip uninstall template-removerPython VersionsPython 2.7 is officially supported, 3.2, 3.3 and 3.4 should also work.DevelopmentHelp for this project is more than welcomed, so feel free to create an issue or
to send a pull request viahttp://github.com/deezer/template-remover.Tests are run using nose, either with:$ python -R setup.py nosetests
$ nosetestsUse the toolgit-lintbefore any commit, so
errors and style problems are caught early.TODOS and Possible FeaturesSupport more template engines and languages (Smarty, ASP, JSP, etc).Changelogv0.1 (2014-05-07)Initial commit.