Skip to content

Commit

Permalink
Update download.py
Browse files Browse the repository at this point in the history
added SIMPLE_AVRO to download formats and linked to tech docs
  • Loading branch information
CecSve authored Feb 5, 2024
1 parent 36909a5 commit 59960ff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pygbif/occurrences/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def download(
:param queries: One or more of query arguments to kick of a download job.
See Details.
:type queries: str, list or dictionary
:param format: (character) One of the GBIF accepted download formats https://www.gbif.org/faq?question=download-formats
:param format: (character) One of the GBIF accepted download formats https://techdocs.gbif.org/en/openapi/v1/occurrence#/Occurrence%20download%20formats
:param pred_type: (character) One of ``equals`` (``=``), ``and`` (``&``),
`or`` (``|``), ``lessThan`` (``<``), ``lessThanOrEquals`` (``<=``),
``greaterThan`` (``>``), ``greaterThanOrEquals`` (``>=``),
Expand All @@ -91,10 +91,10 @@ def download(
Required. Set in your env vars with the option ``GBIF_USER``
:param pwd: (character) User password within GBIF's website. Required.
Set in your env vars with the option ``GBIF_PWD``
:param email: (character) Email address to recieve download notice done
:param email: (character) Email address to receive download notice done
email. Required. Set in your env vars with the option ``GBIF_EMAIL``
Argument passed have to be passed as character (e.g., ``country = US``),
Argument passed have to be passed as characters (e.g., ``country = US``),
with a space between key (``country``), operator (``=``), and value (``US``).
See the ``type`` parameter for possible options for the operator.
This character string is parsed internally.
Expand Down Expand Up @@ -735,4 +735,4 @@ def download_get(key, path=".", **kwargs):
"waterBody": "WATER_BODY",
}

formats = ["SIMPLE_CSV", "SIMPLE_PARQUET", "DWCA", "SPECIES_LIST"]
formats = ["SIMPLE_CSV", "SIMPLE_PARQUET", "DWCA", "SPECIES_LIST", "SIMPLE_AVRO"]

0 comments on commit 59960ff

Please sign in to comment.