devel:brewerjsonpythonmodule
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
devel:brewerjsonpythonmodule [2016/05/18 20:13] – ajberjon | devel:brewerjsonpythonmodule [2016/05/18 20:31] – ajberjon | ||
---|---|---|---|
Line 28: | Line 28: | ||
^ [[devel: | ^ [[devel: | ||
^ [[devel: | ^ [[devel: | ||
+ | |||
=== getDataList() === | === getDataList() === | ||
Line 38: | Line 39: | ||
^ ' | ^ ' | ||
^ ' | ^ ' | ||
- | ^ 'ConfigsbyDate' | + | ^ 'ConfigbyDate' | [[http:// |
**Example** | **Example** | ||
Line 46: | Line 47: | ||
d1=datetime.date(2014, | d1=datetime.date(2014, | ||
d2=datetime.date(2014, | d2=datetime.date(2014, | ||
- | data=brewerjson.getDataList(37,' | + | data=brewerjson.getDataList(185,' |
- | === getdata() === | ||
- | This function retrieves brewer data using the interface described in the [[codes: | + | === writejson() === |
- | **Example** | + | This function |
- | import brewerjson | + | |
- | import datetime | + | |
- | + | ||
- | params={} | + | |
- | params[' | + | |
- | params[' | + | |
- | params[' | + | |
- | params[' | + | |
- | params[' | + | |
- | data=brewerjson.getdata(params) | + | |
- | + | ||
- | In this example we retrieve data from the url: http:// | + | |
- | + | ||
- | This function | + | |
- | + | ||
- | + | ||
- | + | ||
- | === formatConfig() === | + | |
- | + | ||
- | This function returns | + | |
**Example** | **Example** | ||
Line 78: | Line 58: | ||
import datetime | import datetime | ||
| | ||
- | | + | |
- | | + | |
- | params[' | + | data=brewerjson.getDataList(185,' |
- | params[' | + | brewerjson.getdata(data,' |
- | params[' | + | |
- | params[' | + | |
- | data=brewerjson.getdata(params) | + | |
- | | + | |
+ | This function accepts two input parameters: //' | ||
- | === formatDS() === | + | * //' |
+ | * //' | ||
- | This function returns a [[ http:// | ||
- | **Example** | + | === getdata() === |
- | import brewerjson | + | |
- | import datetime | + | |
- | + | ||
- | params={} | + | |
- | params[' | + | |
- | params[' | + | |
- | params[' | + | |
- | params[' | + | |
- | params[' | + | |
- | data=brewerjson.getdata(params) | + | |
- | ds = brewerjson.formatDS(data) | + | |
- | + | ||
- | + | ||
- | === formatUV() === | + | |
- | This function | + | This function |
**Example** | **Example** | ||
Line 114: | Line 77: | ||
import datetime | import datetime | ||
| | ||
- | | + | brewerjson.getdata('input.txt') |
- | params[' | + | |
- | params[' | + | |
- | params[' | + | |
- | params[' | + | |
- | params[' | + | |
- | data=brewerjson.getdata(params) | + | |
- | uv = brewerjson.formatUV(data) | + | |
- | === formatUVR() === | ||
- | |||
- | This function returns a [[ http:// | ||
- | |||
- | **Example** | ||
- | import brewerjson | ||
- | import datetime | ||
- | | ||
- | params={} | ||
- | params[' | ||
- | params[' | ||
- | params[' | ||
- | params[' | ||
- | params[' | ||
- | data=brewerjson.getdata(params) | ||
- | uvr = brewerjson.formatUVR(data) | ||
devel/brewerjsonpythonmodule.txt · Last modified: 2022/10/20 08:00 by 127.0.0.1