https://github.com/aceinetx/pyfmt
python c-like string formatting library
https://github.com/aceinetx/pyfmt
Last synced: 5 months ago
JSON representation
python c-like string formatting library
- Host: GitHub
- URL: https://github.com/aceinetx/pyfmt
- Owner: aceinetx
- Created: 2024-06-24T10:20:52.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-28T22:03:42.000Z (about 2 years ago)
- Last Synced: 2024-12-31T00:12:28.942Z (over 1 year ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pyfmt
lightweight python string formatting library
## format a string
```python
>>> x = pyfmt.default_fmt("Hello, %s", "World!")
>>> x
'Hello, world!'
```
## print formatted
```python
>>> pyfmt.printf("Hello, %s", "World!")
Hello, world!
```