Releases: redcap-tools/PyCap
Releases · redcap-tools/PyCap
2.6.0
2.5.0
What's Changed
- coerce field and form arguments in export_records() by @ugGit in #269
- Keep default values in df_kwargs when calling load_data() by @ugGit in #270
- Add Arm and Event API by @patking02 in #278
New Contributors
- @patking02 made their first contribution in #278 🙇🏻♂️
Full Changelog: 2.4.0...2.5.0
2.4.0
What's Changed
- Capitalization by @wibeasley in #256
- Add
request_kwargs
to be passed during API requests by @ugGit in #251 - Add
mypy
by @pwildenhain in #258
New Contributors
- @wibeasley made their first contribution in #256
- @ugGit made their first contribution in #251
Full Changelog: 2.3.0...2.4.0
2.3.0
What's Changed
- Backfill fields for all records export requests by @pwildenhain in #247
- ⬆️ Bump certifi by @pwildenhain in #250
- Only return complete fields for requested forms by @pwildenhain in #253
Full Changelog: 2.2.0...2.3.0
2.2.0
What's Changed
- Add check for missing token and url (#238)
- Update docs for pandas optional dependency (#239)
- Add delete roles method (#243)
Full Changelog: 2.1.0...2.2.0
2.1.0
2.0.0
2.0.0 (2022-03-29)
API Support 🤖
- Add support for
export_repeating_instruments_events
andimport_repeating_instruments_events
(#210 @JuliaSprenger)
Package Improvements 💪
Project
class loads lazily by default- All
Project.export_*
methods that return JSON now can returnDataFrame
's as well Project
class was broken up into smaller utility classes, see theredcap.methods
module 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)
Breaking changes 💥
- Dropped support for Python 2, requires python 3.8 or above
- Many extraneous
Project
attributes were removed. See the API reference for remaining attributes RedcapError
is raised for all endpoints when API errors are encountered. Errors are never returned in the responsegenerate_next_record_name
now returns astr
instead of anint
. This fixes a bug that occurs when a project uses DAGsexport_fem
renamed toexport_instrument_event_mapping
to 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 asformat
andtype
Documentation 📝
- Revamp documentation to
mkdocs-material
style on GitHub pages - Add comprehensive docstrings and doctests to all methods
- Update
delete_records
documentation (#173 @andyjessen)
Version 1.1.3
Version 1.1.2
API Support
- Add support for
exportFieldNames
call (#125 @chgreer) - Add
dateRangeBegin
anddateRangeEnd
parameters toProject.export_records
(#124 @chgreer)
Package Improvements
- Use
pytest
for full test suite (#132) - Enforce
black
andpylint
style and formatting on project (#132) - Deprecate support for Python 2 (#132)
- Add
pandas
as anextra_requires
(#132)
Documentation
- Update README with new community support model and how to contribute (#132)