Skip to main content

Ninja Injection Tool. Template rendering and variable injection made easy.

Project description

Template rendering and variable injection made easy.

Build Status PyPI License

Documentation

https://docs.kuralabs.io/ninjecto/

Install

pip3 install ninjecto

Changelog

0.3.0 (2020-06-10)

New

  • Allows to define the behavior when encountering undefined values in the template.

  • Allows conditional creation of files, so depending of a value a file can be created or not.

  • Rendering is now faster when rendering empty files.

  • Ninjecto’s CLI now supports passing --parents to create any parent directory of the output directory.

  • New filters: comment, quote and read.

  • New filters from awesome Inflection package.

    Inflection is now a third party dependency, which includes the new filters: camelize, dasherize, humanize, ordinal, ordinalize, parameterize, pluralize, singularize, tableize, titleize, transliterate and underscore.

    Also, the Cerberus dependency was dropped as it is unused (for now).

Fix

  • Values and namespaces are now available globally, in particular inside macros in libraries.

0.2.1 (2020-02-04)

Fix

  • Default output mode will now be set before checking the input and output paths, offering a better error message.

0.2.0 (2020-02-03)

Fix

  • Rendered files will now have the same permissions as the source files.

0.1.1 (2020-02-03)

Fix

  • Fixes TypeError caused by invalid value of the levels parameter.

0.1.0 (2020-02-01)

New

  • Development preview.

License

Copyright (C) 2017-2020 KuraLabs S.R.L

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ninjecto-0.3.0.tar.gz (27.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ninjecto-0.3.0-py3-none-any.whl (38.5 kB view details)

Uploaded Python 3

File details

Details for the file ninjecto-0.3.0.tar.gz.

File metadata

  • Download URL: ninjecto-0.3.0.tar.gz
  • Upload date:
  • Size: 27.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.9

File hashes

Hashes for ninjecto-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6e1db6931c8a596c9f2cba680435c6bd7ad8c3db2b078d02ad166cc5f9e31339
MD5 b8b466f12d1d5fc8a31f53aba344eed3
BLAKE2b-256 a513eab72cb26619f71ecd55155205897691736f1a2867b253632bf5c2359aa3

See more details on using hashes here.

File details

Details for the file ninjecto-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: ninjecto-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 38.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.9

File hashes

Hashes for ninjecto-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cd2308c122469905b308d156cd2da00baf0398c4e143ac9e15a056456dc00b37
MD5 ee501b2422d91a44e13531fe78492614
BLAKE2b-256 7310d27b312ff420067d8275f76b361bb58c25825e9a0a56ec27d2f3c2d53902

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page