You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
hejo 9b8fc55245 ADD function to choose csv file to import 5 months ago
README.md DOCS update csv-import section 5 months ago
abbdb.yaml UPDATE changed one entry 6 months ago
abbs.py ADD function to choose csv file to import 5 months ago
csv-import.csv UPDATE remove test date, add example 5 months ago
import-wiki.py ADD feature import from wikipedia to separate db 6 months ago
infodb.yaml ADD feature import from wikipedia to separate db 6 months ago

README.md

Building my database for abbreviations

Requirements

  • Python 3.0<
  • PyYAML 5.1<

Status

Create a YAML database, add abbreviations from the terminal, start a quiz to study

Usage

Add abbreviaton from terminal

python3 abbs.py add [abbreviation] ["description"] [tag]

Start quiz

python3 abbs.py quiz

Asks you what the description of the abbreviation is.

Status quo:

  • case sensitive
  • randomized
  • doesn't repeat words but resets after every word was used

Short quiz without input

python3 abbs.py random

Shows you random abbreviations and presents you the answer after you press 'Enter'

Search function

python3 abbs.py search *searchterm*

Import csv file

python3 abbs.py csv [file]

Example for the syntax:

LAN,Local Area Network,network

Default csv-file is name 'csv-import.csv'. Optional choose another one via terminal.

delimiter: comma ',' - only one tag for now - no check for dublications (dublicates are getting updated)

TODO

Troubleshooting

module 'yaml' has no attribute 'FullLoader'

The 'Fullloader' class is only available in PyYAML 5.1 and later. You can check your current PyYAML version as followed:

python3
>>> import yaml
>>> yaml.__version__
'3.13'

You can update your version with pip:

pip3 install -U PyYAML