- Add support for
delete_roles
- Add check for missing token and url
- Modify instructions for installing
pandas(optional package dependency)
- Add logging methods (#222)
- Add user methods (#225)
- Add DAG methods (#226)
- Add user role methods (#228)
- Add new args for export records (#223)
- Add docs tests for return format type (#224)
- Add support for
export_repeating_instruments_eventsandimport_repeating_instruments_events(#210 @JuliaSprenger)
Projectclass loads lazily by default- All
Project.export_*methods that return JSON now can returnDataFrame's as well Projectclass was broken up into smaller utility classes, see theredcap.methodsmodule or the API reference on the new docs site- Robust testing infrastructure (
pytest,doctest-plus) with both unit and integration tests, maintained at 100% test coverage, with automated styling and linting checks in CI (black,pylint) - Gradual typing added, but not yet enforced in CI
- Add _complete fields to payload when requesting survey fields (#149 @forsakendaemon)
- Dropped support for Python 2, requires python 3.8 or above
- Many extraneous
Projectattributes were removed. See the API reference for remaining attributes RedcapErroris raised for all endpoints when API errors are encountered. Errors are never returned in the responsegenerate_next_record_namenow returns astrinstead of anint. This fixes a bug that occurs when a project uses DAGsexport_femrenamed toexport_instrument_event_mappingto be more consistent with other endpoints- Common parameter name changes including:
format-->format_type,return_format-->return_format_type,type-->record_type. Most of the reason for this change was to avoid the use of reserved keywords such asformatandtype
- Revamp documentation to
mkdocs-materialstyle on GitHub pages - Add comprehensive docstrings and doctests to all methods
- Update
delete_recordsdocumentation (#173 @andyjessen)
- Add support for
import_metadataendpoint (#145 @JuliaSprenger)
- Update
contributing.rstwith new installation instructions (#135 @njvack)
- Add support for
exportFieldNamescall (#125 @chgreer) - Add
dateRangeBeginanddateRangeEndparameters toProject.export_records(#124 @chgreer)
- Use
pytestfor full test suite (#132) - Enforce
blackandpylintstyle and formatting on project (#132) - Deprecate support for Python 2 (#132)
- Add
pandasas anextra_requires(#132)
- Update README with new community support model and how to contribute (#132)
- Fix package version parsing for UNIX (#122 @fissell)
- Add
rec_typesupport inimport_records()(#40 @dckc) - Add
export_checkbox_labelskeyword arg toexport_records()(#48 Tyler Rivera) - Properly backfill requested fields for >6.X servers (#55)
- Add Export Survey Participant List method (#71)
- Add
filter_logicto export_records (#85 @erikh360) - Add
forceAutoNumberparameter toimport_records()(#86 @CarlosBorroto) - Add Export Project Information (#106 @martinburchell)
- Add Generate Next Record Name (#107 @martinburchell)
- Add
repeat_instanceparameter toimp_filerequest (#104 @martinburchell) - Add Delete Record (#77 @damonms)
- Add Export Reports (#91 @mcarmack)
- Add redcap_version attribute to Project (#44 Tyler Rivera)
- Support lazy loading of Projects (#53 Tyler Rivera)
- Add Python 3 support (#67, #92 @jmillxyz, @fonnesbeck)
- Remove obsolete Project.filter() (#105 @martinburchell)
- Change API parameters from comma-separated to arrays (#110 @martinburchell)
- Use single
requests.Session()for connections (#120 @KarthikMasi)
- Allow later versions of semantic-version (#108 @martinburchell)
- Fix package version when installing from GitHub (#113)
- Handle EmptyData error from pandas read_csv (#118 @martinburchell)
- Added REDCap API changelog from 6.0.0 - 6.12.1 (#64 @SlightlyUnorthodox)
- Python 3 updates (#115 @sujaypatil96)
- Fix issue in new survey participant export method.
- Add a
Projectmethod to export the survey participant list. - Update author email.
- Normalize all
formatargument to default tojson, notobj. This better follows the official REDCap API. This breaks backwards compatibility, hence the 1.0 release. - Remove the
redcap.queryand associated tests. If you need filtering functionality, Pandas is highly recommended. - Update documentation re: how PyCap implicitly decodes JSON responses.
- Update docs about passing CA_BUNDLE through
verify_ssl. - Canonical URL for docs is now http://pycap.rtfd.org.
- Add
date_formatargument for.import_records - Sphinxification of docs
- Add MIT license
- Add
export_survey_fields&export_data_access_groupsarguments for.import_records - Raise for 5XX responses
- Raise exception for failed imports
- Deprecate the entire
redcap.Querymodule. It was a bad idea to begin with. - Raise exception during
Projectinstantiation when the metadata call fails. This is usually indicative of bad credentials.
- By default, in longitudinal projects when exporting records as a data frame, the index will be a MultiIndex of the project's primary field and
redcap_event_name. - DataFrames can be passed to
Project.import_records. - Added
Project.export_femto export Form-Event Mappings from theProject. - The SSL certificate on REDCap server can be ignored if need be.
- Added rest of API methods:
Project.export_users,Project.delete_file. Almost all API methods are implemented withinProjectin some way, shape or form. - Fix file import bug.
- Now use relaxed JSON decoding because REDCap doesn't always send strict JSON.
- File export, import and delete methods will raise
redcap.RedcapErrorwhen the methods don't succeed on the server. - Low-level content handling has been cleaned up.
- Added
Project.export_fileandProject.import_filemethods for exporting/importing files from/to REDCap databases - Fixed a dependency issue that would cause new installations to fail
- Fixed an issue where newline characters in the project's Data Dictionary would case Projects to fail instantiation.
- Add ability to alter
DataFrameconstruction with thedf_kwargsarg inProject.export_recordsand.export_metadata
- Add
export_metadatafunction on redcap.Project class - Add
'dfas an option for theformatargument on theredcap.Projectexport methods to return apandas.DataFrame
- Update
setup.pyfor more graceful building
- Fix potential issue when exporting strange characters
- Add initial support for longitudinal databases
- Add helper attributes on
redcap.Projectclass - Improve testing
- Add Travis-CI testing on github
- 0.4.1 didn't play well with pypi?
- Defend against non-unicode characters in Redcap
Project
- New documentation
- Bug fix when exporting all fields
- Works with current version of
requests - Under-the-hood changes (only json is used for
RCRequest) - Bug fix in
Project.filter
- Bug fix in
import_records
- Using Kenneth Reitz's
requestsmodule, greatly simplifying request code.
- First public release on PyPI
- Version bump
- Basic import, export, metadata