Skip to main content

A small Python package used for string interpolation

Project description

# pystrin
A small Python library for string interpolation.

### Usage
Use the `f` method on a string with a literal for string interpolation. Use `printf` instead to directly print the result. An example is:
```
name = 'campoe'
printf('Hello {name}')

# --- Output ---
# Hello campoe
```

In fact, it can be used with any expression:
```
x = 3
printf('5 * {x} = {5 * x}')

# --- Output ---
# 5 * 3 = 15
```


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

pystrin-0.0.1.tar.gz (1.2 kB view details)

Uploaded Source

Built Distribution

pystrin-0.0.1-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file pystrin-0.0.1.tar.gz.

File metadata

  • Download URL: pystrin-0.0.1.tar.gz
  • Upload date:
  • Size: 1.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

File hashes

Hashes for pystrin-0.0.1.tar.gz
Algorithm Hash digest
SHA256 1c28b4d48e53e569b330a0931ee952d9e41b8243d7232c036172b2dcf32abcf4
MD5 bbb012cb10c745ce5b50f71d34c3d71e
BLAKE2b-256 ac8bac40c4e90ce14882d2e6d6b9afdb85dbfdab54e430ec4d4102d18ef29c9e

See more details on using hashes here.

File details

Details for the file pystrin-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pystrin-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

File hashes

Hashes for pystrin-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 18909f435859002dc114bc752ef6bb38945cc011de15b5e65371b876fb8adf06
MD5 61d5d33874e662d2d18df2369e70dc94
BLAKE2b-256 3246e454882c7ff714ac8a2500e8c1a5a732ddcffc4f0505b55e42c281eca1a8

See more details on using hashes here.

Supported by

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