Note: This guide is tailored on my preferences, e.g., I use conda.
Reference: https://packaging.python.org/guides/distributing-packages-using-setuptools/#create-an-account
Note: This guide is tailored on my preferences, e.g., I use conda.
Reference: https://packaging.python.org/guides/distributing-packages-using-setuptools/#create-an-account
| #!/usr/bin/env python | |
| import argparse | |
| import sys | |
| import jinja2 | |
| import markdown | |
| TEMPLATE = """<!DOCTYPE html> | |
| <html> |
| import numpy as np | |
| from scipy.sparse import csr_matrix | |
| import torch | |
| __author__ = 'Andrea Esuli' | |
| Acsr = csr_matrix([[1, 2, 0], [0, 0, 3], [4, 0, 5]]) | |
| print('Acsr',Acsr) | |
| Acoo = Acsr.tocoo() |
| Arg Name or Optional Flags: | |
| positional : str = "foo" | |
| options : str = "-f", "--foo" | |
| Standard: | |
| action : str = [store], append, store_true, store_false, store_const, append_const, version | |
| default : * = [None] | |
| type : callable = [str], argparse.FileType(mode='wb', bufsize=0) | |
| Exotic: |
| # Unicode character frequencies computed on dumps of all wikipedia languages (288) | |
| # Dumps downloader: https://github.com/aesuli/wikipediatools | |
| # Html converted to plain text: https://github.com/aesuli/wikipedia-extractor | |
| # | |
| # Andrea Esuli | |
| # http://www.esuli.it/ | |
| # | |
| #'char'<tab>ord(char)<tab>freq | |
| ' ' 32 6098823328 | |
| 'e' 101 3226481962 |