No project description provided
Project description
ftd-py
A PyPI package to use FTD.
Usage
fpm_build: This can be used to build the fpm package
from ftd import fpm_build
import asyncio
async def build(file=None, base_url=None, ignore_failed=None):
await fpm_build(file, base_url, ignore_failed)
loop = asyncio.get_event_loop()
loop.run_until_complete(build())
loop.close()
render: This can be used to build a single ftd file and also inject the variable data for processor of typeget-data
import json
import ftd
import asyncio
async def render():
data = {"message": "hello world", "n": 10}
data = json.dumps(data)
await ftd.render("foo.ftd", data)
loop = asyncio.get_event_loop()
loop.run_until_complete(render())
loop.close()
The above code can be used to render the foo.ftd file defined below
/-- This is foo.ftd file
-- string message:
$processor$: get-data
-- integer n:
$processor$: get-data
-- ftd.text: $message
-- ftd.integer: $n
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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ftd-0.1.1.tar.gz.
File metadata
- Download URL: ftd-0.1.1.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63d5dbbeaa004021128bf850ad5f65125c1e707c34c7384ad9d0d43224309a7d
|
|
| MD5 |
400a5c536aef7b56215296c4ce1d5436
|
|
| BLAKE2b-256 |
69872cacbf2b0c9b681ab42567e2365d3aeee18cb324336d24e7851ac104a47c
|
File details
Details for the file ftd-0.1.1-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.
File metadata
- Download URL: ftd-0.1.1-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 8.2 MB
- Tags: PyPy, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0399619ef0fd2effff189feff5a950c1c574bb349db5891b2438124e6d2c769
|
|
| MD5 |
a2c1e3cdd45d545ea063c3edfa0dca55
|
|
| BLAKE2b-256 |
27aaab84e1c7eae6018c50480c7d97c56ebee0cb9baffabb62873bd1d71aafbe
|
File details
Details for the file ftd-0.1.1-cp310-none-win_amd64.whl.
File metadata
- Download URL: ftd-0.1.1-cp310-none-win_amd64.whl
- Upload date:
- Size: 5.1 MB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d2df892fdcef7c5fdbbe57dc798d32ed7009a402ae69e4067413eadc037527b
|
|
| MD5 |
95ff24a7fd2e5d6d7939c06861d3ea94
|
|
| BLAKE2b-256 |
633aa8208071f11864510dfe4113b0af7adc0077c5660fe200745322eafd5c04
|
File details
Details for the file ftd-0.1.1-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.
File metadata
- Download URL: ftd-0.1.1-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 8.2 MB
- Tags: CPython 3.10, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6002938c4f941678669b4b88d85d9749afb52ebee366ffb7abc5c6d04a2e500c
|
|
| MD5 |
ead747ea33716bdbba8b638ff2574c20
|
|
| BLAKE2b-256 |
959d799bf5caec40322e6d2f57dbd7ddc9b289f7f34ae181bd198de8306beec2
|
File details
Details for the file ftd-0.1.1-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.
File metadata
- Download URL: ftd-0.1.1-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
- Upload date:
- Size: 11.2 MB
- Tags: CPython 3.10, macOS 10.9+ universal2 (ARM64, x86-64), macOS 10.9+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96760dd815990a60f87456bee2c498d76f55bc2f57ed6204fea13053339d003d
|
|
| MD5 |
a1e7f35283cfe38bcfe41fdee2c789b1
|
|
| BLAKE2b-256 |
20210fe00dd9d343b31c2d03b89f5b2c327775671643b22edc78d151c543f9d1
|
File details
Details for the file ftd-0.1.1-cp39-none-win_amd64.whl.
File metadata
- Download URL: ftd-0.1.1-cp39-none-win_amd64.whl
- Upload date:
- Size: 5.1 MB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c87062641af50cabcf853bc07ec917177ab75bb90a6bd11086a803ca4ce8821e
|
|
| MD5 |
71727154e98c597fd3c3a1adb3bb22d5
|
|
| BLAKE2b-256 |
8f3f4a8737f5f3e00021c8539920546f0539ea707076e013389a7b4cf78b5c6e
|
File details
Details for the file ftd-0.1.1-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.
File metadata
- Download URL: ftd-0.1.1-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 8.2 MB
- Tags: CPython 3.9, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38f36e8e3d0a50acd77abf130aa8451b45c077af781ea49a5dce3699f009d9e2
|
|
| MD5 |
38b66f5e8a203dfade9c8c76a5e45ba0
|
|
| BLAKE2b-256 |
1a8d613b0df0b806cebcf17801431e27e5473c5358d9cdcd212be4dd42cea4d4
|
File details
Details for the file ftd-0.1.1-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.
File metadata
- Download URL: ftd-0.1.1-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
- Upload date:
- Size: 11.2 MB
- Tags: CPython 3.9, macOS 10.9+ universal2 (ARM64, x86-64), macOS 10.9+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4177eeaa03c5ff8628736dbff520fac412c0607b0f85bcf8a7ee7de830f4453
|
|
| MD5 |
10924c99270b8d622cfad0ef80a6f21d
|
|
| BLAKE2b-256 |
5de12eb37dce164a90b804989283234d2a66f4c2d3d346b7ecedf82c941755a5
|
File details
Details for the file ftd-0.1.1-cp38-none-win_amd64.whl.
File metadata
- Download URL: ftd-0.1.1-cp38-none-win_amd64.whl
- Upload date:
- Size: 5.1 MB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b90bc9a9bf3873feb1d62da5e2144db7a65120311b1ed19073c234393716b4c0
|
|
| MD5 |
10236088b0c3b46b7215ddba40e5208f
|
|
| BLAKE2b-256 |
305258f655e949bb4145dba39cadc17d4a6eb578ff54bb0b19d6e0e0ad02d234
|
File details
Details for the file ftd-0.1.1-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.
File metadata
- Download URL: ftd-0.1.1-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 8.2 MB
- Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da1ad84262b780cd90f504864620ca48c1a50b010040140199c5227c8625149c
|
|
| MD5 |
93d38a6941c9d6e27d5ea998f39fac1b
|
|
| BLAKE2b-256 |
faf1b65d5b7d68e34f3c001b00dac40b259c8e2bc3bd76b48db734343acefcbd
|
File details
Details for the file ftd-0.1.1-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.
File metadata
- Download URL: ftd-0.1.1-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
- Upload date:
- Size: 11.2 MB
- Tags: CPython 3.8, macOS 10.9+ universal2 (ARM64, x86-64), macOS 10.9+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e922b39c4c553713e9ee538af32dd4ed2d9f9b4d3cec4667f3406cb67a3a5029
|
|
| MD5 |
eae7a64ff881aa0e06571e374bdb5c83
|
|
| BLAKE2b-256 |
53d3867a27fe600efa722deb929868616ff6efe0d6641a569ec7212e6ab874e1
|
File details
Details for the file ftd-0.1.1-cp37-none-win_amd64.whl.
File metadata
- Download URL: ftd-0.1.1-cp37-none-win_amd64.whl
- Upload date:
- Size: 5.1 MB
- Tags: CPython 3.7, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c851592abc4e1ec12289e2c8d0981fd21e467b94fbc5676397317e785b0cfed2
|
|
| MD5 |
971c4b9dd58cecf0140d34300f914030
|
|
| BLAKE2b-256 |
5b3f4344cc4178ccc0285ee1d4b3e97eb88c3979b01fbd3b5f37c8c653063caa
|
File details
Details for the file ftd-0.1.1-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.
File metadata
- Download URL: ftd-0.1.1-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 8.2 MB
- Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c27e75798d25f86d784e0d63856aa349d501a8b0a69ed3db5f563f2f35d1def2
|
|
| MD5 |
31425c8bf1afe36ab139c8483c2ab8ff
|
|
| BLAKE2b-256 |
3d32ccf15746b5ecb2d32cbd613d0ca4c8caa2f275f5aa9604daf018cf3f0623
|
File details
Details for the file ftd-0.1.1-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.
File metadata
- Download URL: ftd-0.1.1-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
- Upload date:
- Size: 11.2 MB
- Tags: CPython 3.7m, macOS 10.9+ universal2 (ARM64, x86-64), macOS 10.9+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9887e627f19f96c5d7543dd3a3ef92c7d1d6edfd603f438aef722deb6ab47c6c
|
|
| MD5 |
3dd752835b0d332cff34dc1427a2aa24
|
|
| BLAKE2b-256 |
d0987b8ab08b3703615de845341ead92c933dc38e41bbe18aa41372f622d05a4
|
File details
Details for the file ftd-0.1.1-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.
File metadata
- Download URL: ftd-0.1.1-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 8.2 MB
- Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33766a67dc9574617c0bfaea23fada5c18b039d0e03048bf8963f69dce8d3f4f
|
|
| MD5 |
b5565b5a48a0f4990d91365409d0f882
|
|
| BLAKE2b-256 |
d5fa7a046fed48f1ae31b19e3db120bf2641133ab4426d72f492d60bfd2fd03c
|