Tools for interacting with the fulcrum app API using python. See http://developer.fulcrumapp.com/api/intro/ for more info on the Fulcrum API. Requests takes care of our HTTP chatting, and is automatically installed when using the steps below.
change-record-status.ipynbupdates the status of every record that is older than 12days.polygon-update.ipynbshows two basic options on how to update the record based on being within a polygon.delete-records.pynon-conditional batch deletiondeleteRecords.py- Bulk delete records belonging to a particular changeset.archive-complete-issue.pychanges the record's status based on the time delta between today and the last update date.count-drives-record-status.py- The records status is updated based on the records status of a 2nd app. It was intended to show the condition of parks and garden based on the number of complaints recieved.fulcrum-mailer.py- Shows count data of records over a time and according to status. Intended as an informal activity summary for management.gbif-validator.pychecks the species names in a fulcrum app against the gbif APImore-2-come
- Run
pip install fulcrumto install the fulcrum python library. - Copy the
py-file into your onto you linux machine and edit yourformId, credentials anddays.
- Do
crontab -eand add the path of the script and the frequency egminute hour day-of-month month day-of-week /path/to/my-file.py