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

Uploaded Source

Built Distribution

pystrin-0.0.2-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pystrin-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 74dddd98a488717746598410b260cfac51c09e96738abba456496a5c76b31cb4
MD5 e5d29a206b78b68ff38591b3a92d5467
BLAKE2b-256 a97dc6ab3e1477b9971e6d802e7ea5fe5cc3d62b97b398a63fa592d5b6035ad7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pystrin-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.9 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 43f7f61133e5850cdeac31f3118eaa0582c524a41e7a7e2eb0975fb41b9bdd7c
MD5 179282b83a7f678b2df717a58e5de802
BLAKE2b-256 f800d95b3cc886d420ddf7a0aa1b827c5e46eb08b2ca6da4913f9a6772ae2897

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