Packaging a python library 25 May 2014 (updated 30 September 2019) Note This is about packaging libraries, not applications. ⸻ All the advice here is implemented in a project template (with full support for C extensions): cookiecutter-pylibrary (introduction). I think the packaging best practices should be revisited, there are lots of good tools now-days that are either unused or underused. It's g
Flaskのテンプレート内の予約文字列 {{ }} {% %} を変更する方法を説明します。 これで何が嬉しいかというと、例えばVue.jsを使おうとするとVue.jsも {{ }} を使うので、Flaskと競合してしまいますが、この方法により回避できます。 環境 Flask==1.0.2 Jinja2==2.10.1 コード 以下の2つのコードで {{ }} {% %} を [[ ]] [% %] に変更できます。 main.py from flask import Flask # Flaskのテンプレートエンジンであるjinja2のenvironmentを作成。 from jinja2 import Environment, PackageLoader, select_autoescape jinja2_environment = Environment( loader=Package
In A Simple Approach To Templated SQL Queries In Python, I introduced the basics of SQL templates in Python using JinjaSql. This post further demonstrates the power of Jinja2 within JinjaSql templates using presets, loops, and custom functions. Let’s consider an everyday use case when we have a table with some dimensions and some numerical values, and we want to find some metrics for a given dimen
The first and most important step towards developing a powerful machine learning model is acquiring good data. It doesn’t matter if you’re using a simple logistic regression or the fanciest state-of-the-art neural network to make predictions: If you don’t have rich input, your model will be garbage in, garbage out. This exposes an unfortunate truth that every hopeful, young data scientist has to c
IMPORTANT: This post outlines a feature that has been deprecated. Read more about MPTv2 here: Spinnaker offers a fantastic way to model and execute your software delivery processes, but thus far has required you to use the (beautiful) UI or roll your own tooling based on our API. At Netflix, we have some 9,000 (and growing!) pipelines in our production Spinnaker deployment — sometimes with hundred
Spinnaker Foremast¶ Foremast is a Spinnaker pipeline and infrastructure configuration and templating tool. Just create a couple JSON configuration files and then manually creating Spinnaker pipelines becomes a thing of the past. Why Foremast?¶ No manual creation of pipelines in the Spinnaker UI Reproducible and versioned Spinnaker pipelines Standardized pipelines with flexibilty for application sp
There have been posts about Ansible on this blog before, so this one will not go into Ansible basics again, but focus on ways to improve your use of variables, often, but not only used together with the template module, showing some of the more involved features its Jinja 2 -based implementation offers. The examples are mostly taken right out of our Ansible provisioning for CenterDevice, with only
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く