Saravanan666/pypi-org huggingface dataset:
Package: old-icelandic-dictionary
Old Icelandic DictionaryOld Icelandic dictionary for Python. From "A Concise Dictionary of Old Icelandic" by Geir ZoëgaThe dictionary consists of 29 000+ Old Icelandic words with English translations.Installpip install old-icelandic-dictionaryUsageThe dictionary comes in two variants:Default dictionary has html markup<i>and<b>to match look of the original book.No-markup version has the same content without any additional formatting tags.fromold_icelandic_dictionaryimportget_default,get_no_markup# Both dictionaries return entries that consist of word definition, and definitions list.default=get_default()no_markup=get_no_markup()# Headwords wont differ between dictionaries.print(default[14].word)# afbindiprint(no_markup[14].word)# afbindi# But definition markup does differ.print(default[14].definitions[0])# n. <i>constipation</i>.print(no_markup[14].definitions[0])# n. constipation.Individual words are returned in format of:{word:strdefinitions:Tuple[str,...]}About "A Concise Dictionary of Old Icelandic""A Concise Dictionary of Old Icelandic" dictionary was published in 1910 by Geir Zoëga, which leads to there being many public domain versions of the book available. Zoëgas attempt was to made easier-to-approach version of the more full Cleasby - Vigfusson dictionary, specifically for beginners and those interested in Old Icelandic prose writing.
Package: old-norse-alphabet
Old Norse AlphabetOld Norse Alphabet & sorting in PythonMotivationOld 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.Installpip install old-norse-alphabetUsageThe library offers Old Norse alphabet in lower/uppercases, and a function for sorting by old norse alphabetical order.SortThe 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.fromfunctoolsimportcmp_to_keyfromold_norse_alphabet.sortimportold_norse_sortwords=("öð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",AlphabetAlphabets are just immutable tuples of letters in ON alphabetical order with getter functions.fromold_norse_alphabetimportalphabet# 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:fromold_norse_alphabetimportalphabetprint(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 AEAbout Old NorseOld Norsewas a North Germanic language that was spoken by inhabitants of Scandinavia and their overseas settlements from about the 7th to the 15th centuries.
Package: old-norse-dictionary
Old Norse DictionaryOld Norse to English Dictionary for Python. The dictionary consists of 35 000+ Old Norse words with English translations.Based on the classic dictionary by Richard Cleasby and Gudbrand Vigfusson. If you find this one too abbreviated, academic or hard to read, you might want to check outA Concise Dictionary of Old IcelandicInstallpip install old-norse-dictionaryUsageThe dictionary comes in two variants:Default dictionary has HTML markup<i>and<b>to match look of the original book.No-markup version has the same content without any additional formatting tags.fromold_norse_dictionaryimportget_default,get_no_markup# Both dictionaries return entries that consist of headword, and definitions list.default=get_default()no_markup=get_no_markup()# Headwords wont differ between dictionaries.print(default[1989].word)# át-frekrprint(no_markup[1989].word)# át-frekr# But definition markup does differ.print(default[14].definitions[0])# adj. <i>greedy, voracious,</i> Hkv. 2. 41.print(no_markup[14].definitions[0])# adj. greedy, voracious, Hkv. 2. 41.Individual words are returned in format of:{word:strdefinitions:Tuple[str,...]}About Cleasby & Vigfusson Dictionary"Icelandic-English" dictionary was started by Richard Cleasby and finished by Gudbrand Vigfusson. It was published in 1874, which leads to there being many public domain versions of the book available.
Package: old-norwegian-dictionary
Old Norwegian DictionaryOld Norwegian/Norse Dictionary for Python. The dictionary consists of 40 000+ Old Norse words with Norwegian translations.Based on "Dictionary of the Old Norwegian Language".Installpip install old-norwegian-dictionaryUsageThe 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 checkOld Norwegian Dictionary Builderfromold_norwegian_dictionaryimportget_dictionary# Whole dictionary of +42 000 entriesdictionary=get_dictionary()# Dictionaries return entries that consist of headword, part of speech and definition.print(dictionary[25000].word)# náðuligaprint(dictionary[25000].part_of_speech)# advprint(dictionary[25000].definition)# náðuliga, adv.  1)  i Stilhed, ubemærket; hann bauð at hafa [...and more]Individual words are returned in format of:{word:strpart_of_speech:strdefinition:str}About "Dictionary of the Old Norwegian Language""Ordbog over det gamle norske Sprog"dictionary was published in late 1800s by Johan Fritzner. Its is the largest Old Norse to Norwegian dictionary, containing over 40 000 word definitions. While the original dictionary is called dictionary of "old norwegian", it is practically a dictionary of western Old Norse. Technically "Old Norwegian" would be a later stage in the language.
Package: oldowan.fasta
oldowan.fasta is a small bioinformatic utility to read and write sequence data
in theFASTAformat. FASTA is the most commonly used simple file format for
storing multiple DNA, RNA, or protein sequences in a single file. It is a
text-based, human-readable format.Installation InstructionsThis package is pure Python and has no dependencies outside of the standard
library. The easist way to install is usingeasy_installfrom thesetuptoolspackage.  This usually goes something like this:$ easy_install oldowan.fastaor on a unix-like system, assuming you are installing to the main Pythonsite-packagesdirectory as a non-privileged user, this:$ sudo easy_install oldowan.fastaYou may also use the standard python distutils setup method. Download the
current source archive from the file list towards the bottom of this page,
unarchive it, and install. On Mac OS X and many other unix-like systems, having
downloaded the archive and changed to the directory containing this archive in
your shell, this might go something like:$ tar xvzf oldowan.fasta*
$ cd oldowan.fasta*
$ python setup.py installQuick Startoldowan.fasta has an interface based on the standard Pythonfile.  Import
oldowan.fasta:>>> from oldowan.fasta import fastaRead a FASTA format file:>>> for entry in fasta('sequences.fasta', 'r'):
...     print entry['name'], len(entry['sequence'])A more cumbersome, but equivalent way of doing the above:>>> fasta_file = fasta('sequences.fasta', 'r')
>>> for entry in fasta_file:
...     print entry['name'], len(entry['sequence'])
>>> fasta_file.close()Even more cumbersome, and if the FASTA file is large, potentially
memory-draining version (the previous two methods only read one entry at a time
from the file, this reads the whole file into memory at once):>>> fasta_file = fasta('sequence.fasta', 'r')
>>> entries = fasta_file.readentries()
>>> fasta_file.close()
>>> for entry in entries:
...     print entry['name'], len(entry['sequence'])Read a string of FASTA format sequences:>>> fasta_string = open('sequences.fasta', 'r').read()
>>> for entry in fasta(fasta_string, 's'):
...     print entry['name'], len(entry['sequence'])Read a file object:>>> fasta_file = open('sequences.fasta', 'r')
>>> for entry in fasta(fasta_file, 'f'):
...     print entry['name'], len(entry['sequence'])Write to a file:>>> fasta_file = open('sequences.fasta', 'w')
>>> fasta_file.write({'name':'Sequence1', 'sequence':'AGCTAGCT'})
>>> fasta_file.close()Release History1.0.0 (August 16, 2008)initial release of module.1.0.1 (March 25, 2009)bug fix updates1.0.2 (March 26, 2009)update VERSION info1.0.4 (August 4, 2015)actually fix version loading problem this time
Package: oldowan.mitomotifs-cmdline
oldowan.mitomotifs-cmdline provides theseq2sitesandsites2seqcommand
line scripts to covert human mitochondrial DNA sequences to lists of variant
sites relative to the revised Cambridge Reference Seqeunce and vice versa.
Further information on the rCRS and variant site nomenclature for human mtDNA
sequences is available at theMitoMotifswebsite.This package is only the command line extension of the core oldwan.mitomotifs
module. If you want just the Python libraries and not the command line tools,
you should go directly to that package.Installation InstructionsThis package is pure Python and has only pure Python dependencies
(oldowan.mitomotifs and oldowan.fasta) outside of the standard library. All of
these dependencies will be automatically installed if you use thesetuptoolseasy_installtool.  This usually goes something like this:$ easy_install oldowan.mitomotifs-cmdlineor on a unix-like system, assuming you are installing to the main Pythonsite-packagesdirectory as a non-privileged user, this:$ sudo easy_install oldowan.mitomotifs-cmdlineYou may also use the standard python distutils setup method. You will have to
download ind install oldowan.fasta and oldowan.mitomotifs first. Then, download
the current source archive from the file list towards the bottom of this page,
unarchive it, and install. On Mac OS X and many other unix-like systems, having
downloaded the archive and changed to the directory containing this archive in
your shell, this might go something like:$ tar xvzf oldowan.mitomotifs-cmdline*
$ cd oldowan.mitomotifs-cmdline*
$ python setup.py installQuick StartConvert sequences to sites:$ seq2sites sequences.fastaConvert sequences to sites, saving the output to a file:$ seq2sites sequences.fasta > sites.txtSequences must be contiguous! Separate runs of sequence, such as HVR1 and HVR2
without the intervening sequence interval, must be analyzed separately.There is also a cutoff on the number of ambigous sites (N) allowed in the
sequence. By default, this is 10 - but this is an option that can be set:$ seq2sites --ambig-cutoff=20 sequences.fastaConvert a list of variable sites to sequence. The input file should be a
comma-seprated-values list with one entry per line, with name, N, and sites.
Sites should be separated by whitespace:$ cat hvr1_sites.txt
Seq1,1,16129A
Seq2,1,16129A 16223T
Seq3,2,16223T
$ sites2seq hvr1_sites.txtThe default range of sequence returned is HVR1, defined as positions 16023 to
16365 on the rCRS. All predefined ranges are:HVR1: 16024-16365HVR2: 73-340HVR1to2: 16024-340coding: 577-15992all: 1-16559So, to convert a list of HVR2 sites to sequence:$ sites2seq --region=hvr2 hvr2_sites.txtAn arbitrary range may be selected. If the stop value is smaller than the
start, it is assumed that the range runs through the origin:$ sites2seq --begin=16024 --end=340 dloop_sites.txtThe rCRS sequence will can be selected with ‘rCRS’ as the sites value:$ cat sites.txt
Seq1,1,rCRS
Seq2,1,16129A 16223TRelease History ===============1.0.0 (August 16, 2008)initial release of module.
Package: oldowan.mitotype
oldowan.mitotype is a set of utilities to haplotype human mtDNA sequences.Installation InstructionsThis package is pure Python and has no dependencies outside of the standard
library. The easist way to install is usingeasy_installfrom thesetuptoolspackage.  This usually goes something like this:$ easy_install oldowan.mitotypeor on a unix-like system, assuming you are installing to the main Pythonsite-packagesdirectory as a non-privileged user, this:$ sudo easy_install oldowan.mitotypeYou may also use the standard python distutils setup method. Download the
current source archive from the file list towards the bottom of this page,
unarchive it, and install. On Mac OS X and many other unix-like systems, having
downloaded the archive and changed to the directory containing this archive in
your shell, this might go something like:$ tar xvzf oldowan.mitotype*
$ cd oldowan.mitotype*
$ python setup.py installQuick StartTODORelease HistoryTODO (August 16, 2008)initial release of module.
Package: oldowan.mtdna
oldowan.mtdna contains the human revised Cambridge Reference Sequence (rCRS) in
Python friendly formats.Installation InstructionsThis package is pure Python and has no dependencies outside of the standard
library. The easist way to install is usingeasy_installfrom thesetuptoolspackage.  This usually goes something like this:$ easy_install oldowan.mtdnaor on a unix-like system, assuming you are installing to the main Pythonsite-packagesdirectory as a non-privileged user, this:$ sudo easy_install oldowan.mtdnaYou may also use the standard python distutils setup method. Download the
current source archive from the file list towards the bottom of this page,
unarchive it, and install. On Mac OS X and many other unix-like systems, having
downloaded the archive and changed to the directory containing this archive in
your shell, this might go something like:$ tar xvzf oldowan.mtdna*
$ cd oldowan.mtdna*
$ python setup.py installQuick StartThis package provides the human rCRS in several Python friendly formats.>>> from oldowan.mtdna import rCRS
>>> from oldowan.mtdna import rCRSlist
>>> from oldowan.mtdna import rCRSplus
>>> from oldowan.mtdna import rCRSplus_positionsrCRSis the raw sequence as a string:>>> len(rCRS)
16569
>>> rCRS[0:10]
'GATCACAGGT'rCRSlistis the rCRS sequence broken into a list. NOTE that this list is
padded with a nonsense character in position 0 such that the indices match the
standard biologial sequence position numbering (i.e. starting at 1 rather than
0):>>> rCRSlist[0]
'#'
>>> rCRSlist[1]
'G'rCRSplusis a partially repeat of the rCRS sequence. Because the mtDNA molecule is circular, it cannot be properly represented by a linear string. This might not be that big of an issue if experimentally derived mtDNA sequences generally do not span the break, BUT as it happens, the most commonly sequenced region of the mitochondrial genome (the control region) spans the point where the circular sequence is conventionally broken for the linear sequence. Thus,rCRSplusrepeats 1000bp on either end of the molecule to facilitate sequence alignment across the break. TherCRSplus_positionslist remaps the indices ofrCRSplusonto the conventional position numbering of the rCRS.>>> len(rCRSplus)
18638
>>> rCRSplus[1]
'A'
>>> rCRSlist[1]
'G'
>>> rCRSlist[rCRSplus_positions[1]]
'A'Finally, the oldowan.mtdna package provides indices to extract common mtDNA regions from the rCRS.>>> from oldowan.mtdna import HVR1_indices
>>> from oldowan.mtdna import HVR2_indices
>>> from oldowan.mtdna import HVR1and2_indices
>>> from oldowan.mtdna import HVR1to2_indices
>>> from oldowan.mtdna import coding_indices
>>> from oldowan.mtdna import all_indices>>> hvr1 = ''.join(list(rCRSlist[x] for x in HVR1_indices))Release History1.0.0 (March 25, 2009)initial release of module.1.0.1 (March 25, 2009)minor version reporting fix1.0.3 (August 4, 2015)actually fixed the version number issue this time
Package: oldowan.polymorphism
oldowan.polymorphism is a small bioinformatic utility for the management
of molecular polymorphism data.Installation InstructionsThis package is pure Python and has no dependencies outside of the standard
library. The easist way to install is usingeasy_installfrom thesetuptoolspackage.  This usually goes something like this:$ easy_install oldowan.polymorphismor on a unix-like system, assuming you are installing to the main Pythonsite-packagesdirectory as a non-privileged user, this:$ sudo easy_install oldowan.polymorphismYou may also use the standard python distutils setup method. Download the
current source archive from the file list towards the bottom of this page,
unarchive it, and install. On Mac OS X and many other unix-like systems, having
downloaded the archive and changed to the directory containing this archive in
your shell, this might go something like:$ tar xvzf oldowan.polymorphism*
$ cd oldowan.polymorphism*
$ python setup.py installQuick StartThis package provides a single utility class,Polymorphism. Import
this class from oldowan.polymorphism:>>> from oldowan.polymorphism import PolymorphismCreate a new Polymorphism object:>>> p1 = Polymorphism(16223,0,'A','T')The Polymorphism constructor requires 3 arguments and accepts and optional
fourth argument. These are (in order):position, integer.insert, 0 if polymorphism is exactly at that position, or 1,2,3,… if
insertion after.value, character value of polymorphismreference, optional value of a reference sequence at that positionRelease History1.0.0 (March 25, 2009)initial release of module.1.0.1 (March 25, 2009)minor update for correct version numbering1.0.3 (August 4, 2015)actually fixed the version numbering this time
Package: oldpyro
oldpyroThis is a fork ofPyrogram v1(Last:v1.4.16) which installs the library with nameoldpyroso that you can use both major versions at the same time.Install this only if you need both version. If you only need major version 1, usepip install pyrogram==1.*.Please install this before the latestpyrogramversion so that dependencies, if conflicting, can be overwritten.This isn't exactly the right way, but it is the only way. Also, dependencies may (andwillin the future) create a problem!InstallationPyPIpipinstalloldpyroUsageJust changepyrogramtooldpyroin your imports. For example:fromoldpyroimportClientIf you are using both clients in same file:fromoldpyroimportClientasClient1CreditsOriginal Author -DanOriginal Repository -pyrogram
Package: old-swedish-dictionary
Old Swedish DictionaryOld 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 DictionaryInstallpip install old-swedish-dictionaryUsageThe 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 checkOld Swedish Dictionary Builderfromold_swedish_dictionary.dictionaryimportget_dictionary# Whole dictionary of +41 000 entriesdictionary=get_dictionary()# Dictionaries return entries that consist of headword, part of speech and definition.print(dictionary[100].headword)# af brännaprint(dictionary[100].part_of_speech)# vbprint(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:# For type hint usagefromold_swedish_dictionary.dictionaryimportDictionaryEntry{headword:strpart_of_speech:list[str]grammatical_aspect:strinformation:strdefinitions: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 underCreative Commons International (CC 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/soederwallhttps://spraakbanken.gu.se/en/resources/soederwall-supp
Package: oldvis-dataset
oldvis_datasetA Python package for downloading metadata and images of old visualizations inoldvis/dataset.Installationpipinstalloldvis_datasetUsage ExampleDownloading metadata of visualizations:fromoldvis_datasetimportvisualizationsvisualizations.download(path="./visualizations.json")Downloading images:fromoldvis_datasetimportvisualizations,fetch_imagevisualizations.download(path="./visualizations.json")fetch_images(metadata_path="./visualizations.json",img_dir="./images/")Downloading images with filtering condition:importjsonfromoldvis_datasetimportvisualizations,fetch_imagemetadata=visualizations.load()# Download public domain images.metadata=[dfordinmetadataifd["rights"]=="public domain"]path="./visualizations.json"withopen(path,"w",encoding="utf-8")asf:json.dump(metadata,ensure_ascii=False)fetch_image(metadata_path=path,img_dir="./images/")APIoldvis_dataset.visualizationsoldvis_dataset.visualizations.download(path: str) -> NoneRequest themetadata of visualizationsand store atpath.
Each store metadata entry follows the data structureProcessedMetadataEntry(Source).visualizations.download(path="./visualizations.json")oldvis_dataset.visualizations.load() -> ListRequest themetadata of visualizationswithout saving.data=visualizations.load()oldvis_dataset.authorsoldvis_dataset.authors.download(path: str) -> NoneRequest themetadata of authorsand store atpath.authors.download(path="./authors.json")oldvis_dataset.authors.load() -> ListRequest themetadata of authorswithout saving.data=authors.load()oldvis_dataset.fetch_images(metadata_path: str, img_dir: str) -> NoneFetch images and store atimg_diraccording to the URLs in the downloaded metadata of visualizations stored atmetadata_path.fetch_images(metadata_path="./visualizations.json",img_dir="./images/")⚠️The image fetching can be slow.oldvis_dataset.save_as_bib(metadata_path: str, bib_path: str) -> NoneSave the fetched metadata atmetadata_pathas a BibTeX file and store atbib_path.save_as_bib(metadata_path="./visualizations.json",bib_path="./visualizations.bib")