Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bencevans/camtrap-dp-py
Python Library for Camtrap Data Packages
https://github.com/bencevans/camtrap-dp-py
camera-traps camtrap-dp ecology
Last synced: 8 days ago
JSON representation
Python Library for Camtrap Data Packages
- Host: GitHub
- URL: https://github.com/bencevans/camtrap-dp-py
- Owner: bencevans
- Created: 2024-03-26T10:52:03.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-26T14:27:34.000Z (10 months ago)
- Last Synced: 2024-12-13T19:57:14.995Z (about 1 month ago)
- Topics: camera-traps, camtrap-dp, ecology
- Language: Python
- Homepage:
- Size: 47.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Camtrap Data Package Python Library
The Camtrap Data Package Python Library is a Python library for working with the [Camtrap Data Package](https://camtrap-dp.tdwg.org/) version 1.0 format.
## Installation
```bash
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
```python
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
```python
from camtrapdp import Deployment# Create a deployment
deployments = [
Deployment(...),
Deployment(...)
]# Write a deployments CSV file
Deployment.to_csv(deployments, 'deployments.csv')
```## Related
- [Camtrap Data Package](https://camtrap-dp.tdwg.org/) - The Camtrap Data Package specification
- [Camtrap Data Package Rust Library](https://github.com/bencevans/camtrap-dp-rs) - A Rust library for working with the Camtrap Data Package format