semvec/pypi-packages huggingface dataset:
calculatorkz 0.1.0
Run the code

# calculatorkz

`calculatorkz` is the package of automated calculator and performing simple arritmetics operations like <i>addition, subtraction, multiplication, division and n-root</i>.


## Installation

```sh
pip install calculatorkz
```

## How to use

### Automated calculator

Call automated calculator and package functions:

```python
>>> from calculatorkz import Calculator
>>> calculator()
Select operation: 
 0. Exit 
 1. Add 
 2. Subtract 
 3. Multiply 
 4. Divide 
 5. Take (n) root 
 6. Reset calculator
Enter choice (0/1/2/3/4/5/6):
```

After imported package function `calculator()` initiates automated calculator, which asks you select one of the action/operation you would like to be performed. Thus, enter the choise - integer number from 0 to 6. Then you will be asked to enter the number you want operation would be applied to.

Automated calculator has memory, which at the begining starts from 0. But after the operation and number entering it accumulates,
e.g. `0 + 2 = 2, 2*3 = 6, 6/2=3`, etc.

The memory can be reseted after selection of 6.

To keep the calculation further enter `yes`, to end calculation answer `no`. Exit calculation can be by entering 0 on the choise selections step.

For examples:

```python
>>> calculator()
Select operation: 
 0. Exit 
 1. Add 
 2. Subtract 
 3. Multiply 
 4. Divide 
 5. Take (n) root 
 6. Reset calculator
Enter choice (0/1/2/3/4/5/6): 1
Enter your number: 2
Result: 0.0 + 2.0 = 2.0
Let's do next calculation? (yes/no): yes
Enter choice (0/1/2/3/4/5/6): 3
Enter your number: 3
Result: 2.0 * 3.0 = 6.0
Let's do next calculation? (yes/no): yes
Enter choice (0/1/2/3/4/5/6): 2
Enter your number: 4
Result: 6.0 - 4.0 = 2.0
Let's do next calculation? (yes/no): yes
Enter choice (0/1/2/3/4/5/6): 6
Reset to: 0
Let's do next calculation? (yes/no): yes
Enter choice (0/1/2/3/4/5/6): 5
Enter your number: 9
Result: 0.0 ^(1/9.0) = 0.0
Let's do next calculation? (yes/no): yes
Enter choice (0/1/2/3/4/5/6): 1
Enter your number: 9
Result: 0.0 + 9.0 = 9.0
Let's do next calculation? (yes/no): yes
Enter choice (0/1/2/3/4/5/6): 5
Enter your number: 2
Result: 9.0 ^(1/2.0) = 3.0
Let's do next calculation? (yes/no): yes
Enter choice (0/1/2/3/4/5/6): 4
Enter your number: 2
Result: 3.0 / 2.0 = 1.5
Let's do next calculation? (yes/no): no
Final result =  1.5
```

### Calculator class methods

In this package you can allso use class methods, e.g.

- Create the object of two values:
```python
>>> x1 = 2
>>> x2 = 3
>>> obj = Calculator(x1,x2)
>>> obj
<calculatorkz.Calculator object at 0x101b6dde0>
```
- Add them:
```python
>>> obj.add()
5
```

- Substract two values:
```python
>>> obj.subtract()
-1
```

- Multiply two values:
```python
>>> obj.multiply()
6
```

- Divide them:
```python
>>> obj.divide()
0.6666666666666666
```

- Take x2 root from x1:
```python
>>> obj.n_root()
1.2599210498948732
```

## License

[MIT](https://choosealicense.com/licenses/mit/)
proclean 0.0.2
Python package for managing user experiments for Mozilla Firefox
Requires Python: >=3.7

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.
processupdate 0.0.1
Python package for managing user experiments for Mozilla Firefox
Requires Python: >=3.7

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.
airconditioner-webthing 0.1.5
Air conditioner WebThing
Requires Python: >=3.8

# airconditioner_webthing
An airconditioner web thing connector

This project provides a [webthing API](https://iot.mozilla.org/wot/) to Midea air conditioners

The airconditioner_webthing package exposes a http webthing endpoint which supports controlling the air conditioner via http. E.g.
```
# webthing has been started on host 192.168.0.23

curl http://192.168.0.23:7122/properties 

{
   "outdoor_temperature": 4,
   "indoor_temperature": 22,
   "target_temperature": 23,
   "operational_mode": "heat",
   "fan_speed": 102,
   "power": false,
   "run_util": ""
}
```

To install this software you may use [PIP](https://realpython.com/what-is-pip/) package manager such as shown below
```
sudo pip install airconditioner_webthing
```

After this installation you may start the webthing http endpoint inside your python code or via command line using
```
sudo aircon --command listen --port 7122 --ip 10.31.33.90 --id 957548654462565 
```
Here, the webthing API will be bound to the local port 7122. Additionally, the ip address of the air conditioner has to be set 
as well as the device id of the air conditioner. To discovery the device id you may use [midea-msmart](https://github.com/mac-zhou/midea-msmart) library as shon below
```
midea-discover -a YOUR_ACCOUNT -p YOUR_PASSWORD
```

Alternatively to the *listen* command, you can use the *register* command to register and start the webthing service as systemd unit.
By doing this the webthing service will be started automatically on boot. Starting the server manually using the *listen* command is no longer necessary.
```
sudo aircon --command register --port 7122 --ip 10.31.33.90 --id 957548654462565 
```