semvec/pypi-packages huggingface dataset:
old-norse-alphabet 1.0.1
Old Norse Alphabet & sorting
Requires Python: >=3.9

# Old Norse Alphabet

Old Norse Alphabet & sorting in Python

### Motivation

Old Norse constains letters that may be hard to type with most keyboards. Prime examples being þ, ð and ǫ. There are also some letters "missing", like c and q. This package offers the alphabet & tricky individual letters as constants.

Also provides sorting function to get the old norse alphabet order just right.

### Install

`pip install old-norse-alphabet`


### Usage

The library offers Old Norse alphabet in lower/uppercases, and a function for sorting by old norse alphabetical order.


#### Sort

The crate exposes custom compare function for getting old norse alphabetical order just right. Compare function accepts two words to compare, so you can use cmp_to_key with sorted. 

```python
from functools import cmp_to_key
from old_norse_alphabet.sort import old_norse_sort

words = (
    "öðli",
    "ógnan",
    "æðrask",
    "aðili",
    "þakkan",
    "áfir",
    "á-auki",
    "él-ligr",
    "maðka",
    "ef-lauss",
    "œgir",
    "áðr",
    "maðr",
    "madr",
    "mæðr",
)

result = sorted(words, key=cmp_to_key(old_norse_sort))

print(result)
# "aðili", "á-auki", "áðr", "áfir", "ef-lauss", "él-ligr", "madr", "maðka", "maðr", "mæðr", "ógnan", "þakkan", "æðrask", "œgir", "öðli",

```

#### Alphabet

Alphabets are just immutable tuples of letters in ON alphabetical order with getter functions.

```python
from old_norse_alphabet import alphabet

# Both alphabets contain 34 characters.
upper = alphabet.get_upper() 
lower = alphabet.get_lower()

# There is special list for characters that are valid as first letter.
valid_as_first = alphabet.get_valid_as_first()

```

Exposed special characters:

```python
from old_norse_alphabet import alphabet

print(alphabet.eth) # ð
print(alphabet.thorn) # þ
print(alphabet.o_caudata) # ǫ
print(alphabet.slashed_o) # ø
print(alphabet.ae) # æ
print(alphabet.oe) # œ
print(alphabet.ash) # Alternative export of AE

```

### About Old Norse

[Old Norse](https://en.wikipedia.org/wiki/Old_Norse) was a North Germanic language that was spoken by inhabitants of Scandinavia and their overseas settlements from about the 7th to the 15th centuries.
old-swedish-dictionary 1.0.0
Old Swedish Dictionary for Python. From K.F. Söderwall's Medieval Swedish
Requires Python: >=3.9

# Old Swedish Dictionary

Old Swedish Dictionary for Python. The dictionary consists of 40 000+ Old Swedish words with Swedish translations.

Based on K.F. Söderwall's Medieval Swedish Dictionary

### Install

`pip install old-swedish-dictionary`

### Usage

The project provides a getter for the whole dataset. You can use it in your script to populate your own database or otherwise use the data.

Should you want to use the data without this Python library, you might want to check [Old Swedish Dictionary Builder](https://github.com/stscoundrel/old-swedish-dictionary-builder)

```python

from old_swedish_dictionary.dictionary import get_dictionary

# Whole dictionary of +41 000 entries
dictionary = get_dictionary()

# Dictionaries return entries that consist of headword, part of speech and definition.
print(dictionary[100].headword)           # af bränna
print(dictionary[100].part_of_speech)     # vb
print(dictionary[100].grammatical_aspect) # v.
print(dictionary[100].definitions)        # ["afbränna, genom eld förstöra. hans trähws the af brendhe  [...and more]]

```

Individual words are returned in named tuple format of:

```python
# For type hint usage
from old_swedish_dictionary.dictionary import DictionaryEntry

{
    headword: str
    part_of_speech: list[str]
    grammatical_aspect: str
    information: str
    definitions: list[str]
    alternative_forms: list[str]
}
```

### About "Dictionary of Old Swedish"

_"Ordbok Öfver svenska medeltids-språket"_ dictionary was published in late 1884—1918 by K.F. Söderwall. Additional supplement to it was published in 1953—1973.

Old Swedish developed from Old East Norse, the eastern dialect of Old Norse, at the end of the Viking Age. Early Old Swedish was spoken from about 1225 until about 1375, and Late Old Swedish was spoken from about 1375 until about 1526.

The original material is licenced under [Creative Commons International (CC BY 4.0)](https://creativecommons.org/licenses/by/4.0/), made available by University of Gothenburg. The source code for this library is under MIT licence.

- https://spraakbanken.gu.se/en/resources/soederwall
- https://spraakbanken.gu.se/en/resources/soederwall-supp
dbt-yamd 0.0.8
For generating dbt yaml and md files

# dbt_Yamd(Alpha Version)
A Yaml and Markdown file generator for dbt a.k.a dbt_yamd. Simple library written for automatically generating the yaml and md files needed for dbt models.

## Usage 

```
# run the command below in your cli which triggers a user input request.

dbt_yamd 

- The first prompt is for the path to your dbt catalog.json file
- The next prompt is for the dbt project name.
- Next is the path to the folder or file to generate yaml/md for.
- The final prompt asks to generate templated md files - Yes/No.
```

# Requirements

The requirements for this package to work as inteneded is to ensure you have successully run your dbt model and also have run the dbt command "dbt docs generate". This package uses the catalog file generated by dbt to create a yaml file for dbt models.

# **Important information !!!!**

These are information the user of this program needs to be aware of to get optimum usage of this code. 

1. Before running this package ensure you have ran your dbt model successfully.
2. Ensure you are using the right dbt profile which is expected to be the one used for local.
3. Its adviceable to use the virtual environment as seen in the Makefile.
4. **As this is work in progress it is advisebale to use this when you dont have a yaml and md file yet as this will  overwrite your yaml and md files in your folder.**