semvec/pypi-packages huggingface dataset:
phonenumberchecker 0.0.5
Check any Australian numbers
License: MIT
Requires Python: >=3.6
Keywords: phone number

gender
=======================================

Get gender from name and email address

What does it do?
----------------

Suppose you have someone's name and need to find out whether this person is a female (male). The name might come with an email address as it's often the case when you deal with customer records. This package finds the gender for you.

Key Advantages
--------------

- Very simple to use
- Accepts a single string or a list of strings as input
- Relies on a dataset of 130,000+ unique names
- Covers hypocorisms (English only at this time)
- Makes use of a person’s email address (if available) via searching for names and grammatical gender words in the prefix
- Doesn’t care if the input has bad formatting


Installation
------------

.. code-block:: console

	$ pip3 install gender

Quickstart
----------

Import and initialise the GenderDetector class:

.. code-block:: console
	from gender import GenderDetector
	gd = GenderDetector()

Then use its *gender* method:

.. code-block:: pycon

	gd.gender('jaeden collins')

Note that you can give it a string with some rubbish in it, like

.. code-block:: pycon

	gd.gender('dr.. arian ChiA ,%%%achia58@hotmail.com')

Having an email address could make difference. Suppose that you want to figure out gender of someone whose description is 

.. code-block:: pycon
	customer_info = 'b w roberts -- roboking@yahoo.co.uk'

Both the initials and surname don’t tell you whether this is a male or a female. However, the email prefix robo*king* does look like it’s probably a male because the word *king* always points to a male.

Also note that you can feed a **list**  into the **gender** method in which case you will get a list of identified genders as an output:

.. code-block:: pycon
	gd.gender(['steve risotto', 'ana kowalski'])
	>>>['m', 'f']
simple-config 1.0.1
A simple configuration file manager for python
License: MIT
Keywords: config json-config user-config

# Simple Config

A simple configuration file manager for python. Best suited for simple scripts that need
to take user defined configuration parameters.

Configuration is saved in JSON format to a file of your chosing.


## Why?

This is mostly intended to be used in quick and dirty scripts and simple CLI apps.
This does not intend to replace `configparser`. There are instances where I feel
that bootstrapping `configparser` is an overkill. This is where `simple_config` chips in.


## Installation

Install if using `pipenv` by running the command below.

```bash
pipenv install simple-config
```

Or, if you are not using `pipenv`, run the following:

```bash
pip install simple-config
```

## Usage

`simple-config` provides a `Config` class. It is intended to be instantiated
at the module level once and used the instance everywhere.

Put this in a file called `config.py`:

```python
from simple_config import Config

default_settings = {
    "is_registered": True,
    "token": "aK3NJe3PnXJr"
}
settings = Config("/path/to/config.json", defaults=default_settings)
```

Here, the first argument is the path to the configuration file.
The `defaults` keyword argument takes the default configuration
options for your app.
If the config file does not exist, it will be created and populated
with the default values.

Now, import the instance of `Config` i.e. `settings` wherever necessary and use:

```python
from config import settings

print(settings.token)
```

### Mutating the config

Sometimes there might be a need to update the config, e.g. to save state of
the app. The `Config` class provides `update` instance method.

```python
settings.update(token="Ju901jK1Rb")
```

The update method will update the parameters and write it to the config
file as well.


## Multiple configs

There can exist more than one `Config` instance in an application. For example,
the application auto-generated state can be saved in one file and user's config
can be saved in another instance.


## Run the tests

Go to the root of this project and run:

```python
python -m unittest discover
```


## Similar projects

* [yapconf](https://github.com/loganasherjones/yapconf)