#registration #person #document #generate #physical #brazil

bin+lib person_registration

Person registration for Brazil documents

3 releases

0.1.2 Jun 12, 2022
0.1.1 Jun 5, 2022
0.1.0 Jun 5, 2022

#645 in Authentication

MIT license

7KB
137 lines

Person Registration

Description

On Brazil we have two main documents to describe a company or a physical person registration, used widely for common ways like buy, register on another services and so on. This tool help you to generate this documents to test your applications.

Installation

[sudo] cargo install person_registration

or add to Cargo.toml

[dependencies]
person_registration = "*"

Usage

To generate documents on cli, you can use the commands below:

CLI

person_registration --physical 5
person_registration --juridic 5
person_registration --general 5
person_registration --misc 5

API

Or just calling on your code:

use person_registration::{Gen, Person, Juridic, General};

println!("{}", Person::generate());
println!("{}", Juridic::generate());
println!("{}", General::generate());

That's it, enjoy and contributions are welcome.

Dependencies

~2.4–3.5MB
~60K SLoC