Skip to content

bencevans/camtrap-dp-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Camtrap Data Package Python Library

The Camtrap Data Package Python Library is a Python library for working with the Camtrap Data Package version 1.0 format.

Installation

pip install camtrapdp

Usage

The camtrapdp package provides classes for working with the Camtrap Data Package format, reading and writing to CSV and Pandas DataFrames.

Read an Deployments CSV file

from camtrapdp import Deployment

# Read a deployments CSV file
deployments = Deployment.from_csv('deployments.csv')

# Print the first deployment
print(deployments[0])

Write a Deployments CSV file

from camtrapdp import Deployment

# Create a deployment
deployments = [
    Deployment(...),
    Deployment(...)
]

# Write a deployments CSV file
Deployment.to_csv(deployments, 'deployments.csv')

Related