From 79afb6c61f449da5a4c1447185bbfcc1c52381b7 Mon Sep 17 00:00:00 2001 From: Arun Sharma Date: Thu, 9 Apr 2026 18:01:28 -0700 Subject: [PATCH] rename: real_ladybug -> ladybug --- .github/workflows/ci.yml | 2 +- CMakeLists.txt | 6 +++--- Makefile | 6 +++--- pyproject.toml | 2 +- src_py/__init__.py | 4 ++-- test/benchmark_arrow.py | 4 ++-- test/conftest.py | 4 ++-- test/ground_truth.py | 2 +- test/test_arrow.py | 4 ++-- test/test_async_connection.py | 2 +- test/test_connection.py | 2 +- test/test_database.py | 4 ++-- test/test_datatype.py | 2 +- test/test_df.py | 4 ++-- test/test_exception.py | 2 +- test/test_fsm.py | 2 +- test/test_iteration.py | 2 +- test/test_mvcc_bank.py | 4 ++-- test/test_networkx.py | 2 +- test/test_query_result_close.py | 2 +- test/test_scan_pandas.py | 4 ++-- test/test_torch_geometric.py | 2 +- test/test_udf.py | 2 +- test/test_version.py | 2 +- test/test_wal.py | 4 ++-- test/type_aliases.py | 2 +- 26 files changed, 39 insertions(+), 39 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 41e9960..af79ef7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -77,7 +77,7 @@ jobs: CMAKE_CXX_COMPILER_LAUNCHER: ccache run: | make python - cp tools/python_api/src_py/*.py tools/python_api/build/real_ladybug/ + cp tools/python_api/src_py/*.py tools/python_api/build/ladybug/ - name: Run pytest working-directory: ladybug/tools/python_api diff --git a/CMakeLists.txt b/CMakeLists.txt index 29f8781..cef4e51 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,9 +29,9 @@ pybind11_add_module(_lbug set_target_properties(_lbug PROPERTIES - LIBRARY_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/build/real_ladybug" - RUNTIME_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/build/real_ladybug" - ARCHIVE_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/build/real_ladybug") + LIBRARY_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/build/ladybug" + RUNTIME_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/build/ladybug" + ARCHIVE_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/build/ladybug") target_link_libraries(_lbug PRIVATE diff --git a/Makefile b/Makefile index 153e1e2..5cb3814 100644 --- a/Makefile +++ b/Makefile @@ -42,12 +42,12 @@ check: requirements format: requirements $(VENV_BIN)/ruff format src_py test -build: ## Compile real_ladybug (and install in 'build') for Python +build: ## Compile ladybug (and install in 'build') for Python $(MAKE) -C ../../ python - cp src_py/*.py build/real_ladybug/ + cp src_py/*.py build/ladybug/ test: requirements ## Run the Python unit tests - cp src_py/*.py build/real_ladybug/ && cd build + cp src_py/*.py build/ladybug/ && cd build $(VENV_BIN)/pytest test help: ## Display this help information diff --git a/pyproject.toml b/pyproject.toml index 848b667..66ead46 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [project] -name = "real_ladybug" +name = "ladybug" description = "Highly scalable, extremely fast, easy-to-use embeddable graph database" readme = "README.md" license = { text = "MIT" } diff --git a/src_py/__init__.py b/src_py/__init__.py index ee15140..8b6acfb 100644 --- a/src_py/__init__.py +++ b/src_py/__init__.py @@ -5,12 +5,12 @@ To install the package, run: ``` -python3 -m pip install real_ladybug +python3 -m pip install ladybug ``` Example usage: ```python -import real_ladybug as lb +import ladybug as lb db = lb.Database("./test") conn = lb.Connection(db) diff --git a/test/benchmark_arrow.py b/test/benchmark_arrow.py index c38fdda..759c24a 100644 --- a/test/benchmark_arrow.py +++ b/test/benchmark_arrow.py @@ -15,10 +15,10 @@ python_build_dir = Path(__file__).parent.parent / "build" try: - import real_ladybug as lb + import ladybug as lb except ModuleNotFoundError: sys.path.append(str(python_build_dir)) - import real_ladybug as lb + import ladybug as lb def parse_args() -> argparse.Namespace: diff --git a/test/conftest.py b/test/conftest.py index 75a1717..3dd1526 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -11,10 +11,10 @@ python_build_dir = Path(__file__).parent.parent / "build" try: - import real_ladybug as lb + import ladybug as lb except ModuleNotFoundError: sys.path.append(str(python_build_dir)) - import real_ladybug as lb + import ladybug as lb if TYPE_CHECKING: from type_aliases import ConnDB diff --git a/test/ground_truth.py b/test/ground_truth.py index 1335a95..83cac88 100644 --- a/test/ground_truth.py +++ b/test/ground_truth.py @@ -1,7 +1,7 @@ from datetime import date, datetime, timedelta from uuid import UUID -from real_ladybug.constants import ID, LABEL +from ladybug.constants import ID, LABEL TINY_SNB_PERSONS_GROUND_TRUTH = { 0: { diff --git a/test/test_arrow.py b/test/test_arrow.py index 1b20711..0569d2a 100644 --- a/test/test_arrow.py +++ b/test/test_arrow.py @@ -11,9 +11,9 @@ import pyarrow as pa import pytest import pytz -import real_ladybug as lb +import ladybug as lb from pandas import Timestamp -from real_ladybug.constants import DST, ID, LABEL, NODES, SRC +from ladybug.constants import DST, ID, LABEL, NODES, SRC from type_aliases import ConnDB _expected_dtypes = { diff --git a/test/test_async_connection.py b/test/test_async_connection.py index 22de53b..6b486e7 100644 --- a/test/test_async_connection.py +++ b/test/test_async_connection.py @@ -3,7 +3,7 @@ import pyarrow as pa import pytest -import real_ladybug as lb +import ladybug as lb @pytest.mark.asyncio diff --git a/test/test_connection.py b/test/test_connection.py index 5e99196..37214a3 100644 --- a/test/test_connection.py +++ b/test/test_connection.py @@ -5,7 +5,7 @@ from typing import TYPE_CHECKING import pytest -import real_ladybug as lb +import ladybug as lb from type_aliases import ConnDB if TYPE_CHECKING: diff --git a/test/test_database.py b/test/test_database.py index ac2fc31..e7f4f77 100644 --- a/test/test_database.py +++ b/test/test_database.py @@ -6,7 +6,7 @@ from textwrap import dedent import pytest -import real_ladybug as lb +import ladybug as lb from conftest import get_db_file_path @@ -15,7 +15,7 @@ def open_database_on_subprocess(tmp_path: Path, build_dir: Path) -> None: import sys sys.path.append(r"{build_dir!s}") - import real_ladybug as lb + import ladybug as lb db = lb.Database(r"{tmp_path!s}") print(r"{tmp_path!s}") """) diff --git a/test/test_datatype.py b/test/test_datatype.py index 795cb2c..475cbff 100644 --- a/test/test_datatype.py +++ b/test/test_datatype.py @@ -8,7 +8,7 @@ import numpy as np import pandas as pd import pytz -from real_ladybug.constants import DST, ID, LABEL, NODES, RELS, SRC +from ladybug.constants import DST, ID, LABEL, NODES, RELS, SRC from type_aliases import ConnDB diff --git a/test/test_df.py b/test/test_df.py index 13b7299..8f4b0ca 100644 --- a/test/test_df.py +++ b/test/test_df.py @@ -7,9 +7,9 @@ from uuid import UUID import pytz -import real_ladybug as lb +import ladybug as lb from pandas import Timedelta, Timestamp -from real_ladybug.constants import DST, ID, LABEL, NODES, RELS, SRC +from ladybug.constants import DST, ID, LABEL, NODES, RELS, SRC from type_aliases import ConnDB diff --git a/test/test_exception.py b/test/test_exception.py index 73663e2..0034658 100644 --- a/test/test_exception.py +++ b/test/test_exception.py @@ -1,7 +1,7 @@ from __future__ import annotations import pytest -import real_ladybug as lb +import ladybug as lb from type_aliases import ConnDB diff --git a/test/test_fsm.py b/test/test_fsm.py index 163a94a..db1bd1f 100644 --- a/test/test_fsm.py +++ b/test/test_fsm.py @@ -1,7 +1,7 @@ from pathlib import Path import pytest -import real_ladybug as lb +import ladybug as lb from conftest import get_db_file_path from test_helper import LBUG_ROOT diff --git a/test/test_iteration.py b/test/test_iteration.py index b550f5c..b26aaf5 100644 --- a/test/test_iteration.py +++ b/test/test_iteration.py @@ -1,6 +1,6 @@ from __future__ import annotations -import real_ladybug as lb +import ladybug as lb from type_aliases import ConnDB diff --git a/test/test_mvcc_bank.py b/test/test_mvcc_bank.py index 28dfbda..7604289 100644 --- a/test/test_mvcc_bank.py +++ b/test/test_mvcc_bank.py @@ -2,7 +2,7 @@ Graph-based Jepsen Bank Test — MVCC anomaly detector. A pytest port of adsharma/mvcc-bank (https://github.com/adsharma/mvcc-bank), -adapted to use real_ladybug directly and fit into the tools/python_api/test +adapted to use ladybug directly and fit into the tools/python_api/test pytest suite. Anomalies checked @@ -33,7 +33,7 @@ from typing import TYPE_CHECKING import pytest -import real_ladybug as lb +import ladybug as lb if TYPE_CHECKING: from pathlib import Path diff --git a/test/test_networkx.py b/test/test_networkx.py index 59e3763..afae5e9 100644 --- a/test/test_networkx.py +++ b/test/test_networkx.py @@ -4,7 +4,7 @@ from typing import Any from pandas import Timedelta, Timestamp -from real_ladybug.constants import LABEL +from ladybug.constants import LABEL from type_aliases import ConnDB diff --git a/test/test_query_result_close.py b/test/test_query_result_close.py index 0bcc2f0..e5b3982 100644 --- a/test/test_query_result_close.py +++ b/test/test_query_result_close.py @@ -13,7 +13,7 @@ def test_query_result_close(tmp_path: Path, build_dir: Path) -> None: import sys sys.path.append(r"{build_dir!s}") - import real_ladybug as lb + import ladybug as lb db = lb.Database(r"{db_path!s}") conn = lb.Connection(db) conn.execute(''' diff --git a/test/test_scan_pandas.py b/test/test_scan_pandas.py index b57bb21..8bf506a 100644 --- a/test/test_scan_pandas.py +++ b/test/test_scan_pandas.py @@ -12,8 +12,8 @@ except ImportError: from backports.zoneinfo import ZoneInfo # type: ignore[no-redef] -import real_ladybug as lb -from real_ladybug.constants import ID, LABEL +import ladybug as lb +from ladybug.constants import ID, LABEL def validate_scan_pandas_results(results: lb.QueryResult) -> None: diff --git a/test/test_torch_geometric.py b/test/test_torch_geometric.py index 28a8257..205800f 100644 --- a/test/test_torch_geometric.py +++ b/test/test_torch_geometric.py @@ -4,7 +4,7 @@ import ground_truth import torch -from real_ladybug.constants import LABEL +from ladybug.constants import LABEL from type_aliases import ConnDB diff --git a/test/test_udf.py b/test/test_udf.py index 41b70ca..a59b773 100644 --- a/test/test_udf.py +++ b/test/test_udf.py @@ -5,7 +5,7 @@ import pandas as pd import pyarrow as pa import pytest -from real_ladybug import Type +from ladybug import Type from type_aliases import ConnDB diff --git a/test/test_version.py b/test/test_version.py index 1041d58..09b0bc8 100644 --- a/test/test_version.py +++ b/test/test_version.py @@ -1,5 +1,5 @@ def test_version() -> None: - import real_ladybug as lb + import ladybug as lb assert lb.version != "" assert lb.storage_version > 0 diff --git a/test/test_wal.py b/test/test_wal.py index cb6564d..85025b6 100644 --- a/test/test_wal.py +++ b/test/test_wal.py @@ -4,7 +4,7 @@ from pathlib import Path from textwrap import dedent -import real_ladybug as lb +import ladybug as lb from conftest import get_db_file_path @@ -14,7 +14,7 @@ def run_query_in_new_process(tmp_path: Path, build_dir: Path, queries: str): import sys sys.path.append(r"{build_dir!s}") - import real_ladybug as lb + import ladybug as lb db = lb.Database(r"{db_path!s}") """) + queries return subprocess.Popen([sys.executable, "-c", code]) diff --git a/test/type_aliases.py b/test/type_aliases.py index 00587b9..a17c05b 100644 --- a/test/type_aliases.py +++ b/test/type_aliases.py @@ -1,5 +1,5 @@ from typing import TypeAlias -from real_ladybug import Connection, Database +from ladybug import Connection, Database ConnDB: TypeAlias = tuple[Connection, Database]