From 3c10ac22cee58e86f7668b4db65b14a05e22e46d Mon Sep 17 00:00:00 2001 From: Alessandra Gherardelli Date: Thu, 20 Jun 2024 21:40:11 +0200 Subject: [PATCH] Renamed utils with knots --- README.md | 4 ++-- examples/example_R.R | 6 +++--- examples/example_STATA.do | 6 +++--- examples/example_python.py | 2 +- pyproject.toml | 4 ++-- setup.py | 2 +- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index ba98814..805868e 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,9 @@ This Python module allows you to get data from the WFP Data Bridges API, includi ## Installation -> NB This is the dev version of the data_bridges_utils and API client package, it is frequently updated yet not stable. +> NB This is the dev version of the data_bridges_knots and API client package, it is frequently updated yet not stable. -You can install the `data_bridges_utils` package using `pip` and the Git repository URL: +You can install the `data_bridges_knots` package using `pip` and the Git repository URL: ``` pip install git+https://github.com/WFP-VAM/DataBridgesKnots.git diff --git a/examples/example_R.R b/examples/example_R.R index 96b3656..66c3b2a 100644 --- a/examples/example_R.R +++ b/examples/example_R.R @@ -4,12 +4,12 @@ library(dplyr) # Set up Python environment # use_python("/path/to/python/env") -python_path <- "C:/Users/alessandra.gherardel/AppData/Local/miniconda3/envs/data_bridges_utils/python.exe" +python_path <- "C:/Users/alessandra.gherardel/AppData/Local/miniconda3/envs/data_bridges_knots/python.exe" use_python(path.expand(python_path)) # Import DataBridgesShapes class -databridges_utils <- import("data_bridges_utils") -DataBridgesShapes <- databridges_utils$DataBridgesShapes +databridges_knots <- import("data_bridges_knots") +DataBridgesShapes <- databridges_knots$DataBridgesShapes # Initialize DataBridges client with credentials from YAML file CONFIG_PATH <- "data_bridges_api_config.yaml" diff --git a/examples/example_STATA.do b/examples/example_STATA.do index 89bf2bd..7d46ba9 100644 --- a/examples/example_STATA.do +++ b/examples/example_STATA.do @@ -7,9 +7,9 @@ Read a 'full' Household dataset from Data Bridges and load it into STATA. Only works if user has STATA 18+ installed and added to PATH. """ -from data_bridges_utils import DataBridgesShapes -from data_bridges_utils.labels import get_column_labels, get_value_labels, map_value_labels -from data_bridges_utils.load_stata import load_stata +from data_bridges_knots import DataBridgesShapes +from data_bridges_knots.labels import get_column_labels, get_value_labels, map_value_labels +from data_bridges_knots.load_stata import load_stata import numpy as np import stata_setup from sfi import Data, Macro, SFIToolkit, Frame, Datetime as dt diff --git a/examples/example_python.py b/examples/example_python.py index a92e8dc..b1f074f 100644 --- a/examples/example_python.py +++ b/examples/example_python.py @@ -1,5 +1,5 @@ """ -Reads Household Data from Data Bridges. The script uses the DataBridgesShapes class from the data_bridges_utils module to interact with the Data Bridges API and retrieve various datasets, including: +Reads Household Data from Data Bridges. The script uses the DataBridgesShapes class from the data_bridges_knots module to interact with the Data Bridges API and retrieve various datasets, including: - Household survey data - GORP (Global Operational Response Plan) data - Exchange rates and prices for Afghanistan diff --git a/pyproject.toml b/pyproject.toml index df36699..0bc7a20 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=61.0.0", "wheel"] build-backend = "setuptools.build_meta" [project] -name = "data_bridges_utils" +name = "data_bridges_knots" version = "0.1.0" authors = [{ name = "Alessandra Gherardelli", email = "alessandra.gherardelli@wfp.org" }, {name = "Valerio Giuffrida", email = "valerio.giuffrida@wfp.org"}] description = "Wrapper for Data Bridges API client" @@ -28,4 +28,4 @@ data-bridges-utils-STATA = ["stata-setup", "pystata"] data-bridges-utils-R = [] [tool.setuptools] -packages = ["data_bridges_utils"] +packages = ["data_bridges_knots"] diff --git a/setup.py b/setup.py index dfabd95..5bfded6 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ long_description = f.read() setup( - name='data_bridges_utils', + name='data_bridges_knots', version='0.1.0', description='Wrapper for Data Bridges API client', long_description=long_description,