Commit Graph

139 Commits

Author SHA1 Message Date
Lucidiot 35dcbaba20
Bump to 0.4.6 2019-10-23 20:19:14 +02:00
Lucidiot d0f2c57282
Update docs 2019-10-23 20:16:48 +02:00
Lucidiot 3a9534ae9b
Allow filtering by data source when searching, close #32 2019-10-23 20:04:07 +02:00
Lucidiot f8e57e5c6d
Allow setup.py test to run pytest 2019-10-23 20:01:38 +02:00
Lucidiot efc28f0c4e
Warn about full and statistics reports on Branded Products database, closes #31 2019-10-23 19:53:50 +02:00
Lucidiot 1cfa9f46ef
Handle NDB numbers under 10000, close #33 2019-10-23 19:23:44 +02:00
Lucidiot 2c5157f2ff
Fix doc8 2019-10-23 08:53:19 +02:00
Lucidiot 4f8ea80877
Bump to 0.4.5 2019-10-23 08:50:19 +02:00
Lucidiot 6920e0fb61
Update README 2019-10-23 08:50:08 +02:00
Lucidiot 00a49b01f7
Fix tests 2019-10-23 08:35:21 +02:00
EL-S 96b970679f
Correct 'idv' misspelling to 'id' 2019-10-21 00:24:56 +11:00
EL-S 344d5635d2
Fix rare bug that was a result of missing keys
food_report = client.get_food_report(meal_data.id)
  File "venv\lib\site-packages\usda\client.py", line 195, in get_food_report
    self.get_food_report_raw(type=report_type.value, ndbno=ndb_food_id)
  File "venv\lib\site-packages\usda\domain.py", line 275, in from_response_data
    ListItem(fn['idv'], fn['desc']) for fn in report["footnotes"]
  File "venv\lib\site-packages\usda\domain.py", line 275, in <listcomp>
    ListItem(fn['idv'], fn['desc']) for fn in report["footnotes"]
KeyError: 'idv'

https://fdc.nal.usda.gov/fdc-app.html#/food-details/168204/nutrients
Bug can be found when trying to request the report for this product
2019-10-20 01:10:40 +11:00
Lucidiot 8abbea8160
Add doc8 2019-07-06 20:25:45 +02:00
Lucidiot 31d98f9d57
Add caching in .gitlab-ci.yml 2019-07-06 20:25:29 +02:00
Lucidiot a439ae27ab Bump to 0.4.4 2019-04-26 06:48:41 +00:00
Lucidiot 81f8aeade0 Merge branch 'report-type-enum' into 'master'
Parse report types as enum

See merge request Lucidiot/python-usda!25
2019-04-26 06:47:10 +00:00
Lucidiot 0c5fdd7ba9 Parse report types as enum 2019-04-26 08:45:43 +02:00
Lucidiot ac81c625a3 Add badges to Sphinx docs, close #25 2019-04-26 08:36:02 +02:00
Lucidiot 94dc7f0773 Merge branch 'fix-pagination-offset' into 'master'
Fix pagination with offset

Closes #28

See merge request Lucidiot/python-usda!24
2019-04-26 06:34:59 +00:00
Lucidiot 052a01ae46 Fix pagination with offset 2019-04-26 08:22:52 +02:00
Lucidiot 1b659973f4 Add failing tests for pagination with offset 2019-04-26 08:22:38 +02:00
Lucidiot d78fc11194 Merge branch 'update-api-root' into 'master'
Update API root URL

Closes #26

See merge request Lucidiot/python-usda!23
2019-04-04 16:16:39 +00:00
Lucidiot 95a753c6a9
Bump to 0.4.3 2019-04-04 18:11:49 +02:00
Lucidiot da10e8b5d4
Remove UsdaApis enum and update API root 2019-04-04 18:11:42 +02:00
Lucidiot 866b857175
Update docs config 2018-10-27 15:40:54 +02:00
Lucidiot 324ecf5692
Bump to 0.4.2 and use VERSION file 2018-10-26 22:07:57 +02:00
Lucidiot aa064ef7a4 Merge branch 'sphinx-docs' into 'master'
Sphinx docs

Closes #23

See merge request Lucidiot/python-usda!22
2018-10-26 20:03:22 +00:00
Lucidiot a3ac976c13
Add the Nutritional Database API Guide 2018-10-26 22:02:27 +02:00
Lucidiot 7bf66d06fc
Little fixes 2018-10-26 19:40:23 +02:00
Lucidiot a926fb4c42
Add a quick tutorial 2018-10-26 19:31:12 +02:00
Lucidiot 3658e60209 Reorganize the API Reference page 2018-10-26 16:04:52 +02:00
Lucidiot 1a16987b46 Fix Flake8 2018-10-26 15:51:34 +02:00
Lucidiot c3c9395d6d
Write docstrings 2018-10-26 08:29:16 +02:00
Lucidiot ed521c8c60
Add Sphinx requirement 2018-10-26 08:29:09 +02:00
Lucidiot 0a50376cda
Add a GitLab Pages job to CI 2018-10-26 08:28:56 +02:00
Lucidiot 2818d16c91
Write reST docs 2018-10-26 08:28:44 +02:00
Lucidiot 5b116c2f4e
Fixes 2018-10-20 23:57:52 +02:00
Lucidiot 6f99991deb
Convert to reST for readthedocs 2018-10-20 23:52:04 +02:00
Lucidiot 73cf14a666
Fix README.md
Add parentheses to the print statement (we no longer use python 2!)
2018-10-20 23:00:46 +02:00
Lucidiot 8e15e5e527
Fix testpypi job 2018-10-20 22:50:24 +02:00
Lucidiot 092ea0ba66
Add deploy jobs 2018-10-20 22:48:21 +02:00
Lucidiot b78958c94b
Add Python 3.7 official support 2018-10-20 22:48:15 +02:00
Lucidiot f400a70127
Migrate to GitLab 2018-08-26 22:19:36 +02:00
Lucidiot c08c65e353
Add link to documentation, close #4
[skip ci]
2018-07-27 19:49:33 +02:00
Lucidiot f2ee88e356
Bump version number 2018-07-17 20:16:55 +02:00
Lucidiot 2a38067eb2
Merge pull request #21 from Lucidiot/fixes
Fixes
2018-07-17 20:15:41 +02:00
Lucidiot 66a51005bc
Fix PyPI description not showing up in Markdown 2018-07-17 20:10:28 +02:00
Lucidiot 7c8fd3f989
Fix KeyError on search with empty results, close #20 2018-07-17 20:09:17 +02:00
Lucidiot 4a96b47ebe
Bump version number 2018-07-14 12:14:19 +02:00
Lucidiot fd54284b53
Merge pull request #19 from Lucidiot/foodreport-v2
Food Report version 2
2018-07-14 12:08:14 +02:00