Pouf is a cli program to produce fake datas.
cargo install pouf
Latest with source :
clone the projet and install it with :
cargo install --path .
$ pouf address.city
Carter burgh
$ pouf address.country
Congo
$ pouf address.street
Tillman Freeway
$ pouf administrative.healthinsurrancecode
1 85 02 974 777 624 88
$ pouf auto.licenseplate
QV-951-KA
$ pouf color
#434733
rgb(67, 71, 51)
rgba(67, 71, 51, 0.4)
hsl(71, 16%, 24%)
hsl(71, 16%, 24%, 0.4)
$ pouf filesystem.mimetype
application/vnd.lotus-1-2-3
$ pouf filesystem.semver
0.15.0
$ pouf filesystem.semver --stable
4.4.12
$ pouf filesystem.semver --unstable
2.16.8-rc.7
$ pouf finance.bic
YMEEIOX1284
$ pouf http.code
412 Precondition Failed
$ pouf internet.ip
196.124.139.106
$ pouf internet.ip --ipv6 true
DFC4:E3DD:6124:DD1:1D69:F2C7:B968:59BD
$ pouf internet.ip --ipv4 true
19.59.17.64
$ pouf internet.mac
7C:41:B6:CC:A2:67
$ pouf internet.mail -l en
[email protected]
$ pouf internet.mail // if locales is "fr_FR.UTF-8"
[email protected]
$ pouf people.name
Axel Sipes
$ pouf people.name -l fr
Gerard Sablonnière
$ pouf time.time
21:45:53
$ pouf time.date
2176-01-27T01:25:42.642830566+00:00
You can launch n time like this :
$ pouf finance.bic -n 5
TLNINTG1361
HJGOCSK1
VUKIBZB1
RJCIAZV1177
TVGOSIC1
You can use a template file (similar to Jinja) Some examples are on this directory
$ pouf template --input file.json
On zsh :
Add this on your ~/.zshrc :
fpath=("dir_of/_pouf" "${fpath[@]}")
before :
autoload -Uz compinit && compinit
Makefile inspire by https://git.sr.ht/~julienxx/castor/tree/master/item/Makefile
make cargo-publish