Skip to main content

Overview

deployment:
PyPI PyPI - Python Version
test/coverage:
https://app.codacy.com/project/badge/Grade/4bb124e2a8334d608c6a4d1cf1d1e543 https://codecov.io/gh/0LL13/persontitles/branch/main/graph/badge.svg?token=G7O54JQHFE
build status:
Travis (.org)
docs:
https://img.shields.io/github/license/0LL13/persontitles

Dicts with lists containing academic degrees from the US, UK, and Germany, peer titles from various countries (mixed), English and German job titles (mixed) and German government jobs (male and female variants).

Features

Check if a degree is a valid degree of chosen country. Check if a degree is written correctly. Check the number of US, UK, and German academic degrees. Check if a title is a valid peer title of chosen country. Check if a title is a job title. Check if a title is a German government job (includes male and female variants). Check if a word is a valid salutation.

Usage with degrees

>>>from persontitles import academic_degrees
>>>DEGREES = academic_degrees.degrees()

>>>"Dr. iur. et rer. pol." in DEGREES["D"]
>>>True

>>>"bogus degree" in DEGREES["D"]
>>>False

>>>len(DEGREES["D"])
>>>496

>>>"MOcean" in DEGREES["UK"]
>>>True

>>>"Dr. iur." in DEGREES["UK"]
>>>False

>>>len(DEGREES["UK"])
>>>404

>>>"B.App.Sc(IT)" in DEGREES["US"]
>>>True

>>>len(DEGREES["US"])
>>>614

Usage with titles

>>>from persontitles import peertitles
>>>TITLES = peertitles.peertitles()

>>>"Pfalzgräfin" in TITLES["German"]
>>>True

>>>"Archduke" in TITLES["English"]
>>>True

Usage with job titles

>>>from persontitles import job_titles
>>>JOB_TITLES = job_titles.job_titles

>>>"CEO" in JOB_TITLES
>>>True

>>>"Facharzt Anästhesiologie" in JOB_TITLES
>>>True

>>>len(JOB_TITLES)
>>>1023

Usage with German government jobs

>>>from persontitles import gov_jobs
>>>GOV_JOBS = gov_jobs.gov_jobs()

>>>"Amtsrat" in GOV_JOBS
>>>True

>>>"Amtsrätin" in GOV_JOBS
>>>True

>>>"Zweiter Konrektor" in GOV_JOBS
>>>True

>>>"Zweite Konrektorin" in GOV_JOBS
>>>True

>>>len(GOV_JOBS)
>>>402

Usage with salutations

>>>from persontitles import salutations
>>>SALUT = salutations.salutations()

>>>"Mr." in SALUT
>>>True

>>>print(SALUT)
>>>['Herr', 'Hr.', 'Frau', 'Fr.', 'Frl.', 'Mr.', 'Mr', 'Mrs.', 'Mrs', 'Ms.', 'Ms', 'Miss', 'Monsieur',
    'monsieur', 'Madame', 'madame', 'Señor', 'señor', 'Señora', 'señora']

Credits

Credits to all the unsung heroes who maintain and update the Wikipedia.

Installation

pip install persontitles

or

pipenv install persontitles

Contribute

The best way to contribute is to update a wiki page with degrees or titles.
If you update the wiki pages and rebuild a new collection, the added degrees will
be included (tested by myself).

Support

Planned

Add degrees in French or Spanish. Add job roles, offices, job abbreviations, religious titles.

Warranty

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

In this particular package this means especially that there is no warranty concerning the completeness of degrees for a country, the proper spelling of the degrees listed, and the correctness of those degrees.

License

MIT License

Copyright (c) 2020 Oliver Stapel

Metadata

Release files for persontitles 0.3.9

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

Source distribution (sdist)

Source distribution for persontitles 0.3.9
File Size Uploaded Provenance Actions
persontitles-0.3.9.tar.gz 65.7 kB Without provenance Details for persontitles-0.3.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for persontitles 0.3.9
File Interpreter ABI Platform Actions
persontitles-0.3.9-py3-none-any.whl Python 3 none any Details for persontitles-0.3.9-py3-none-any.whl

Total release size: 124.9 kB

Release files / persontitles-0.3.9.tar.gz

Download URL persontitles-0.3.9.tar.gz
Size 65.7 kB
Tags Source
SHA-256 checksum
How to use checksums
739ceef99f7c751a407928372256ca1f8541f8bbd6eaa164bc2ec4c36bef496a
BLAKE2b-256 checksum
How to use checksums
bc2a69bb0a747dbc84fe7c4eebc90047e18c2301b6f7c7970b3573551c4708a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

Release files / persontitles-0.3.9-py3-none-any.whl

Download URL persontitles-0.3.9-py3-none-any.whl
Size 59.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3eb73ec0feae4b71a6101465e71e26ec23769bca1122bb08124bf98aa5c12edb
BLAKE2b-256 checksum
How to use checksums
2715995757867dfdd9f2d6cdcad4381463606ebd604a406af439d630c59cd60d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

Security for persontitles 0.3.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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