semvec/pypi-packages huggingface dataset:
calculator-gabija2022 1.0.0
A simple Python calculator
Requires Python: >=3.7

A simple Calculator for general purposes.
Features:
Add
Multiply
Subtract
Divide
Take (n) root of a number.
Please run calculator_main.py


MIT License

Copyright (c) [2022] [Gabija Gedvilaite]

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 AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
birman 0.0.2
Multipart formdata decoder

[![Python package](https://github.com/joegasewicz/birman/actions/workflows/python-package.yml/badge.svg)](https://github.com/joegasewicz/birman/actions/workflows/python-package.yml)
[![Upload Python Package](https://github.com/joegasewicz/birman/actions/workflows/python-publish.yml/badge.svg)](https://github.com/joegasewicz/birman/actions/workflows/python-publish.yml)

# Birman
Multipart formdata decoder library.

### Install
```
pip install birman
```

### Get started

Decode multipart form data
```python
from birman import Decoder
# multipart_data = b'---- ...etc'

decoder = Decoder(multipart_data)
result = decoder.decode()
```
This would return a normalized dict
```python
# example from params - ?email=test@test.com&password=wizard
# result -
{
    "email": {
        "name": "email",
        "value": "test@test.com",
    },
    "password": {
        "name": "password",
        "value": "wizard",
    },
}
```

Parse URI form params
```python
from birman import Encoder

arg = "?email=test@test.com&password=wizard"
result = Encoder.parse_params(arg)
```
This would return a normalized dict
```python
# result -
{
    "email": {
        "name": "email",
        "value": "test@test.com",
    },
    "password": {
        "name": "password",
        "value": "wizard",
    },
}
```

### Multipart Formdata
The decoder method will return file data extracted from the multipart formdata as a dict.

```python
{
    'name': 'logo',
    'type': 'file',
    'value': {
        'filename': 'bobtail.png',
        'mimetype': 'image/png', 
        'file_data': b'...',
        'type': 'file',
}
```