Skip to main content

Python library unifying f-stringswith Tom's Obvious, Minimal Language

Project description

Extends the python module toml with the python library fstring

See the test-files for some examples

you can do things like:

base_url="https://example.com"

[module1]
url="{base_url}/path1.html"

[module2]
url="{base_url}/path2.html"

… and many things more

Tox

Prerequisites for pyenv according to https://github.com/pyenv/pyenv/wiki/Common-build-problems

sudo apt-get install -y build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev libffi-dev liblzma-dev python-openssl git

To prepare tox for the tests, install pyenv and install all needed python versions. e.g.:

echo pypy-5.7.1 2.7.18 3.5.9 3.6.11 3.7.8 3.8.5|xargs -n1 pyenv install
pyenv global pypy-5.7.1 2.7.18 3.5.9 3.6.11 3.7.8 3.8.5

then run tox:

tox

… syntax check:

flake8

and codecoverage:

tox
firefox htmlcov/index.html

Internal

Just some notes for me how to build and upload:

# create tag with release notes
git tag -a -m "$(git log --pretty='format:| %as %h %s' HEAD...$(git describe --tags |awk -F - '//{ print $1 }'))" VERSION
rm -rf build dist
python3 setup.py sdist bdist_wheel
python3 -m twine upload --repository pypi dist/*

VERSIONS

0.2.0

2020-07-31 cda05f2 Add support to use floats
2020-07-31 9986e19 Implement test for loads
2020-07-31 2514f21 Fix code coverage execution
2020-07-31 ae780ef Build universal package

0.1.0

2020-07-31 8f8f0d3 Set encoding in setup.py
2020-07-31 7e7843a Python2 compatibility for setup.py
2020-07-31 72746b2 Implement inherited defaults

0.0.3

2020-07-30 5c867c8 Change Release notes syntax

0.0.2

2020-07-30 6d174ae Change versioning
2020-07-30 4a9faef Notes for releasing
2020-07-29 d413842 Flake8
2020-07-29 bac41df Fix order of dictionary for string compare in test
2020-07-29 7df3c6b Implement hacky support for all those python versions
2020-07-29 4c1424a Start using tox
2020-07-29 19e6c32 Load and Dump test

0.0.1

Initial Release

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

ftoml-0.2.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

ftoml-0.2.0-py2.py3-none-any.whl (4.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file ftoml-0.2.0.tar.gz.

File metadata

  • Download URL: ftoml-0.2.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.5.9

File hashes

Hashes for ftoml-0.2.0.tar.gz
Algorithm Hash digest
SHA256 39d10f32dc1eb7d376856666366a42eb39dad6ea3884e453fe52b5c60301b3f4
MD5 b3ba02b5b921989e32e5a68924961cac
BLAKE2b-256 57d5133e484a15056ca6fed6c1021d84d66e97baaa6d1abf3ef1e08822428df0

See more details on using hashes here.

File details

Details for the file ftoml-0.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: ftoml-0.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.5.9

File hashes

Hashes for ftoml-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 93dda79e9e7e80bceea4573642b2e02b7e81dc897aff3084ff609f6fc286fbec
MD5 ccce307dd2c5789e4bb3e5de59fc5de4
BLAKE2b-256 f6ce252e3f53df3fb5563d9fe64de3c8874d29e188c5d01b76b079d3c8329d96

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