Skip to main content

pt_name_gen

A Python module for generating random names in Portuguese.

Installation

To install the name_generator module, use pip:

pip install pt_name_gen

Usage

To use pt_name_gen, import the pt_name_gen function from the pt_name_gen module and call it to generate a random name.

The gender parameter should be 0 for male names or 1 for female names. If no gender parameter is specified, a random gender will be chosen.

You can access these attributes using dot notation, like this:

from pt_name_gen import pt_name_gen

person = pt_name_gen.generate_name(0)  # Male
print(person.full_name)  # Prints the full name of the person
print(person.email)      # Prints the email address of the person

The pt_name_gen function returns a Person object, which has the following attributes:

  • first_name: The first name of the person (e.g. "John").
  • last_name: The last name of the person (e.g. "Smith").
  • full_name: The full name of the person (e.g. "John Smith").
  • email: The email address of the person (e.g. "johnsmith@gmail.com").
  • gender: The gender the person (e.g. 0).

Dependencies

pt_name_gen requires the unidecode library to remove special characters from the generated names.

License

The pt_name_gen module is released under the MIT License.

I hope this helps! Let me know if you have any questions.

Release files for pt-name-gen 0.3.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pt-name-gen 0.3.8
File Size Uploaded
pt_name_gen-0.3.8.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pt-name-gen 0.3.8
File Interpreter ABI Platform
pt_name_gen-0.3.8-py3-none-any.whl Python 3 none any Details

Total release size: 926.7 kB

Release files / pt_name_gen-0.3.8.tar.gz

Download URL pt_name_gen-0.3.8.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
969fd1b0ddc6e95bec2a7f298a708533f974a20fad768cf7e09264488d865337
BLAKE2b-256 checksum
How to use checksums
df33cdd32302227356a8c674c251447b1b3631bd435f12dd6c48a8a282855ea3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release files / pt_name_gen-0.3.8-py3-none-any.whl

Download URL pt_name_gen-0.3.8-py3-none-any.whl
Size 923.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f067b9fa79f168a7a86d42039849c442cc552e15ac35b77df00cd7940b2ad8ff
BLAKE2b-256 checksum
How to use checksums
25db1fb92f7130c9af62b0bb99e360db0373a1092d04234a80d7ab89f0939e5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.3.8 This release

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page