semvec/pypi-packages huggingface dataset:
demommath 0.1.9
This package is for testing And How to create a package

# demmomath

A simple Python package for basic mathematical operations.

## Installation

```bash
pip install demommath

To call the functions by specifying their directory (These functions are imported in the __init__.py files of the respective directories):

## Usage for adding numbers
 
>>>from demommath import addsub
>>>addsub.add(2,8)
10

## Usage for subtracting numbers

>>>from demommath import addsub
>>>addsub.subtract(3,5)
-2

## Usage for multiplying numbers

>>>from demommath import multidiv
>>>multidiv.multiply(4,9)
36

## Usage for dividing numbers

>>>from demommath import multidiv
>>>multidiv.divide(5,4)
1.25

## Usage for identifying odd and even numbers

>>> from demommath import odd_even
>>> odd_even.is_odd_or_even(6)
'Even'

##  Usage for finding LCM of 3 numbers

>>>from demommath import calculations
>>>calculations.lcm(5,7,8)
280

##  Usage for finding mean of a list of numbers

>>>from demommath import calculations
>>>calculations.find_mean([4,6,7,3,5])
5.0

## Usage for identifying prime numbers

>>> from demommath import prime_num
>>> prime_num.is_prime(5)
True

## Usage for adding arrays

>>> from demommath import sumarray
>>> sumarray.add_num([5,6,7],[4,3,2])
array([9, 9, 9])

To call the default functions (These functions are imported in the __init__.py file in the main directory):

## Usage for adding numbers

>>>import demommath as dm
>>>dm.add(5,6)
11

## Usage for subtracting numbers

>>>import demommath as dm
>>>dm.subtract(5,6)
-1

##  Usage for finding LCM of 3 numbers

>>>import demommath as dm
>>>dm.lcm(5,7,8)
280

##  Usage for finding mean of a list of numbers

>>>import demommath as dm
>>>dm.find_mean([4,6,7,3,5])
5.0

To call the functions directly (These functions are defined in the __all__ list in the __init__.py file of the main directory):

## Usage for adding numbers

>>>from demommath import *
>>>add(3,6)
9

##  Usage for finding LCM of 3 numbers

>>>from demommath import *
>>>lcm(5,7,8)
280

##  Usage for finding mean of a list of numbers

>>>from demommath import *
>>>find_mean([4,6,7,3,5])
5.0
cflr 0.0.1
A Cloudflare Admin CLI.
Requires Python: >=3.11
Keywords: cloudflare,cli

# `cflr` a Cloudflare Admin CLI

A collection of commands for working with a Cloudflare account.

This package authenticates against the [Cloudflare API](https://developers.cloudflare.com/api/) using environment variables. For managing these securely consider the excellent [cf-vault](https://github.com/jacobbednarz/cf-vault) project.

## Quickstart

:warning: Python `>=3.11.x` required.

```sh
$ git clone
$ python -m venv .venv
$ source .venv/bin/activate # DO NOT SKIP THIS STEP!
# install dependencies (pyproject.toml)
# if developing run `python -m pip install -e ".[dev]"` for an editable install
$ python -m pip install .
# run cflr
$ cflr --help
# or
$ python -m cflr --help
# or
$ python cflr/cli.py --help
```

## Commands

### `$ sso`

- **Enterprise** only.
- API endpoint: `/accounts/:account_id/sso/v2/connectors` (undocumented as of 2024-01-13)
  - Requires [Global API Key](https://developers.cloudflare.com/fundamentals/api/get-started/keys/) environment variables to be set.

`list`/`enable`/`disable` the SSO email domains configured.

#### Why is this useful

Cloudflare allow Enterprise plans to configure IdP's to [enforce SSO access to the dashboard](https://developers.cloudflare.com/cloudflare-one/applications/configure-apps/dash-sso-apps/) across email domain(s).

:warning: If the IdP were to suffer an outage, access to the Cloudflare dashboard would be impacted as the SSO flow would fail.

In this instance, **disabling** the associated SSO email domain(s) will allow users to fallback to logging in via username/password/2FA.

#### Usage

```sh
$ cflr sso --help
$ cflr sso list :account_id
$ cflr sso disable :account_id  # an interactive pick list is returned
$ cflr sso enable :account_id   # an interactive pick list is returned
```