Skip to content

Commit

Permalink
Renamed utils with knots
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexGherardelli committed Jun 20, 2024
1 parent afb10cf commit 3c10ac2
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions examples/example_R.R
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions examples/example_STATA.do
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/example_python.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "[email protected]" }, {name = "Valerio Giuffrida", email = "[email protected]"}]
description = "Wrapper for Data Bridges API client"
Expand All @@ -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"]
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3c10ac2

Please sign in to comment.