semvec/pypi-packages huggingface dataset:
norske-kommuner 0.4.0
Pydantic models on Norwegian municipalities (Norske kommuner).
Requires Python: >=3.7,<4.0
Keywords: kommuner,municipalities,norway

# Norske Kommuner
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/AndersSteenNilsen/norske-kommuner/main.svg)](https://results.pre-commit.ci/latest/github/AndersSteenNilsen/norske-kommuner/main)
[![PyPI - Status](https://img.shields.io/pypi/status/norske-kommuner?logo=pypi&logoColor=white)](https://pypi.org/project/norske-kommuner/)
[![Download Stats](https://img.shields.io/pypi/dm/norske-kommuner?logo=pypi&logoColor=white)](https://pypistats.org/packages/norske-kommuner)

Pydantic models on Norwegian municipalities (Norske kommuner).

```python
from norske_kommuner import kommuner, get_kommune_by_nr

#  Loop over all kommuner:
for kommune in kommuner.values():
    print(kommune)

#  Get kommunenummer
print (kommuner['Stavanger'].kommunenummer) # 1103

# Can also get kommune by kommunenr
print(get_kommune_by_nr('1103')) #  Stavanger

# Each kommune is a pydantic model and have pydantic functionality like exporting to json
print(kommuner['Stavanger'].json())

```

Last line will output
```json
{
    "avgrensningsboks": {
        "coordinates":   [[[5.49903313381, 58.884658939559], [5.49903313381, 59.312103554166], [6.131310442607, 59.312103554166], [6.131310442607, 58.884658939559], [5.49903313381, 58.884658939559]]],
        "crs": {
            "properties": {
                "name": "EPSG:4258"
            },
            "type": "name"
        },
        "type": "Polygon"
    },
    "fylkesnavn": "Rogaland",
    "fylkesnummer": "11",
    "gyldigeNavn": [
        {
            "navn": "Stavanger",
            "prioritet": 1,
            "sprak": "Norwegian"
        },
        {
            "navn": null,
            "prioritet": 2,
            "sprak": null
        },
        {
            "navn": null,
            "prioritet": 3,
            "sprak": null
        }
    ],
    "kommunenavn": "Stavanger",
    "kommunenavnNorsk": "Stavanger",
    "kommunenummer": "1103",
    "punktIOmrade": {
        "coordinates": [
            5.712610778068,
            59.10201328799
        ],
        "crs": {
            "properties": {
                "name": "EPSG:4258"
            },
            "type": "name"
        },
        "type": "Point"
    },
    "samiskForvaltningsomrade": false
}
```

>Uses data and models from "[Åpent API fra Kartverket for administrative enheter](https://ws.geonorge.no/kommuneinfo/v1/)"
ranshark-drawranflow 1.0.8
Pcap analyzer installable django app

# ranshark

<p>This is the Python project that read 5g RAN packets using pyshark lib (Tshark wrapper) and filter flows based below identities.</p>
<ul>
<li>CRNTI</li>
<li>DU F1AP ID</li>
<li>CU F1AP ID</li>
<li>RAN NGAP ID</li>
<li>AMF NGAP ID</li>

</ul>

<p>This will automatically draw visual drawing based on the filters determined</p>


```commandline
Modules:
    Django Framework
    pyShark lib
    sqlite3 (DB)
```


#TODO:
<ol>
<li>XnAP interface</li>
<li>Make Interface better for upload trace</li>
<li>Analyze each message/call provide success/fail stats</li>
</ol>

<p>Here are some screenshots</p>

Home Page looks like this:

![image](https://github.com/ugandhar84/ranshark/assets/67985777/7a54ef07-7051-4da7-80d2-cb99fda0376a)

Click on the table row, sequnce flow will show up:

![image](https://github.com/ugandhar84/ranshark/assets/67985777/f35734d2-aed2-4f85-9d4d-dcf12c88d779)


Click on the message, pop up will apper and display contents of the respective packet.

![image](https://github.com/ugandhar84/ranshark/assets/67985777/36de13bb-c621-4e91-832c-ef0380358e80)