surveydata Python Package Documentation
The surveydata Python package offers flexible access to survey data and support for
multiple local and cloud storage options.
Installation
Installing the latest version with pip:
pip install surveydata
Overview
To use the surveydata package, you access data from specific survey platforms via an
appropriate SurveyPlatform object:
SurveyCTOPlatformprovides support for SurveyCTO data, including methods to process text audits and submit submission updates via the review and correction workflow (in support of SurveyCTO’s machine learning roadmap, with the ml4qc project)Support for more survey platforms is coming! Reach out if you have a particular need or are willing to contribute.
All survey data must be stored somewhere, and storage is handled via an appropriate
StorageSystem object:
FileStorageprovides support for local file storageS3Storageprovides support for AWS S3 storageDynamoDBStorageprovides support for AWS DynamoDB storageGoogleCloudStorageprovides support for Google Cloud StorageAzureBlobStorageprovides support for Azure Blob StorageSurveyCTOExportStorageprovides support for local exports from SurveyCTO Desktop
In general, the workflow goes like this:
Initialize the survey platform
Initialize one or more storage systems
Synchronize data between the survey platform and the storage system(s) to ensure that data in storage is fully up-to-date (except for static export storage, via a class like
SurveyCTOExportStorage, which doesn’t support synchronization)Load data and/or attachments via the survey platform and storage API’s
Optionally: Save processed data and then, later, load it back again, for cases where ingestion and processing tasks are separated from actual analysis or use
Examples
See this example notebook for a series of usage examples.
Reference
- surveydata
- surveydata package
- Submodules
- surveydata.azureblobstorage module
- surveydata.dynamodbstorage module
- surveydata.filestorage module
- surveydata.googlecloudstorage module
- surveydata.s3storage module
- surveydata.storagesystem module
- surveydata.surveyctoexportstorage module
- surveydata.surveyctoplatform module
- surveydata.surveyplatform module
- Module contents
- Submodules
- surveydata package