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.

Files for pystrin, version 0.0.6
Filename, size File type Python version Upload date Hashes
Filename, size pystrin-0.0.6-py3-none-any.whl (3.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pystrin-0.0.6.tar.gz (1.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page