Commit 3513e02
Feature/cli (#26)
* boilerplate cli
* wrap sources cli
* Feature/required args (#10)
* create api decorator to check valid args
* format files
* add args validation for releases
* add api arg validator for categories
* update required args for categories namespace
* add required args to tags namespace
* add validate args to sources apis
* add arg validation to series namespace
* add required args for series apis
* finish base implementation of all APIs, closes issue #4
* bump fred-py-api to 0.0.5 and update readme to point to wiki
* Create dependabot.yml
* Delete dependabot.yml
* Feature/test suite (#11)
* basic tests for categories namespace
* add basic tests for tags api
* add basic tests for sources api namespace
* create basic tests for releases api namespace
* add basic tests for series api namespace
* create test for decorators
* use src for tests
* first full test-suite of basic API functionality, closes issue #8
* new CI for lint and test package
* upgrade black in CI, use fred api key from GH secrets
* reformat files
* update CI only test for 3.9 & 3.10
* only run CI with python 3.10.x
* run ci using coverage
* add coverage upload
* add new job skeleton to CI
* upload to PyPI when publishing new release/prerelease
* Feature/test suite (#14)
* basic tests for categories namespace
* add basic tests for tags api
* add basic tests for sources api namespace
* create basic tests for releases api namespace
* add basic tests for series api namespace
* create test for decorators
* use src for tests
* first full test-suite of basic API functionality, closes issue #8
* new CI for lint and test package
* upgrade black in CI, use fred api key from GH secrets
* reformat files
* update CI only test for 3.9 & 3.10
* only run CI with python 3.10.x
* run ci using coverage
* add coverage upload
* add new job skeleton to CI
* upload to PyPI when publishing new release/prerelease
* update readme
* 0.0.7-Alpha (#16)
* add FRED urls to python docstrings
* update readme
* bump lib
* fix issue #15 by enforcing API length
* check alnum
* update tests
* reformat file
* rename top level packagename to fred
* bump lib (#17)
* Add support for XML `file_type` (#18)
* add XML support, and associated test
* bump lib version to v0.1.1
* move cli library
* cli WIP
* general idea of FRED cli, WIP
* variadic api arguments and kwargs generator, import cleanups
* re-organize internal util module
* full CLI project skeleton with some working examples
* json dump string in sources CLI
* restructure tests module
* adding dummy test case for codecov
* adding dummy test case for codecov
* reformat file
* update ci to run coverage with src
* add test for generate_api_kwargs cli utility
* Added JSON CLI commands for each command
* update tests module to use installed fred library
* update local requirements
* update cli code slightly
* update pyproject.toml to include new deps and script entrypoints
* update README to include CLI
* update github ci workflow to include editable install
* Fixed many issues in code review, still need 4 utility functions, few changes needed
* update a few args, docstrings, and file format
* Adding basic testing structure for sources cli
* wip series test cases
* refactor fred cli entry point
* refactor common test case logic
* refactor and fix existing api tests
* fix api key mock for cli tests
* update ci workflow
* slight refactor to base fred client test setup
* allow for more testing constraints in base framework
* wip series cli tests
* omit test
* add all basic tests for releases namespace
* add missing test to releases namespace
* finish up all basic tests for series cli
* add support for XML output in CLI
* Added CLI test cases for sources, tags, categories
* reformat files
* fix up some broken tests
* add new test for CLI entry point
* optimize imports
* update codecoverage omit files, and CI
* fix CI
* ignore unnecessary files in codecov
* update pyproject.toml description
Co-authored-by: Zachary Spar <[email protected]>
Co-authored-by: Zachary Spar <[email protected]>1 parent c15b84d commit 3513e02
File tree
32 files changed
+1624
-62
lines changed- .github/workflows
- src/fred
- _util
- api
- cli
- tests
- api
- cli
32 files changed
+1624
-62
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| 24 | + | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| |||
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
| 37 | + | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
38 | 42 | | |
39 | 43 | | |
40 | 44 | | |
41 | | - | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
2 | 5 | | |
3 | 6 | | |
4 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
5 | 13 | | |
6 | 14 | | |
7 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | | - | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | | - | |
15 | 13 | | |
16 | 14 | | |
17 | 15 | | |
| |||
26 | 24 | | |
27 | 25 | | |
28 | 26 | | |
29 | | - | |
30 | | - | |
31 | 27 | | |
32 | 28 | | |
33 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
0 commit comments