Skip to main content

Python library for working with the Camtrap Data Package format.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

camtrapdp-0.1.0.tar.gz (7.5 kB view hashes)

Uploaded Source

Built Distribution

camtrapdp-0.1.0-py3-none-any.whl (9.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page