hebrew_names
Random Hebrew name generator
Installation
The script is available on PyPI. To install with pip:
pip install hebrew-names
Usage
Hebrew Names can be used as a command line utility or imported as a Python package.
Command Line Usage
To use the script from the command line:
$ hebrew_names
צבי כהן
Python Package Usage
Here are examples of all current features:
>>> import hebrew_names
>>> hebrew_names.get_first_name('jew', 'female')
'יעל'
>>> hebrew_names.get_first_name('jew', 'female')
'תמר'
>>> hebrew_names.get_first_name('jew', 'male')
'אהרון'
>>> hebrew_names.get_first_name()
'מקסים'
>>> hebrew_names.get_first_name()
'נור'
>>> hebrew_names.get_first_name('muslim', 'male')
"מג'די"
>>> hebrew_names.get_first_name('muslim', 'male')
'מוחמד'
>>> hebrew_names.get_first_name('christian', 'male')
"'ג'ורג'"
>>> hebrew_names.get_first_name('druze', 'male')
'ריאן'
>>> hebrew_names.get_first_name('other', 'male')
'אנטוני'
>>> hebrew_names.get_last_name('jew')
'גלברד'
>>> hebrew_names.get_full_name('muslim', 'female')
'אמירה איוב'
License
This project is released under an MIT License.
Data in the following files are public domain (derived from Israel’s Central Bureau of Statistics 1948-2021 data):
dist.jew.male.first
dist.jew.female.first
dist.jew.last
dist.muslim.male.first
dist.muslim.female.first
dist.muslim.last
dist.christian.male.first
dist.christian.female.first
dist.christian.last
dist.druze.male.first
dist.druze.female.first
dist.druze.last
dist.other.male.first
dist.other.female.first
dist.other.last
Changes
tip (unreleased)
Add Hebrew dataset for last names
Add Hebrew dataset for first names
Modified names.get_first_name to only accept ‘male’ and ‘female’ gender values
0.3.0 (2013-05-14)
Fixed Python 3 support
Improved tests and fixed minor bugs
0.2 (2013-02-17)
Initial release
Contributing
Please file bugs to the Github issue tracker. Pull requests are welcome.
Hacking and Pull Requests
Please try to conform to PEP8 for code contributions and ensure that the tests continue to function.
Please include new tests with your pull requests when appropriate.
Feel free to open pull requests before you’ve finished your code or tests. Opening your pull request sooner will allow others to comment on it sooner.
A checklist of things to remember when making a feature:
Metadata
Release files for hebrew-names 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hebrew-names-0.0.1.tar.gz | 587.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hebrew_names-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.2 MB
Release files / hebrew-names-0.0.1.tar.gz
| Download URL | hebrew-names-0.0.1.tar.gz |
|---|---|
| Size | 587.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7828be06563ac5258556f2314840c572e9c74c7319d567f19970115cdb3edad9
|
|
BLAKE2b-256 checksum How to use checksums |
5dca16a300c60ec2b3f2d8e748beaaccec71a30c1368c5a6a9d7353864f46e5a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / hebrew_names-0.0.1-py3-none-any.whl
| Download URL | hebrew_names-0.0.1-py3-none-any.whl |
|---|---|
| Size | 597.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
210f269e41524aa9eeb30704803ae31cc25a086e498dff331e3c1c83c849cb66
|
|
BLAKE2b-256 checksum How to use checksums |
455c6fdfbac98e9af9f553c435c9cad0c0fafdadf30b24e36d4ea9499eee7f25
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|