#person #registration #document #physical #generate #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

#602 in Authentication

Download history 48/week @ 2024-02-24 6/week @ 2024-03-02

54 downloads per month

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
~58K SLoC