GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing cemac.github.io — Information on Packaging up Python — cemac.github.io user documentation Information on Packaging up Pythonin progress Docstring exampleHere’s example python doc string, containing information on the project i.e. a link to the funder, the fact it was done by CEMAC and therefore credit the university. Remember to include the scientists names that this is for or who started the work or initiated the science behind the code. Here the doc-string follows a PEP 257
convention. Essentially use this formatting and users of the code will be able
to perform """mypythonmodule a box This module was developed by CEMAC (Leeds University) as part of the XXXX Project. This scripts build on Work done by XXXX, doing this task and using this information. Example: To use:: import mypythonmodule c = mypythonmodule(arg1, arg2, arg3, karg=Val) Attributes: dataroot(str): A string containing path to data constant(float): A variable defined e.g. gravity 9.81 m/s**2 .. CEMAC_mypythonmodule: https://github.com/cemac/mypythonmodules_repo """ PackagingBASICAt the very least setting up a requirements.txt should done Method 1 - Conda
Method 2 - Pipenv James’s prefered method, use pipenv which creates a pip.lock file. NB, some packages such as iris are not pip installable, most notably iris and conda install tend to be slightly faster. |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |