framework-py 0.1.0.dev7__py3-none-any.whl → 0.1.0.dev8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. framework/__init__.py +4 -0
  2. framework/_assets/sets/packages/bayes-r.json +51 -0
  3. framework/_assets/sets/packages/causal-inference-r.json +34 -0
  4. framework/_assets/sets/packages/fastapi-python.json +34 -0
  5. framework/_assets/sets/packages/large-data-r.json +30 -0
  6. framework/_assets/sets/packages/plumber-r.json +30 -0
  7. framework/_assets/sets/packages/polars-python.json +26 -0
  8. framework/_assets/sets/packages/python-bayes.json +26 -0
  9. framework/_assets/sets/packages/python-database.json +26 -0
  10. framework/_assets/sets/packages/python-ml.json +22 -0
  11. framework/_assets/sets/packages/python-spatial.json +22 -0
  12. framework/_assets/sets/packages/python-viz.json +22 -0
  13. framework/_assets/sets/packages/regression-r.json +42 -0
  14. framework/_assets/sets/packages/shiny-python.json +30 -0
  15. framework/_assets/sets/packages/shiny-r.json +34 -0
  16. framework/_assets/sets/packages/spatial-r.json +26 -0
  17. framework/_assets/sets/packages/survey-r.json +22 -0
  18. framework/_assets/sets/packages/survival-r.json +30 -0
  19. framework/_assets/sets/packages/tables-r.json +30 -0
  20. framework/_assets/sets/packages/text-r.json +22 -0
  21. framework/_assets/sets/packages/tidy-core.json +26 -0
  22. framework/_assets/sets/packages/tidy-database.json +38 -0
  23. framework/_assets/sets/packages/tidy-omop.json +58 -0
  24. framework/_assets/sets/packages/tidymodels.json +22 -0
  25. framework/_assets/sets/packages/tidyverse-extended.json +70 -0
  26. framework/bootstrap.py +32 -6
  27. framework/cache.py +9 -5
  28. framework/catalog.py +8 -4
  29. framework/cloud.py +19 -13
  30. framework/config_home.py +18 -2
  31. framework/connections.py +45 -7
  32. framework/create.py +22 -1
  33. framework/data.py +87 -48
  34. framework/hooks.py +40 -3
  35. framework/notebooks.py +43 -21
  36. framework/packages.py +117 -0
  37. framework/publish_bundle.py +59 -2
  38. framework/scaffold.py +10 -2
  39. framework/security.py +24 -12
  40. framework/storage.py +142 -11
  41. framework/templates/defaults.yml +1 -1
  42. framework/templates/gitignore/course +2 -5
  43. {framework_py-0.1.0.dev7.dist-info → framework_py-0.1.0.dev8.dist-info}/METADATA +1 -1
  44. {framework_py-0.1.0.dev7.dist-info → framework_py-0.1.0.dev8.dist-info}/RECORD +46 -22
  45. {framework_py-0.1.0.dev7.dist-info → framework_py-0.1.0.dev8.dist-info}/WHEEL +0 -0
  46. {framework_py-0.1.0.dev7.dist-info → framework_py-0.1.0.dev8.dist-info}/licenses/LICENSE +0 -0
framework/__init__.py CHANGED
@@ -108,6 +108,8 @@ from framework.outputs import (
108
108
  from framework.packages import (
109
109
  PackagesStatus,
110
110
  package_add,
111
+ package_set_add,
112
+ package_sets_list,
111
113
  packages_install,
112
114
  packages_list,
113
115
  packages_restore,
@@ -210,6 +212,8 @@ __all__ = [
210
212
  "new_project",
211
213
  "now",
212
214
  "package_add",
215
+ "package_set_add",
216
+ "package_sets_list",
213
217
  "packages_install",
214
218
  "packages_list",
215
219
  "packages_restore",
@@ -0,0 +1,51 @@
1
+ {
2
+ "id": "bayes-r",
3
+ "name": "Bayes in R",
4
+ "description": "CmdStanR and brms for Stan models, rstanarm for common regressions, and bayesplot, posterior, loo, tidybayes, priorsense, and projpred to check and read them. CmdStanR needs CmdStan: run cmdstanr::install_cmdstan() once.",
5
+ "language": [
6
+ "r"
7
+ ],
8
+ "layer": {
9
+ "packages": {
10
+ "default_packages": {
11
+ "cmdstanr": {
12
+ "source": "github",
13
+ "repo": "stan-dev/cmdstanr",
14
+ "auto_attach": false
15
+ },
16
+ "brms": {
17
+ "source": "cran",
18
+ "auto_attach": false
19
+ },
20
+ "rstanarm": {
21
+ "source": "cran",
22
+ "auto_attach": false
23
+ },
24
+ "bayesplot": {
25
+ "source": "cran",
26
+ "auto_attach": false
27
+ },
28
+ "posterior": {
29
+ "source": "cran",
30
+ "auto_attach": false
31
+ },
32
+ "loo": {
33
+ "source": "cran",
34
+ "auto_attach": false
35
+ },
36
+ "tidybayes": {
37
+ "source": "cran",
38
+ "auto_attach": false
39
+ },
40
+ "priorsense": {
41
+ "source": "cran",
42
+ "auto_attach": false
43
+ },
44
+ "projpred": {
45
+ "source": "cran",
46
+ "auto_attach": false
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "id": "causal-inference-r",
3
+ "name": "Causal inference",
4
+ "description": "MatchIt and WeightIt for matching and weighting, cobalt for balance, and marginaleffects with sandwich for effects and robust errors.",
5
+ "language": [
6
+ "r"
7
+ ],
8
+ "layer": {
9
+ "packages": {
10
+ "default_packages": {
11
+ "MatchIt": {
12
+ "source": "cran",
13
+ "auto_attach": false
14
+ },
15
+ "WeightIt": {
16
+ "source": "cran",
17
+ "auto_attach": false
18
+ },
19
+ "cobalt": {
20
+ "source": "cran",
21
+ "auto_attach": false
22
+ },
23
+ "marginaleffects": {
24
+ "source": "cran",
25
+ "auto_attach": false
26
+ },
27
+ "sandwich": {
28
+ "source": "cran",
29
+ "auto_attach": false
30
+ }
31
+ }
32
+ }
33
+ }
34
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "id": "fastapi-python",
3
+ "name": "FastAPI app",
4
+ "description": "FastAPI with uvicorn to serve it, pydantic for request models, and httpx and pytest for tests.",
5
+ "language": [
6
+ "python"
7
+ ],
8
+ "layer": {
9
+ "packages": {
10
+ "default_packages": {
11
+ "fastapi": {
12
+ "source": "pypi",
13
+ "auto_attach": false
14
+ },
15
+ "uvicorn": {
16
+ "source": "pypi",
17
+ "auto_attach": false
18
+ },
19
+ "pydantic": {
20
+ "source": "pypi",
21
+ "auto_attach": false
22
+ },
23
+ "httpx": {
24
+ "source": "pypi",
25
+ "auto_attach": false
26
+ },
27
+ "pytest": {
28
+ "source": "pypi",
29
+ "auto_attach": false
30
+ }
31
+ }
32
+ }
33
+ }
34
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "id": "large-data-r",
3
+ "name": "Large data in R",
4
+ "description": "arrow and DuckDB for data larger than memory, and data.table for fast data in memory.",
5
+ "language": [
6
+ "r"
7
+ ],
8
+ "layer": {
9
+ "packages": {
10
+ "default_packages": {
11
+ "arrow": {
12
+ "source": "cran",
13
+ "auto_attach": false
14
+ },
15
+ "duckdb": {
16
+ "source": "cran",
17
+ "auto_attach": false
18
+ },
19
+ "duckplyr": {
20
+ "source": "cran",
21
+ "auto_attach": false
22
+ },
23
+ "data.table": {
24
+ "source": "cran",
25
+ "auto_attach": false
26
+ }
27
+ }
28
+ }
29
+ }
30
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "id": "plumber-r",
3
+ "name": "Plumber API",
4
+ "description": "plumber for the API, jsonlite and httr2 for JSON and requests, and logger for logs.",
5
+ "language": [
6
+ "r"
7
+ ],
8
+ "layer": {
9
+ "packages": {
10
+ "default_packages": {
11
+ "plumber": {
12
+ "source": "cran",
13
+ "auto_attach": false
14
+ },
15
+ "jsonlite": {
16
+ "source": "cran",
17
+ "auto_attach": false
18
+ },
19
+ "httr2": {
20
+ "source": "cran",
21
+ "auto_attach": false
22
+ },
23
+ "logger": {
24
+ "source": "cran",
25
+ "auto_attach": false
26
+ }
27
+ }
28
+ }
29
+ }
30
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "id": "polars-python",
3
+ "name": "Polars and DuckDB",
4
+ "description": "polars and DuckDB for fast data frames and SQL, with pyarrow for Parquet.",
5
+ "language": [
6
+ "python"
7
+ ],
8
+ "layer": {
9
+ "packages": {
10
+ "default_packages": {
11
+ "polars": {
12
+ "source": "pypi",
13
+ "auto_attach": false
14
+ },
15
+ "duckdb": {
16
+ "source": "pypi",
17
+ "auto_attach": false
18
+ },
19
+ "pyarrow": {
20
+ "source": "pypi",
21
+ "auto_attach": false
22
+ }
23
+ }
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "id": "python-bayes",
3
+ "name": "Bayes in Python",
4
+ "description": "PyMC for models, Bambi for regressions, and ArviZ to check and read them.",
5
+ "language": [
6
+ "python"
7
+ ],
8
+ "layer": {
9
+ "packages": {
10
+ "default_packages": {
11
+ "pymc": {
12
+ "source": "pypi",
13
+ "auto_attach": false
14
+ },
15
+ "bambi": {
16
+ "source": "pypi",
17
+ "auto_attach": false
18
+ },
19
+ "arviz": {
20
+ "source": "pypi",
21
+ "auto_attach": false
22
+ }
23
+ }
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "id": "python-database",
3
+ "name": "Python databases",
4
+ "description": "SQLAlchemy for SQL, with DuckDB and psycopg for PostgreSQL.",
5
+ "language": [
6
+ "python"
7
+ ],
8
+ "layer": {
9
+ "packages": {
10
+ "default_packages": {
11
+ "sqlalchemy": {
12
+ "source": "pypi",
13
+ "auto_attach": false
14
+ },
15
+ "duckdb": {
16
+ "source": "pypi",
17
+ "auto_attach": false
18
+ },
19
+ "psycopg": {
20
+ "source": "pypi",
21
+ "auto_attach": false
22
+ }
23
+ }
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "id": "python-ml",
3
+ "name": "Machine learning in Python",
4
+ "description": "scikit-learn for models and pipelines, and XGBoost for boosted trees.",
5
+ "language": [
6
+ "python"
7
+ ],
8
+ "layer": {
9
+ "packages": {
10
+ "default_packages": {
11
+ "scikit-learn": {
12
+ "source": "pypi",
13
+ "auto_attach": false
14
+ },
15
+ "xgboost": {
16
+ "source": "pypi",
17
+ "auto_attach": false
18
+ }
19
+ }
20
+ }
21
+ }
22
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "id": "python-spatial",
3
+ "name": "Spatial data in Python",
4
+ "description": "GeoPandas and Shapely for vector data.",
5
+ "language": [
6
+ "python"
7
+ ],
8
+ "layer": {
9
+ "packages": {
10
+ "default_packages": {
11
+ "geopandas": {
12
+ "source": "pypi",
13
+ "auto_attach": false
14
+ },
15
+ "shapely": {
16
+ "source": "pypi",
17
+ "auto_attach": false
18
+ }
19
+ }
20
+ }
21
+ }
22
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "id": "python-viz",
3
+ "name": "Interactive figures in Python",
4
+ "description": "plotly and Altair for interactive charts.",
5
+ "language": [
6
+ "python"
7
+ ],
8
+ "layer": {
9
+ "packages": {
10
+ "default_packages": {
11
+ "plotly": {
12
+ "source": "pypi",
13
+ "auto_attach": false
14
+ },
15
+ "altair": {
16
+ "source": "pypi",
17
+ "auto_attach": false
18
+ }
19
+ }
20
+ }
21
+ }
22
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "id": "regression-r",
3
+ "name": "Regression and mixed models",
4
+ "description": "lme4 and glmmTMB for mixed models, with marginaleffects, emmeans, performance, and broom to read them.",
5
+ "language": [
6
+ "r"
7
+ ],
8
+ "layer": {
9
+ "packages": {
10
+ "default_packages": {
11
+ "lme4": {
12
+ "source": "cran",
13
+ "auto_attach": false
14
+ },
15
+ "glmmTMB": {
16
+ "source": "cran",
17
+ "auto_attach": false
18
+ },
19
+ "marginaleffects": {
20
+ "source": "cran",
21
+ "auto_attach": false
22
+ },
23
+ "emmeans": {
24
+ "source": "cran",
25
+ "auto_attach": false
26
+ },
27
+ "performance": {
28
+ "source": "cran",
29
+ "auto_attach": false
30
+ },
31
+ "broom": {
32
+ "source": "cran",
33
+ "auto_attach": false
34
+ },
35
+ "broom.mixed": {
36
+ "source": "cran",
37
+ "auto_attach": false
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "id": "shiny-python",
3
+ "name": "Shiny app in Python",
4
+ "description": "shiny for the app, shinywidgets and plotly for interactive charts, and pandas for data.",
5
+ "language": [
6
+ "python"
7
+ ],
8
+ "layer": {
9
+ "packages": {
10
+ "default_packages": {
11
+ "shiny": {
12
+ "source": "pypi",
13
+ "auto_attach": false
14
+ },
15
+ "shinywidgets": {
16
+ "source": "pypi",
17
+ "auto_attach": false
18
+ },
19
+ "plotly": {
20
+ "source": "pypi",
21
+ "auto_attach": false
22
+ },
23
+ "pandas": {
24
+ "source": "pypi",
25
+ "auto_attach": false
26
+ }
27
+ }
28
+ }
29
+ }
30
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "id": "shiny-r",
3
+ "name": "Shiny app in R",
4
+ "description": "shiny with bslib and bsicons for the layout, and DT and plotly for tables and charts.",
5
+ "language": [
6
+ "r"
7
+ ],
8
+ "layer": {
9
+ "packages": {
10
+ "default_packages": {
11
+ "shiny": {
12
+ "source": "cran",
13
+ "auto_attach": false
14
+ },
15
+ "bslib": {
16
+ "source": "cran",
17
+ "auto_attach": false
18
+ },
19
+ "bsicons": {
20
+ "source": "cran",
21
+ "auto_attach": false
22
+ },
23
+ "DT": {
24
+ "source": "cran",
25
+ "auto_attach": false
26
+ },
27
+ "plotly": {
28
+ "source": "cran",
29
+ "auto_attach": false
30
+ }
31
+ }
32
+ }
33
+ }
34
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "id": "spatial-r",
3
+ "name": "Spatial data in R",
4
+ "description": "sf for vector data, terra for rasters, and tmap for maps.",
5
+ "language": [
6
+ "r"
7
+ ],
8
+ "layer": {
9
+ "packages": {
10
+ "default_packages": {
11
+ "sf": {
12
+ "source": "cran",
13
+ "auto_attach": false
14
+ },
15
+ "terra": {
16
+ "source": "cran",
17
+ "auto_attach": false
18
+ },
19
+ "tmap": {
20
+ "source": "cran",
21
+ "auto_attach": false
22
+ }
23
+ }
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "id": "survey-r",
3
+ "name": "Survey data",
4
+ "description": "survey for weighted designs, and srvyr to use them with dplyr.",
5
+ "language": [
6
+ "r"
7
+ ],
8
+ "layer": {
9
+ "packages": {
10
+ "default_packages": {
11
+ "survey": {
12
+ "source": "cran",
13
+ "auto_attach": false
14
+ },
15
+ "srvyr": {
16
+ "source": "cran",
17
+ "auto_attach": false
18
+ }
19
+ }
20
+ }
21
+ }
22
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "id": "survival-r",
3
+ "name": "Survival analysis",
4
+ "description": "survival for the models, ggsurvfit for curves, and gtsummary and broom for tables.",
5
+ "language": [
6
+ "r"
7
+ ],
8
+ "layer": {
9
+ "packages": {
10
+ "default_packages": {
11
+ "survival": {
12
+ "source": "cran",
13
+ "auto_attach": false
14
+ },
15
+ "ggsurvfit": {
16
+ "source": "cran",
17
+ "auto_attach": false
18
+ },
19
+ "gtsummary": {
20
+ "source": "cran",
21
+ "auto_attach": false
22
+ },
23
+ "broom": {
24
+ "source": "cran",
25
+ "auto_attach": false
26
+ }
27
+ }
28
+ }
29
+ }
30
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "id": "tables-r",
3
+ "name": "Tables for reports",
4
+ "description": "gt, gtsummary, modelsummary, and flextable for tables in Quarto documents, Word, and the web.",
5
+ "language": [
6
+ "r"
7
+ ],
8
+ "layer": {
9
+ "packages": {
10
+ "default_packages": {
11
+ "gt": {
12
+ "source": "cran",
13
+ "auto_attach": false
14
+ },
15
+ "gtsummary": {
16
+ "source": "cran",
17
+ "auto_attach": false
18
+ },
19
+ "modelsummary": {
20
+ "source": "cran",
21
+ "auto_attach": false
22
+ },
23
+ "flextable": {
24
+ "source": "cran",
25
+ "auto_attach": false
26
+ }
27
+ }
28
+ }
29
+ }
30
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "id": "text-r",
3
+ "name": "Text analysis in R",
4
+ "description": "tidytext and quanteda for text as data.",
5
+ "language": [
6
+ "r"
7
+ ],
8
+ "layer": {
9
+ "packages": {
10
+ "default_packages": {
11
+ "tidytext": {
12
+ "source": "cran",
13
+ "auto_attach": false
14
+ },
15
+ "quanteda": {
16
+ "source": "cran",
17
+ "auto_attach": false
18
+ }
19
+ }
20
+ }
21
+ }
22
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "id": "tidy-core",
3
+ "name": "Tidy basics",
4
+ "description": "dplyr, tidyr, and ggplot2: the smallest tidy set.",
5
+ "language": [
6
+ "r"
7
+ ],
8
+ "layer": {
9
+ "packages": {
10
+ "default_packages": {
11
+ "dplyr": {
12
+ "source": "cran",
13
+ "auto_attach": true
14
+ },
15
+ "tidyr": {
16
+ "source": "cran",
17
+ "auto_attach": true
18
+ },
19
+ "ggplot2": {
20
+ "source": "cran",
21
+ "auto_attach": true
22
+ }
23
+ }
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "id": "tidy-database",
3
+ "name": "Tidy databases",
4
+ "description": "DBI and dbplyr for SQL from dplyr, with drivers for DuckDB, SQLite, PostgreSQL, and ODBC.",
5
+ "language": [
6
+ "r"
7
+ ],
8
+ "layer": {
9
+ "packages": {
10
+ "default_packages": {
11
+ "DBI": {
12
+ "source": "cran",
13
+ "auto_attach": false
14
+ },
15
+ "dbplyr": {
16
+ "source": "cran",
17
+ "auto_attach": false
18
+ },
19
+ "duckdb": {
20
+ "source": "cran",
21
+ "auto_attach": false
22
+ },
23
+ "RSQLite": {
24
+ "source": "cran",
25
+ "auto_attach": false
26
+ },
27
+ "RPostgres": {
28
+ "source": "cran",
29
+ "auto_attach": false
30
+ },
31
+ "odbc": {
32
+ "source": "cran",
33
+ "auto_attach": false
34
+ }
35
+ }
36
+ }
37
+ }
38
+ }