|
3 | 3 | [](https://pypi.org/project/fred-py-api/) |
4 | 4 | [](https://codecov.io/gh/zachspar/fred-py-api) |
5 | 5 |
|
6 | | -# Fred Python API |
7 | | -A fully-featured FRED Command Line Interface & Python API Wrapper. |
| 6 | +# Fred CLI & Python API |
| 7 | +A fully-featured FRED Command-Line Interface & Python API Wrapper. |
8 | 8 |
|
9 | | -### Documentation: |
10 | | - - [fred-py-api Docs](https://fred-py-api.readthedocs.io/en/latest/) |
| 9 | +## Python API Documentation: |
| 10 | +- [fred-py-api Docs](https://fred-py-api.readthedocs.io/en/latest/) |
11 | 11 |
|
12 | | -### Wiki: |
13 | | - - [fred-py-api Wiki](https://github.com/zachspar/fred-py-api/wiki) |
| 12 | +## Wiki: |
| 13 | +- [fred-py-api Wiki](https://github.com/zachspar/fred-py-api/wiki) |
14 | 14 |
|
15 | | -### FRED References: |
16 | | - - [Create an API Key Here](https://fredaccount.stlouisfed.org/apikey) |
17 | | - - [API Documentation](https://fred.stlouisfed.org/docs/api/fred/) |
| 15 | +## FRED References: |
| 16 | +- [Create an API Key Here](https://fredaccount.stlouisfed.org/apikey) |
| 17 | +- [API Documentation](https://fred.stlouisfed.org/docs/api/fred/) |
| 18 | + |
| 19 | +## Shell Auto-Completion: |
| 20 | +Fred CLI supports auto-completion for `zsh`, `bash` and `fish` shells. See instructions |
| 21 | +for each directly below. |
| 22 | + |
| 23 | +### `zsh` Completions |
| 24 | +Add this to `~/.zshrc` |
| 25 | +```zsh |
| 26 | +eval "$(_FRED_COMPLETE=zsh_source fred)" |
| 27 | +eval "$(_CATEGORIES_COMPLETE=zsh_source categories)" |
| 28 | +eval "$(_RELEASES_COMPLETE=zsh_source releases)" |
| 29 | +eval "$(_SERIES_COMPLETE=zsh_source series)" |
| 30 | +eval "$(_SOURCES_COMPLETE=zsh_source sources)" |
| 31 | +eval "$(_TAGS_COMPLETE=zsh_source tags)" |
| 32 | +``` |
| 33 | + |
| 34 | +### `bash` Completions |
| 35 | +Add this to `~/.bashrc` |
| 36 | +```bash |
| 37 | +eval "$(_FRED_COMPLETE=bash_source fred)" |
| 38 | +eval "$(_CATEGORIES_COMPLETE=bash_source categories)" |
| 39 | +eval "$(_RELEASES_COMPLETE=bash_source releases)" |
| 40 | +eval "$(_SERIES_COMPLETE=bash_source series)" |
| 41 | +eval "$(_SOURCES_COMPLETE=bash_source sources)" |
| 42 | +eval "$(_TAGS_COMPLETE=bash_source tags)" |
| 43 | +``` |
| 44 | + |
| 45 | +### `fish` Completions |
| 46 | +Add this to `~/.config/fish/completions/fred.fish` |
| 47 | +```fish |
| 48 | +_FRED_COMPLETE=fish_source fred | source |
| 49 | +_CATEGORIES_COMPLETE=fish_source categories | source |
| 50 | +_RELEASES_COMPLETE=fish_source releases | source |
| 51 | +_SERIES_COMPLETE=fish_source series | source |
| 52 | +_SOURCES_COMPLETE=fish_source sources | source |
| 53 | +_TAGS_COMPLETE=fish_source tags | source |
| 54 | +``` |
0 commit comments