amaterasu
It is wandbox additional of kamidana of jinja2 cli
amaterasu cli is kamidana wrapper, Adds additional option automatically.
Usage
List Example
$ pip install amaterasu-j2
$ amaterasu sample/wandbox.j2
* cpython-3*
* cpython-3.10.2
* cpython-3.9.3
* cpython-3.8.9
* cpython-3.7.10
* cpython-3.6.12
sample/wandbox.j2
* cpython-3*
{%- set compilers = wandbox_list() | wandbox_fnmatch_compilers("cpython-3*") %}
{%- for compiler in compilers %}
* {{ compiler.name }}
{%- endfor %}
Compile Example
$ pip install amaterasu-j2
$ amaterasu sample/wandbox-run.j2
```
# This file is a "Hello, world!" in Python language by CPython for wandbox.
import sys
print("Hello, world!")
if len(sys.argv) > 1:
print(sys.argv[1])
# CPython references:
# https://www.python.org/
```
```
Hello, world!
```
```
Hello, world!
Test
```
sample/wandbox-run.j2
{%- set compilers = wandbox_list() | wandbox_fnmatch_compilers("cpython-3*") %}
{%- set compiler = compilers[0].name %}
{%- set src = fread("sample/main.py") %}
```
{{ src }}
```
```
{{ wandbox_run(compiler, src).program_message }}
```
```
{{ wandbox_run(compiler, src, runtime_option="Test").program_message }}
```
Use kamidana
$ pip install amaterasu-j2
$ kamidana -a=amaterasu.amaterasu sample/wandbox.j2
* cpython-3*
* cpython-3.10.2
* cpython-3.9.3
* cpython-3.8.9
* cpython-3.7.10
* cpython-3.6.12
Features
Global
| name | usage | detail |
|---|---|---|
| wandbox_list | {{ wandbox_list() }} | return wandbox compilers list json |
| wandbox_languages | {{ wandbox_languages() }} | return wandbox language list array |
| wandbox_run | {{ wandbox_run(compiler, src, [options], [compier_option], [runtime_option] ) }} | return wandbox compile result |
Filter
| name | usage | detail |
|---|---|---|
| wandbox_fnmatch_compilers | {{ wandbox_list() | wandbox_fnmatch_compilers("clang-3*c") }} | filter compiler name by fnmatch |
| wandbox_language_compilers | {{ wandbox_list() | wandbox_language_compilers("C++") }} | filter by language |
Utilities
- markdown_link_pair
- urlencode
- url_quote
- url_quote_plus
- replace_url_quote
Metadata
Release files for amaterasu-j2 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| amaterasu-j2-0.2.2.tar.gz | 4.7 kB | Without provenance | Details for amaterasu-j2-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| amaterasu_j2-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for amaterasu_j2-0.2.2-py3-none-any.whl |
Total release size: 10.7 kB
Release files / amaterasu-j2-0.2.2.tar.gz
| Download URL | amaterasu-j2-0.2.2.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae21b922540c7750ff98a05e1fcad8159ecf2537aa52dea413b2752203317cfa
|
|
BLAKE2b-256 checksum How to use checksums |
9473f473ee355f7ac8360fb3e2cf0d2b56988c155c85779f0f4d2ff2333f5989
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.7.13
|
Release files / amaterasu_j2-0.2.2-py3-none-any.whl
| Download URL | amaterasu_j2-0.2.2-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
de402ac5d4b1e4aef4067d09d1d7de778f4579b225c5de1ef2a844919119f7a6
|
|
BLAKE2b-256 checksum How to use checksums |
e893c5cde25a433cec9245fe512adbec5c4f07b547ade8957d077631c01d8461
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.7.13
|
Security for amaterasu-j2 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.