ebird-cli 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ebird_cli/__init__.py +0 -0
- ebird_cli/cli/__init__.py +3 -0
- ebird_cli/cli/autocomplete.py +30 -0
- ebird_cli/cli/command.py +150 -0
- ebird_cli/cli/grammar.py +197 -0
- ebird_cli/domain/__init__.py +4 -0
- ebird_cli/domain/fields.py +20 -0
- ebird_cli/domain/observation.py +21 -0
- ebird_cli/domain/region.py +6 -0
- ebird_cli/domain/regional_scopes.py +9 -0
- ebird_cli/domain/taxonomy.py +36 -0
- ebird_cli/domain/taxonomy_cache.py +9 -0
- ebird_cli/download_lists.py +52 -0
- ebird_cli/main.py +252 -0
- ebird_cli/services/__init__.py +4 -0
- ebird_cli/services/cache.py +55 -0
- ebird_cli/services/dataframe.py +14 -0
- ebird_cli/services/ebird_client.py +111 -0
- ebird_cli/services/location_catalogue.py +121 -0
- ebird_cli/services/observation_query.py +102 -0
- ebird_cli/services/printing.py +53 -0
- ebird_cli/services/taxonomy.py +18 -0
- ebird_cli/utils/__init__.py +0 -0
- ebird_cli/utils/logger.py +17 -0
- ebird_cli-0.1.0.dist-info/METADATA +292 -0
- ebird_cli-0.1.0.dist-info/RECORD +30 -0
- ebird_cli-0.1.0.dist-info/WHEEL +5 -0
- ebird_cli-0.1.0.dist-info/entry_points.txt +3 -0
- ebird_cli-0.1.0.dist-info/licenses/LICENSE +21 -0
- ebird_cli-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
from rich.console import Console, Text
|
|
2
|
+
from rich.table import Table
|
|
3
|
+
|
|
4
|
+
from ..domain.fields import ExportFields
|
|
5
|
+
from .dataframe import DataFrameService
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class PrintingService(DataFrameService):
|
|
9
|
+
def __init__(self, life_list: str | None, year_list: str | None, console: Console | None = None):
|
|
10
|
+
self.life_list = self.get_dataframe(life_list) if life_list else None
|
|
11
|
+
self.year_list = self.get_dataframe(year_list) if year_list else None
|
|
12
|
+
self.console = console or Console()
|
|
13
|
+
|
|
14
|
+
def print_observations(self, observations: list):
|
|
15
|
+
table = Table()
|
|
16
|
+
|
|
17
|
+
table.add_column("Date", style="magenta")
|
|
18
|
+
table.add_column("Observation")
|
|
19
|
+
table.add_column("Location")
|
|
20
|
+
|
|
21
|
+
regions = {obs.subname for obs in observations}
|
|
22
|
+
show_region = len(regions) > 1
|
|
23
|
+
|
|
24
|
+
if show_region:
|
|
25
|
+
table.add_column("Region")
|
|
26
|
+
|
|
27
|
+
for observation in observations:
|
|
28
|
+
row = (observation.observation_date, self.get_observation_text(observation), observation.location)
|
|
29
|
+
if show_region:
|
|
30
|
+
row += (observation.subname,)
|
|
31
|
+
table.add_row(*row)
|
|
32
|
+
|
|
33
|
+
print()
|
|
34
|
+
self.console.print(table)
|
|
35
|
+
print()
|
|
36
|
+
print(f"Total: {len(observations)}")
|
|
37
|
+
|
|
38
|
+
def get_observation_text(self, observation):
|
|
39
|
+
is_year_target = False
|
|
40
|
+
is_life_target = False
|
|
41
|
+
if self.year_list is not None:
|
|
42
|
+
is_year_target = not (self.year_list[ExportFields.common_name] == observation.name).any()
|
|
43
|
+
if self.life_list is not None:
|
|
44
|
+
is_life_target = not (self.life_list[ExportFields.common_name] == observation.name).any()
|
|
45
|
+
|
|
46
|
+
if is_life_target:
|
|
47
|
+
style = "red"
|
|
48
|
+
elif is_year_target:
|
|
49
|
+
style = "green"
|
|
50
|
+
else:
|
|
51
|
+
style = "white"
|
|
52
|
+
|
|
53
|
+
return Text(observation.name, style)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from ..domain.fields import EbirdFields
|
|
2
|
+
from ..domain.taxonomy_cache import TaxonomyCache
|
|
3
|
+
from .dataframe import DataFrameService
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class TaxonomyService(DataFrameService):
|
|
7
|
+
def __init__(self, taxonomy_cache: TaxonomyCache):
|
|
8
|
+
self.taxonomy_cache = taxonomy_cache
|
|
9
|
+
|
|
10
|
+
def search_by_common_name(self, name: str) -> list[str]:
|
|
11
|
+
df = self.taxonomy_cache.national
|
|
12
|
+
matches = df[df[EbirdFields.common_name].str.contains(name, na=False, case=False)]
|
|
13
|
+
return matches[EbirdFields.common_name].to_list()
|
|
14
|
+
|
|
15
|
+
def get_species_code(self, common_name: str) -> list[str]:
|
|
16
|
+
df = self.taxonomy_cache.national
|
|
17
|
+
matches = df[df[EbirdFields.common_name] == common_name]
|
|
18
|
+
return matches[EbirdFields.species_code].to_list()
|
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import logging
|
|
2
|
+
import os
|
|
3
|
+
|
|
4
|
+
from appdirs import user_log_dir
|
|
5
|
+
|
|
6
|
+
logger = logging.getLogger("ebird_cli_logger")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def configure_logging(log_dir: str | None = None):
|
|
10
|
+
"""Append the app log to app.log in log_dir, the user log directory by default. Called at launch, not import."""
|
|
11
|
+
log_dir = log_dir or user_log_dir("ebird_cli")
|
|
12
|
+
os.makedirs(log_dir, exist_ok=True)
|
|
13
|
+
|
|
14
|
+
handler = logging.FileHandler(os.path.join(log_dir, "app.log"), mode="a", encoding="utf-8")
|
|
15
|
+
handler.setFormatter(logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s"))
|
|
16
|
+
logger.addHandler(handler)
|
|
17
|
+
logger.setLevel(logging.DEBUG)
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ebird-cli
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A command-line interface for exploring eBird bird observation data.
|
|
5
|
+
Author-email: Kevin Verreault <dev@kevinverreault.com>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/kevinverreault/ebird-cli
|
|
8
|
+
Project-URL: Repository, https://github.com/kevinverreault/ebird-cli
|
|
9
|
+
Project-URL: Issues, https://github.com/kevinverreault/ebird-cli/issues
|
|
10
|
+
Classifier: Environment :: Console
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
14
|
+
Requires-Python: >=3.11
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
License-File: LICENSE
|
|
17
|
+
Requires-Dist: appdirs>=1.4.4
|
|
18
|
+
Requires-Dist: certifi>=2024.8.30
|
|
19
|
+
Requires-Dist: colorama>=0.4.6
|
|
20
|
+
Requires-Dist: ebird-api<4,>=3.0.6
|
|
21
|
+
Requires-Dist: pandas>=2.2.3
|
|
22
|
+
Requires-Dist: prompt_toolkit>=3.0.48
|
|
23
|
+
Requires-Dist: requests>=2.32.3
|
|
24
|
+
Requires-Dist: rich>=13.9.4
|
|
25
|
+
Dynamic: license-file
|
|
26
|
+
|
|
27
|
+
# eBird CLI
|
|
28
|
+
|
|
29
|
+
A command-line interface for exploring eBird bird observation data.
|
|
30
|
+
|
|
31
|
+

|
|
32
|
+
|
|
33
|
+
## Prerequisites
|
|
34
|
+
|
|
35
|
+
- Python 3.11+
|
|
36
|
+
- eBird API Key (obtainable with free eBird account)
|
|
37
|
+
|
|
38
|
+
## Installation
|
|
39
|
+
|
|
40
|
+
1. Clone the repository
|
|
41
|
+
2. Set up a virtual environment
|
|
42
|
+
3. Install the `ebird-cli` command from the checkout:
|
|
43
|
+
```bash
|
|
44
|
+
pip install .
|
|
45
|
+
```
|
|
46
|
+
4. Configure your eBird API key
|
|
47
|
+
|
|
48
|
+
## Configuration
|
|
49
|
+
|
|
50
|
+
### Command-Line Arguments
|
|
51
|
+
|
|
52
|
+
The CLI supports the following arguments:
|
|
53
|
+
|
|
54
|
+
| Argument | Description | Default | Required |
|
|
55
|
+
| ---------------- | ------------------------------------- | --------------------------------- | -------- |
|
|
56
|
+
| `--api-key` | eBird API key | From `EBIRDAPIKEY` env var | **Yes** |
|
|
57
|
+
| `--region` | eBird subnational level 2 region code | From `EBIRDDEFAULTREGION` env var | **Yes** |
|
|
58
|
+
| `--locale` | Language locale | From `EBIRDLOCALE` (or `fr`) | No |
|
|
59
|
+
| `--lat` | Latitude | From `EBIRDLAT` env var | No |
|
|
60
|
+
| `--long` | Longitude | From `EBIRDLONG` env var | No |
|
|
61
|
+
| `--year-list` | Path to year observations list | From `EBIRDYEARLIST` env var | No |
|
|
62
|
+
| `--life-list` | Path to lifetime observations list | From `EBIRDLIFELIST` env var | No |
|
|
63
|
+
| `--aggregations` | Path to aggregations JSON file | From `EBIRDAGGREGATIONS` env var | No |
|
|
64
|
+
|
|
65
|
+
### Environment Variables
|
|
66
|
+
|
|
67
|
+
You can configure the CLI using the following environment variables to avoid manual parameter entry:
|
|
68
|
+
|
|
69
|
+
- `EBIRDAPIKEY`: Your eBird API key
|
|
70
|
+
- `EBIRDDEFAULTREGION`: Default region for default search and hotspots filtering (`CA-QC-MR`)
|
|
71
|
+
- `EBIRDLOCALE`: Preferred language locale (`fr`)
|
|
72
|
+
- `EBIRDLAT`: Latitude for location-based searches (`47.87`)
|
|
73
|
+
- `EBIRDLONG`: Longitude for location-based searches (`-72.17`)
|
|
74
|
+
- `EBIRDYEARLIST`: Path to your year observations list (`~/ebird_data/year_list.csv`)
|
|
75
|
+
- `EBIRDLIFELIST`: Path to your lifetime observations list (`~/ebird_data/life_list.csv`)
|
|
76
|
+
- `EBIRDAGGREGATIONS`: Path to your aggregations JSON file (`~/ebird_data/aggregations.json`)
|
|
77
|
+
|
|
78
|
+
## Usage
|
|
79
|
+
|
|
80
|
+
### Launching the CLI
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
ebird-cli --api-key <ebird-api-key> --region <region-code> [optional arguments]
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
`ebird-cli --version` prints the installed version.
|
|
87
|
+
|
|
88
|
+
### Available Commands
|
|
89
|
+
|
|
90
|
+
When launched, the CLI will display a menu of available commands:
|
|
91
|
+
|
|
92
|
+
- `recent <scope, -region> [-back, -species]`: Fetch recent bird observations
|
|
93
|
+
- `notable <scope, -region> [-back]`: Fetch notable bird observations
|
|
94
|
+
|
|
95
|
+
### Autocompletion
|
|
96
|
+
|
|
97
|
+
Suggestions appear as you type: command names, scopes, flags, region names for the chosen scope, species names and `-back` values. Press Tab to accept the first suggestion, or press it again to cycle through them.
|
|
98
|
+
|
|
99
|
+

|
|
100
|
+
|
|
101
|
+
### Search Scopes
|
|
102
|
+
|
|
103
|
+
Bird observations can be searched in multiple scopes.
|
|
104
|
+
|
|
105
|
+
1. **Nearby**: Based on provided latitude and longitude
|
|
106
|
+
- Requires `--lat` and `--long` program arguments
|
|
107
|
+
- Shows observations near the specified geographic coordinates
|
|
108
|
+
- `recent nearby`
|
|
109
|
+
|
|
110
|
+
2. **Hotspot**: eBird-defined hotspots
|
|
111
|
+
- `recent hotspot -region Dunes de Tadoussac`
|
|
112
|
+
|
|
113
|
+
3. **Regional**: eBird Subnational Level 2
|
|
114
|
+
- `recent regional -region Montréal`
|
|
115
|
+
|
|
116
|
+
4. **Subnational**: eBird Subnational Level 1
|
|
117
|
+
- `recent subnational -region Québec`
|
|
118
|
+
|
|
119
|
+
The `-region` flag supports context-sensitive autocompletion based on the selected scope. If no `-region` flag is provided, default region will be used.
|
|
120
|
+
|
|
121
|
+

|
|
122
|
+
|
|
123
|
+
### Search length
|
|
124
|
+
|
|
125
|
+
Use the optional `-back` parameter to change the number of days back to fetch observations.
|
|
126
|
+
|
|
127
|
+
- Values: from 1 to 30
|
|
128
|
+
- Default: 7
|
|
129
|
+
|
|
130
|
+
```
|
|
131
|
+
notable subnational -region Québec -back 30
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### Aggregations
|
|
135
|
+
|
|
136
|
+
Aggregations allow you to define custom named groups of hotspots that appear alongside eBird hotspots when using the `hotspot` scope. This is useful for combining multiple nearby locations under a single name.
|
|
137
|
+
|
|
138
|
+
Provide the path to your aggregations file via `--aggregations` or the `EBIRDAGGREGATIONS` environment variable:
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
ebird-cli --api-key <key> --region <region> --aggregations ~/ebird_data/aggregations.json
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
The aggregations file is a JSON array where each element maps a custom name to a list of eBird location IDs:
|
|
145
|
+
|
|
146
|
+
```json
|
|
147
|
+
[
|
|
148
|
+
{
|
|
149
|
+
"Technoparc": ["L9980102", "L4886900", "L11363355"]
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
Once configured, aggregation names are available in the `-region` autocomplete when using the `hotspot` scope:
|
|
155
|
+
|
|
156
|
+
```
|
|
157
|
+
recent hotspot -region Technoparc
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
### Species filter
|
|
161
|
+
|
|
162
|
+
Use the optional `-species` flag with the `recent` command to filter observations to a single species.
|
|
163
|
+
|
|
164
|
+
```
|
|
165
|
+
recent nearby -species Canard colvert
|
|
166
|
+
recent regional -region Montréal -species Harfang des neiges
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
The `-species` flag supports context-sensitive autocompletion using the cached taxonomy. Start typing a common name and press Tab to see matching species.
|
|
170
|
+
|
|
171
|
+

|
|
172
|
+
|
|
173
|
+
> **Note:** Autocompletion and lookup use the locale specified by `--locale` / `EBIRDLOCALE`. Species names must be typed in the configured locale.
|
|
174
|
+
|
|
175
|
+
### List highlighting
|
|
176
|
+
|
|
177
|
+
When using `--year-list` and `--life-list`:
|
|
178
|
+
|
|
179
|
+
- Year list targets are highlighted in **green**
|
|
180
|
+
- Life list targets are highlighted in **red**
|
|
181
|
+
|
|
182
|
+
### Obtaining list files
|
|
183
|
+
|
|
184
|
+
The eBird API does not expose life list or year list data, so these CSV files must be downloaded from the eBird website. The `ebird-cli-download-lists` command, installed alongside `ebird-cli`, downloads both into `output_dir` as `life_list.csv` and `year_list.csv`:
|
|
185
|
+
|
|
186
|
+
```bash
|
|
187
|
+
ebird-cli-download-lists session_id output_dir
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
This requires a valid eBird session cookie (`EBIRD_SESSIONID`), which can be obtained from your browser after logging in to ebird.org. The command must be re-run whenever your lists change.
|
|
191
|
+
|
|
192
|
+
> **Note:** The life list only changes when you see a species for the first time ever, making it infrequent and easy to manage. The year list changes with every new species seen in the current year and resets annually, requiring more frequent re-runs of the command.
|
|
193
|
+
|
|
194
|
+
## Data cache
|
|
195
|
+
|
|
196
|
+
To avoid redundant API calls to eBird, the CLI caches reference data locally on first run. The cache is stored in the platform-appropriate user cache directory (e.g. `%LOCALAPPDATA%\ebird_cli\Cache\ebird_cli` on Windows, `~/.cache/ebird_cli` on Linux/macOS).
|
|
197
|
+
|
|
198
|
+
The following data is cached:
|
|
199
|
+
|
|
200
|
+
- **Location data** (per region): subnational level 1 regions, subnational level 2 regions, and every hotspot in the subnational region — stored as JSON files under `location/<national>/` and `location/<national>/<subnational>/`
|
|
201
|
+
- **Taxonomy** (per locale and national region): the full eBird taxonomy filtered to species observed in the configured country — stored as CSV files under `taxonomy/<national>/`
|
|
202
|
+
|
|
203
|
+
Hotspots are fetched again on launch once their cached file is more than 30 days old, so new hotspots appear; if eBird can't be reached, the older file is used. All other cached data is written once and reused on every subsequent launch. To force a refresh (e.g. after a new eBird taxonomy release or a region change), delete the relevant files or the entire cache directory.
|
|
204
|
+
|
|
205
|
+
## Log file
|
|
206
|
+
|
|
207
|
+
Each launch appends debug messages to `app.log` in the platform-appropriate user log directory, created on first launch:
|
|
208
|
+
|
|
209
|
+
- Windows: `%LOCALAPPDATA%\ebird_cli\ebird_cli\Logs\app.log`
|
|
210
|
+
- Linux: `~/.cache/ebird_cli/log/app.log` (under `$XDG_CACHE_HOME` instead of `~/.cache` when it is set)
|
|
211
|
+
- macOS: `~/Library/Logs/ebird_cli/app.log`
|
|
212
|
+
|
|
213
|
+
The file is never rotated or trimmed; delete it at any time.
|
|
214
|
+
|
|
215
|
+
## Development setup
|
|
216
|
+
|
|
217
|
+
### Virtual environment
|
|
218
|
+
|
|
219
|
+
1. Activate the virtual environment:
|
|
220
|
+
- On Windows: `venv\Scripts\activate`
|
|
221
|
+
- On macOS/Linux: `source venv/bin/activate`
|
|
222
|
+
|
|
223
|
+
2. Install the project in editable mode with the dev tools (`requirements-dev.txt` adds the test, lint and build tools to the pinned runtime dependencies):
|
|
224
|
+
```bash
|
|
225
|
+
pip install -e . -r requirements-dev.txt
|
|
226
|
+
```
|
|
227
|
+
The tests read the version from the installed package, so they need this editable install.
|
|
228
|
+
|
|
229
|
+
### Tests
|
|
230
|
+
|
|
231
|
+
The test suite runs offline: it never calls the eBird API, needs no API key and never touches your user cache or log directory.
|
|
232
|
+
|
|
233
|
+
```bash
|
|
234
|
+
python -m pytest
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
Tests live in `tests/`, mirroring the source layout:
|
|
238
|
+
|
|
239
|
+
- `tests/cli/`: the `recent` and `notable` commands and autocompletion, driven through their public entry points
|
|
240
|
+
- `tests/services/`, `tests/domain/`: cache, location and taxonomy services and domain value parsing
|
|
241
|
+
- `tests/utils/`: where the app log is written
|
|
242
|
+
- `tests/test_prompt_dispatch.py`, `tests/test_program_arguments.py`: prompt input handling and program arguments
|
|
243
|
+
- `tests/conftest.py`: shared fixtures, including `make_cli`, which wires real services and commands the way `main` does
|
|
244
|
+
- `tests/fakes.py`: the in-memory fake eBird client, the only test double
|
|
245
|
+
- `tests/fixtures/`: small hand-written cache, list and aggregation files for the `CA-QC-MR` region
|
|
246
|
+
|
|
247
|
+
Tests named `..._currently_...` pin behaviour that looks accidental, so changing it is a deliberate test change.
|
|
248
|
+
|
|
249
|
+
### Demo GIFs
|
|
250
|
+
|
|
251
|
+
The GIFs in this README are recorded with [VHS](https://github.com/charmbracelet/vhs) from the tapes in `docs/demo/`. They call the live eBird API, so they need your API key and environment variables set. `config.tape` holds the shared settings and launches the CLI out of frame.
|
|
252
|
+
|
|
253
|
+
On Windows, install VHS and its terminal dependency, then re-record a GIF from the repository root:
|
|
254
|
+
|
|
255
|
+
```bash
|
|
256
|
+
winget install charmbracelet.vhs tsl0922.ttyd
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
```bash
|
|
260
|
+
vhs docs/demo/overview.tape
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
VHS also needs `ffmpeg` on the `PATH`.
|
|
264
|
+
|
|
265
|
+
### Cutting a release
|
|
266
|
+
|
|
267
|
+
Releases are published to [PyPI](https://pypi.org/project/ebird-cli/) by the `Release` workflow (`.github/workflows/release.yml`) through trusted publishing; no API token is involved.
|
|
268
|
+
|
|
269
|
+
1. Bump `version` in `pyproject.toml` and merge it to `main`.
|
|
270
|
+
2. Optionally, do a dry run: run the `Release` workflow manually from the Actions tab. It uploads that version to [TestPyPI](https://test.pypi.org/project/ebird-cli/), which accepts each version only once. Check the upload installs:
|
|
271
|
+
```bash
|
|
272
|
+
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ ebird-cli
|
|
273
|
+
```
|
|
274
|
+
3. Tag the release commit `vX.Y.Z`, matching the version, and push the tag.
|
|
275
|
+
4. Publish a GitHub release from that tag. The workflow uploads it to PyPI, and fails without uploading if the tag doesn't match the version in `pyproject.toml`.
|
|
276
|
+
|
|
277
|
+
## Credits
|
|
278
|
+
|
|
279
|
+
Bird observation data and the eBird platform are provided by the [Cornell Lab of Ornithology](https://www.birds.cornell.edu/). This project would not be possible without their freely available [eBird API](https://documenter.getpostman.com/view/664302/S1ENwy59).
|
|
280
|
+
|
|
281
|
+
This project relies on the following open-source packages:
|
|
282
|
+
|
|
283
|
+
- [ebird-api](https://pypi.org/project/ebird-api/) — Python wrapper for the eBird API
|
|
284
|
+
- [prompt_toolkit](https://python-prompt-toolkit.readthedocs.io/) — Interactive command-line interface with autocompletion
|
|
285
|
+
- [rich](https://rich.readthedocs.io/) — Terminal formatting and highlighted output
|
|
286
|
+
- [pandas](https://pandas.pydata.org/) — CSV observation list parsing
|
|
287
|
+
- [colorama](https://pypi.org/project/colorama/) — Cross-platform terminal color support
|
|
288
|
+
- [requests](https://requests.readthedocs.io/) — HTTP requests to the eBird API
|
|
289
|
+
|
|
290
|
+
## License
|
|
291
|
+
|
|
292
|
+
MIT License
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
ebird_cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
ebird_cli/download_lists.py,sha256=y8jwB_fQuX11qEbJI_zovixpo7E1gqmD5p6tquT_PFc,1483
|
|
3
|
+
ebird_cli/main.py,sha256=gBexi6LuOg3Z9Cr42GU39xtx1JG3ZvrYGpBt9MMO2nk,7579
|
|
4
|
+
ebird_cli/cli/__init__.py,sha256=xF6fPmoFZiml3nqhp0hnPSHRP2rfzU-_Xwvf98LYx70,93
|
|
5
|
+
ebird_cli/cli/autocomplete.py,sha256=XH8li6n2aGlclMsDHCiEgfXZrkZ7XSq8NRIWxM7LJD4,1347
|
|
6
|
+
ebird_cli/cli/command.py,sha256=IK-ffeoh8lv6wSPfxuSxepDrxnWuq9pWVuUy3QL6k7s,5222
|
|
7
|
+
ebird_cli/cli/grammar.py,sha256=z7Ojn3KbsF6IQwdMDUdy3axsaFMbn-604SjtOQeOyrA,8651
|
|
8
|
+
ebird_cli/domain/__init__.py,sha256=6AIrDtfl4WUbt_U2YPaciHMTP3ulaJWmjkdrNqUK9Lc,117
|
|
9
|
+
ebird_cli/domain/fields.py,sha256=1pLEevMh018EJjLfCf2CTGg5qCLnYIbKcS8jeI4LKNo,511
|
|
10
|
+
ebird_cli/domain/observation.py,sha256=FMCIXtWuNYlPlvHNVpj44ZqblYTIOKYEmI_TKi6OqQQ,888
|
|
11
|
+
ebird_cli/domain/region.py,sha256=USBvw32l5ArHZDualiVim1B7fe682tMI2rtXC8xjX54,259
|
|
12
|
+
ebird_cli/domain/regional_scopes.py,sha256=PrDvlZc4ddktgSUKhVU5WxSG5NzeBTStLUhdcAVvLHg,190
|
|
13
|
+
ebird_cli/domain/taxonomy.py,sha256=1vqP2180Jd-JM3DRCYEybcbPPMQ--jYJWBFt3ikuy0U,1205
|
|
14
|
+
ebird_cli/domain/taxonomy_cache.py,sha256=Xbd9INoG5t3vVmhgl3NclB-bNEcLKpcfP-nY3cxUhAY,243
|
|
15
|
+
ebird_cli/services/__init__.py,sha256=oYVplQ4V-vP152GqJK3X4EkkBgwN4lG1p2mP2qD00Pc,140
|
|
16
|
+
ebird_cli/services/cache.py,sha256=IjD-suVGXrwSbYN162TrG_aLJ8qOz59ClfGuJi1HPeU,2059
|
|
17
|
+
ebird_cli/services/dataframe.py,sha256=QtWxRRbD6r8HYIYXLw1EG9pnTwpP8MoJGVtY7NmMh3Y,398
|
|
18
|
+
ebird_cli/services/ebird_client.py,sha256=8f0z2-S9wWOxrZh6kzAjP52-ffcNu2hXSLUBrFGMJ1A,3938
|
|
19
|
+
ebird_cli/services/location_catalogue.py,sha256=-wqK8DsNxwH3wa5hCwCUPO58Pe5OBv-R4jRqz5sU2yU,5427
|
|
20
|
+
ebird_cli/services/observation_query.py,sha256=snflAlQLU0qU9FFNBZDzJRwadgLxHVdiw25MsigY3-M,4700
|
|
21
|
+
ebird_cli/services/printing.py,sha256=zTmmtTvnV4R4Zfm6rNDgSmsqezfrW10X4QFgLOQh1iM,1826
|
|
22
|
+
ebird_cli/services/taxonomy.py,sha256=VA0QtSAzcCGnb2kDGXa2dsrY1hbNE1WPFeiL627ey-A,756
|
|
23
|
+
ebird_cli/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
24
|
+
ebird_cli/utils/logger.py,sha256=G-5coWujFFLJ2JVka6yQo64HUkzhlJM2u_9RKipEzvo,631
|
|
25
|
+
ebird_cli-0.1.0.dist-info/licenses/LICENSE,sha256=G4LcioAWXb-vOlvz13XmGXiWpAWknuxhew4L0qhzefU,1072
|
|
26
|
+
ebird_cli-0.1.0.dist-info/METADATA,sha256=6uFCV4MOtRfSGfGZPP31wJKTPuX5qGiC8Q3h_LlcV4s,13039
|
|
27
|
+
ebird_cli-0.1.0.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
28
|
+
ebird_cli-0.1.0.dist-info/entry_points.txt,sha256=HsU_eP6Ep-yBTmLx6SbGV_XYECfj53imIlcuPMdgPgw,107
|
|
29
|
+
ebird_cli-0.1.0.dist-info/top_level.txt,sha256=aqJzk6etMmpZKSXEjjuNX0LTsahNT3sAJkUuUoSHQ6E,10
|
|
30
|
+
ebird_cli-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Kevin Verreault
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ebird_cli
|