semvec/pypi-packages huggingface dataset:
mediatype 0.1.6
Media Type parsing and creation
License: MIT
Requires Python: >=3.8,<4.0
Keywords: python,mimetype,mediatype,contenttype,mime

# mediatype
Media Type (aka MIME Type) parsing and creation

## Installation
```console
pip install mediatype
```

## Usage
```python
>>> import mediatype
```

### Parsing
```python
>>> media_type = mediatype.parse('application/manifest+json')
>>>
>>> media_type
MediaType(
    type='application',
    subtype='manifest',
    suffix='json',
    parameters=None
)
>>>
>>> str(media_type)
'application/manifest+json'
```

### Creation
```python
>>> media_type = mediatype.MediaType(
    type='application',
    subtype='manifest',
    suffix='json',
    parameters=None
)
>>>
>>> str(media_type)
'application/manifest+json'
```

## References
* [IANA - Media Types](https://www.iana.org/assignments/media-types/media-types.xhtml)
* [RFC-6838 - Media Type Specifications and Registration Procedures](https://www.rfc-editor.org/rfc/rfc6838.html)
* [Mozilla - MIME types (IANA media types)](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types)
* [Wikipedia - Media type](https://en.wikipedia.org/wiki/Media_type)
bored-config-parser 0.1.1
This is a small module you can use to make using config files easy
License: MIT
Requires Python: >=3.8,<4.0
Keywords: yaml,json,config

# Bored Config Parser

This is a small module you can use to make using config files easy

### Example

A config like this:
```yaml
general:
  name: "test"
  frequency: 22

targets:
  - name: "t1"
    size: "2G"
  - name: "t2"
    size: "1G"
```

can be easily used with the following code:
```python
from typing import List

from config_parser import load_config


class General:
    name: str
    frequency: int


class Target:
    name: str
    size: str

    
@load_config("path/to/config.yaml")
class Config:
    general: General
    targets: List[Target]


print(Config.general.name)

for target in Config.targets:
    print(target.name)
```