#app #cli #faker #data #random

app pouf

Pouf is a cli program for produce fake datas

9 unstable releases (4 breaking)

Uses new Rust 2021

0.5.1 Aug 1, 2022
0.5.0 Jun 18, 2022
0.4.2 Apr 27, 2022
0.3.1 Apr 13, 2022
0.1.0 May 5, 2021

#206 in Command line utilities

25 downloads per month

Custom license

44KB
1K SLoC

Rust 618 SLoC // 0.0% comments BASH 575 SLoC

Pouf

LICENSE Crates.io Version Minimum rustc version

Intro

Pouf is a cli program to produce fake datas.

Last stable version

Packaging status

Install with crates.io

cargo install pouf

Install on your system

Latest with source :

clone the projet and install it with :

cargo install --path .

Examples

Address

$ pouf address.country --lang en
Congo
$ pouf address.city --lang en
Carter burgh
$ pouf address.country --lang en
Wunsch Vista

Administrative

$ pouf administrative.healthinsurrancecode --lang fr
1 85 02 974 777 624 88

Color

$ pouf color
#434733
rgb(67, 71, 51)
rgba(67, 71, 51, 0.4)
hsl(71, 16%, 24%)
hsl(71, 16%, 24%, 0.4)

Http

$ pouf http.code
412 Precondition Failed

Internet

$ pouf internet.mail -l en
adriel_quia@hotmail.com
$ pouf internet.mail // if locales is "fr_FR.UTF-8"
karim_qui@orange.fr

Filesystem

$ pouf filesystem.mimetype
application/vnd.xacml+json
$ pouf filesystem.semver
filesystem.semver

Finance

$ pouf finance.bic
RSJECUA1x0hf8NV2FDvN5m8MFV

People

$ pouf people.name
Axel Sipes

Time

$ pouf time.time
21:45:53

multiple launch

You can launch n time like this :

$ pouf finance.bic -n 5
TLNINTG1361
HJGOCSK1
VUKIBZB1
RJCIAZV1177
TVGOSIC1

Autocomplete

On zsh :

Add this on your ~/.zshrc :

fpath=("dir_of/_pouf" "${fpath[@]}")

before :

autoload -Uz compinit && compinit

Dev

Makefile inspire by https://git.sr.ht/~julienxx/castor/tree/master/item/Makefile

Publish

make cargo-publish

Dependencies

~6MB
~136K SLoC