Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Derivatives #151

Merged
merged 13 commits into from Oct 1, 2017

Conversation

@stijnvanhoey
Copy link
Member

stijnvanhoey commented Oct 1, 2017

  • add the ability to create the simple dwc-term list/header
  • provides support to the namespace abbreviations, which can be used in the template
  • some improvements to make sure the class structure handling makes sense
  • update docstrings of the public and private methods

Hence, the building of the html, simple-dwc-terms header and simple-dwc-terms list is available now. It can be used inside Python:

from build import DwcDigester

config_terms_file = "./config/terms.csv" # or the raw-github link
term_versions_file = "../vocabulary/term_versions.csv"

my_dwc = DwcDigester(term_versions_file, config_terms_file)
my_dwc.create_html("./config/index.tmpl", "../guides/index.html")  # create html from template
my_dwc.create_dwc_header("../dist/simple_dwc_horizontal.csv")  # create header
my_dwc.create_dwc_list("../dist/simple_dwc_vertical.csv")  # create list

together with other utilities, e.g. get simple dwc terms list:

my_dwc.simple_dwc_terms()

Or you can run it from the command line, with all the defaults provided:

python build.py
@tucotuco tucotuco merged commit fe27b93 into master Oct 1, 2017
@peterdesmet peterdesmet deleted the derivatives branch Oct 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.