Skip to content

Commit 7718e6a

Browse files
authored
Merge pull request #149 from effigies/rf/client
rf: Factor TemplateFlow into Cache and Client classes
2 parents 35c1b0c + 050132d commit 7718e6a

File tree

15 files changed

+866
-624
lines changed

15 files changed

+866
-624
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ jobs:
109109
export TEMPLATEFLOW_USE_DATALAD=on
110110
python -m pytest \
111111
--junit-xml=~/tests/datalad.xml --cov templateflow --doctest-modules \
112-
templateflow/api.py
112+
templateflow/client.py
113113
114114
coverage run --append -m templateflow.cli config
115115
coverage run --append -m templateflow.cli ls MNI152NLin2009cAsym --suffix T1w

docs/api.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ Information on specific functions, classes, and methods.
55
.. toctree::
66

77
api/templateflow.cli
8+
api/templateflow.client
89
api/templateflow.api
910
api/templateflow.conf

docs/environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ dependencies:
202202
- nibabel==3.2.2
203203
- nipreps-versions==1.0.3
204204
- pandas==1.4.2
205+
- platformdirs
205206
- pybids==0.15.2
206207
- sqlalchemy==1.3.24
207208
- hatchling

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ license = {file = "LICENSE"}
2222
requires-python = ">=3.9"
2323
dependencies = [
2424
"acres >= 0.5.0",
25+
"platformdirs >= 4.0",
2526
"pybids >= 0.15.2",
2627
"requests",
2728
"tqdm",

templateflow/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,14 @@
4040
del PackageNotFoundError
4141

4242
from templateflow import api
43+
from templateflow.client import TemplateFlowClient
4344
from templateflow.conf import update
4445

4546
__all__ = [
4647
'__copyright__',
4748
'__packagename__',
4849
'__version__',
50+
'TemplateFlowClient',
4951
'api',
5052
'update',
5153
]

0 commit comments

Comments
 (0)