ProjectController¶
- class pyinaturalist.controllers.ProjectController(client)¶
Bases:
pyinaturalist.controllers.base.BaseController
Controller for Project requests
Methods
- __init__(client)¶
- add_observations(project_id, *observation_ids, **params)¶
Add an observation to a project
- from_id(*project_ids, **params)¶
Get projects by ID
- search(**params)¶
Search projects
Notes
API reference: GET /projects
- Parameters
not_id (
Union
[int
,Iterable
[int
],None
]) – Must not have this IDlat (
Optional
[float
]) – Must be within aradius
kilometer circle around this lat/lnglng (
Optional
[float
]) – Must be within aradius
kilometer circle around this lat/lngradius (
int
) – Distance from center ((lat, lng)
) to search, in kilometers. Defaults to 500km.featured (
Optional
[bool
]) – Must be marked featured for the relevant sitenoteworthy (
Optional
[bool
]) – Must be marked noteworthy for the relevant siteplace_id (
Union
[int
,Iterable
[int
],None
]) – Must be in the place with this IDsite_id (
Optional
[int
]) – Site ID that applies tofeatured
andnoteworthy
. Defaults to the site of the authenticated user, or to the main iNaturalist siterule_details (
Optional
[bool
]) – Return more information about project rules, for example return a full taxon object instead of simply an IDtype (
Union
[str
,Iterable
[str
],None
]) – Projects must be of this typemember_id (
Optional
[int
]) – Project must have member with this user IDhas_params (
Optional
[bool
]) – Must have search parameter requirementsorder_by (
Optional
[str
]) – Sort order.distance
only applies if lat and lng are specified.featured
only applies iffeatured
ornoteworthy
are true. unless otherwise notedorder_by – Field to sort on
reverse (
Optional
[bool
]) – Reverse the order of results; alias fororder='descending'
- Return type