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.4.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

pystrin-0.0.4-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pystrin-0.0.4.tar.gz
  • Upload date:
  • Size: 1.7 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.4.tar.gz
Algorithm Hash digest
SHA256 dc61467956a43974e2a414e1776c6623cfa8e321344439ebf2c2247690e4257f
MD5 691c0dc2bc2597b7c00075dac233e2ce
BLAKE2b-256 3750a695a9aef65845ff3ba6e8715f2b1ddefbf2062af559309d96b78a6504b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pystrin-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.7 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 cea480428aa7765c9e9019a43ea5025a238956b955afc14994b79262907f302b
MD5 907c62d0b5c31263de85f7c4133a61e4
BLAKE2b-256 350f3340bd96a3a44ab2ab781d8a40f18389401e1339c0710b137e77c8655ffe

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