Application
app
¶
Attributes¶
insert_data
module-attribute
¶
Handle the insert data workflow.
Purpose
Supports the Mappy Streamlit application by executing the insert data workflow.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table_name
|
str value representing the name of the table. |
required | |
df
|
pd.DataFrame value used by the |
required |
Classes¶
ManagedConnection
¶
Bases: Connection
Represent the Managed Connection component for the Mappy Streamlit application.
Purpose
Provides the Managed Connection class used by the Mappy Streamlit application. The class preserves application state, data-access behavior, and UI-facing integration points required by the existing workflow.
Functions:¶
throw_if
¶
Validate that a required value is present.
Purpose
Raises a clear validation error when a required argument is missing, blank, or empty. The helper is used by Streamlit utilities and data workflows before values are consumed by UI, database, or service logic.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
str value used by the |
required |
value
|
object
|
object value used by the |
required |
Raises:
| Type | Description |
|---|---|
Exception
|
Propagates validation, UI, data, database, or provider errors raised by the existing implementation. |
Source code in app.py
style_subheaders
¶
Handle the style subheaders workflow.
Purpose
Supports the Mappy Streamlit application by executing the style subheaders workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Source code in app.py
init_state
¶
Handle the init state workflow.
Purpose
Supports the Mappy Streamlit application by executing the init state workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
key
|
str
|
str value used by the |
required |
value
|
Any
|
Any value used by the |
required |
Source code in app.py
init_env_state
¶
Handle the init env state workflow.
Purpose
Supports the Mappy Streamlit application by executing the init env state workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
key
|
str
|
str value used by the |
required |
config_name
|
str
|
str value used by the |
required |
env_name
|
str
|
str value used by the |
required |
Source code in app.py
normalize
¶
Handle the normalize workflow.
Purpose
Supports the Mappy Streamlit application by executing the normalize workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
obj
|
str
|
str Runtime value used by the |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Result produced by the |
Source code in app.py
set_blue_divider
¶
Set the blue divider used by the application.
Purpose
Supports the Mappy Streamlit application by executing the set blue divider workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Source code in app.py
log_step
¶
Handle the log step workflow.
Purpose
Supports the Mappy Streamlit application by executing the log step workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
msg
|
str
|
str value used by the |
required |
Source code in app.py
render_celestial_map
¶
render_celestial_map(
asset_root: str = "assets/starmap",
height: int = 1400,
latitude: Optional[float] = None,
longitude: Optional[float] = None,
tile_url: Optional[str] = None,
tile_attribution: Optional[str] = None,
tile_subdomains: Optional[str] = None,
location: Optional[str] = None,
zoom: Optional[int] = None,
) -> None
Render the celestial map interface section.
Purpose
Supports the Mappy Streamlit application by executing the render celestial map workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
asset_root
|
str
|
str value used by the |
'assets/starmap'
|
height
|
int
|
int value used by the |
1400
|
latitude
|
Optional[float]
|
Optional[float] value used by the |
None
|
longitude
|
Optional[float]
|
Optional[float] value used by the |
None
|
tile_url
|
Optional[str]
|
Optional[str] value used by the |
None
|
tile_attribution
|
Optional[str]
|
Optional[str] value used by the |
None
|
tile_subdomains
|
Optional[str]
|
Optional[str] value used by the |
None
|
location
|
Optional[str]
|
Optional[str] value used by the |
None
|
zoom
|
Optional[int]
|
Optional[int] value used by the |
None
|
Source code in app.py
594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 | |
has_valid_coordinates
¶
Handle the has valid coordinates workflow.
Purpose
Supports the Mappy Streamlit application by executing the has valid coordinates workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
latitude
|
object
|
object value used by the |
required |
longitude
|
object
|
object value used by the |
required |
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
Result produced by the |
Source code in app.py
has_valid_global_coordinates
¶
Handle the has valid global coordinates workflow.
Purpose
Supports the Mappy Streamlit application by executing the has valid global coordinates workflow. The function preserves the existing UI behavior, session- state interactions, dataframe handling, database access, and service integrations defined by the application code.
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
Result produced by the |
Source code in app.py
set_coordinates
¶
Set the coordinates used by the application.
Purpose
Supports the Mappy Streamlit application by executing the set coordinates workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
latitude
|
object
|
object value used by the |
required |
longitude
|
object
|
object value used by the |
required |
Source code in app.py
get_location_state
¶
Return the location state used by the application.
Purpose
Supports the Mappy Streamlit application by executing the get location state workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Returns:
| Type | Description |
|---|---|
Dict[str, object]
|
Dict[str, object]: Result produced by the |
Source code in app.py
set_location_state
¶
set_location_state(
location: Optional[str] = None,
city: Optional[str] = None,
state: Optional[str] = None,
country: Optional[str] = None,
zipcode: Optional[str] = None,
description: Optional[str] = None,
latitude: Optional[float] = None,
longitude: Optional[float] = None,
) -> None
Set the location state used by the application.
Purpose
Supports the Mappy Streamlit application by executing the set location state workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
location
|
Optional[str]
|
Optional[str] value used by the |
None
|
city
|
Optional[str]
|
Optional[str] value used by the |
None
|
state
|
Optional[str]
|
Optional[str] value used by the |
None
|
country
|
Optional[str]
|
Optional[str] value used by the |
None
|
zipcode
|
Optional[str]
|
Optional[str] value used by the |
None
|
description
|
Optional[str]
|
Optional[str] value used by the |
None
|
latitude
|
Optional[float]
|
Optional[float] value used by the |
None
|
longitude
|
Optional[float]
|
Optional[float] value used by the |
None
|
Source code in app.py
compose_location_from_state
¶
Handle the compose location from state workflow.
Purpose
Supports the Mappy Streamlit application by executing the compose location from state workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Result produced by the |
Source code in app.py
resolve_table_name
¶
Handle the resolve table name workflow.
Purpose
Supports the Mappy Streamlit application by executing the resolve table name workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
requested
|
str
|
str value used by the |
required |
tables
|
List[str]
|
List[str] value used by the |
required |
Returns:
| Type | Description |
|---|---|
Optional[str]
|
Optional[str]: Result produced by the |
Source code in app.py
get_default_location
¶
Return the default location used by the application.
Purpose
Supports the Mappy Streamlit application by executing the get default location workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
fallback
|
str
|
str value used by the |
'Washington, DC'
|
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Result produced by the |
Source code in app.py
get_default_zipcode
¶
Return the default zipcode used by the application.
Purpose
Supports the Mappy Streamlit application by executing the get default zipcode workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
fallback
|
str
|
str value used by the |
'20001'
|
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Result produced by the |
Source code in app.py
get_default_latitude
¶
Return the default latitude used by the application.
Purpose
Supports the Mappy Streamlit application by executing the get default latitude workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
fallback
|
float
|
float value used by the |
38.9072
|
Returns:
| Name | Type | Description |
|---|---|---|
float |
float
|
Result produced by the |
Source code in app.py
get_default_longitude
¶
Return the default longitude used by the application.
Purpose
Supports the Mappy Streamlit application by executing the get default longitude workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
fallback
|
float
|
float value used by the |
-77.0369
|
Returns:
| Name | Type | Description |
|---|---|---|
float |
float
|
Result produced by the |
Source code in app.py
set_global_coordinates_from_result
¶
set_global_coordinates_from_result(
latitude: object,
longitude: object,
location: Optional[str] = None,
description: Optional[str] = None,
) -> None
Set the global coordinates from result used by the application.
Purpose
Supports the Mappy Streamlit application by executing the set global coordinates from result workflow. The function preserves the existing UI behavior, session- state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
latitude
|
object
|
object value used by the |
required |
longitude
|
object
|
object value used by the |
required |
location
|
Optional[str]
|
Optional[str] value used by the |
None
|
description
|
Optional[str]
|
Optional[str] value used by the |
None
|
Source code in app.py
create_bounding_box_from_center
¶
create_bounding_box_from_center(
latitude: object,
longitude: object,
delta: float = 0.125,
) -> Dict[str, float]
Create the bounding box from center used by the application.
Purpose
Supports the Mappy Streamlit application by executing the create bounding box from center workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
latitude
|
object
|
object value used by the |
required |
longitude
|
object
|
object value used by the |
required |
delta
|
float
|
float value used by the |
0.125
|
Returns:
| Type | Description |
|---|---|
Dict[str, float]
|
Dict[str, float]: Result produced by the |
Source code in app.py
get_geolocation_error_message
¶
Return the geolocation error message used by the application.
Purpose
Supports the Mappy Streamlit application by executing the get geolocation error message workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
error_code
|
object
|
object value used by the |
required |
error_message
|
object
|
object value used by the |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Result produced by the |
Source code in app.py
update_location_from_browser
¶
Handle the update location from browser workflow.
Purpose
Supports the Mappy Streamlit application by executing the update location from browser workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
geo
|
Dict[str, object]
|
Dict[str, object] value used by the |
required |
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
Result produced by the |
Source code in app.py
1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 | |
bootstrap_browser_geolocation
¶
bootstrap_browser_geolocation(geocoder: Geocoder) -> None
Handle the bootstrap browser geolocation workflow.
Purpose
Supports the Mappy Streamlit application by executing the bootstrap browser geolocation workflow. The function preserves the existing UI behavior, session- state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
geocoder
|
Geocoder
|
Geocoder value used by the |
required |
Source code in app.py
create_reports_map
¶
create_reports_map(
df: DataFrame,
df_overlay: Optional[DataFrame] = None,
use_user_location: bool = True,
key_prefix: str = "reports_map",
) -> None
Create the reports map used by the application.
Purpose
Supports the Mappy Streamlit application by executing the create reports map workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
df
|
DataFrame
|
pd.DataFrame value used by the |
required |
df_overlay
|
Optional[DataFrame]
|
Optional[pd.DataFrame] value used by the |
None
|
use_user_location
|
bool
|
bool value used by the |
True
|
key_prefix
|
str
|
str value used by the |
'reports_map'
|
Source code in app.py
1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 | |
compose_location_query
¶
Handle the compose location query workflow.
Purpose
Supports the Mappy Streamlit application by executing the compose location query workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
city
|
object
|
object value used by the |
required |
state
|
object
|
object value used by the |
required |
country
|
object
|
object value used by the |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Result produced by the |
Source code in app.py
get_value_by_path
¶
Return the value by path used by the application.
Purpose
Supports the Mappy Streamlit application by executing the get value by path workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
obj
|
object
|
object value used by the |
required |
path
|
List[object]
|
List[object] value used by the |
required |
Returns:
| Name | Type | Description |
|---|---|---|
object |
object
|
Result produced by the |
Source code in app.py
extract_coordinates
¶
Handle the extract coordinates workflow.
Purpose
Supports the Mappy Streamlit application by executing the extract coordinates workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
result
|
object
|
object value used by the |
required |
Returns:
| Type | Description |
|---|---|
Tuple[Optional[float], Optional[float]]
|
Tuple[Optional[float], Optional[float]]: Result produced by the
|
Source code in app.py
1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 | |
count_missing_report_coordinate_rows
¶
Handle the count missing report coordinate rows workflow.
Purpose
Supports the Mappy Streamlit application by executing the count missing report coordinate rows workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table_name
|
str
|
str value used by the |
required |
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
Result produced by the |
Source code in app.py
read_missing_report_locations
¶
Read the missing report locations for application processing.
Purpose
Supports the Mappy Streamlit application by executing the read missing report locations workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table_name
|
str
|
str value used by the |
required |
limit
|
Optional[int]
|
Optional[int] value used by the |
None
|
Returns:
| Type | Description |
|---|---|
DataFrame
|
pd.DataFrame: Result produced by the |
Source code in app.py
preview_report_coordinate_updates
¶
preview_report_coordinate_updates(
table_name: str,
geocoder: Geocoder,
places: Place,
use_places: bool = True,
limit: Optional[int] = None,
) -> DataFrame
Handle the preview report coordinate updates workflow.
Purpose
Supports the Mappy Streamlit application by executing the preview report coordinate updates workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table_name
|
str
|
str value used by the |
required |
geocoder
|
Geocoder
|
Geocoder value used by the |
required |
places
|
Place
|
Place value used by the |
required |
use_places
|
bool
|
bool value used by the |
True
|
limit
|
Optional[int]
|
Optional[int] value used by the |
None
|
Returns:
| Type | Description |
|---|---|
DataFrame
|
pd.DataFrame: Result produced by the |
Raises:
| Type | Description |
|---|---|
Exception
|
Propagates validation, UI, data, database, or provider errors raised by the existing implementation. |
Source code in app.py
1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 | |
apply_report_coordinate_updates
¶
Apply the report coordinate updates operation.
Purpose
Supports the Mappy Streamlit application by executing the apply report coordinate updates workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table_name
|
str
|
str value used by the |
required |
df_updates
|
DataFrame
|
pd.DataFrame value used by the |
required |
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
Result produced by the |
Raises:
| Type | Description |
|---|---|
Exception
|
Propagates validation, UI, data, database, or provider errors raised by the existing implementation. |
Source code in app.py
1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 | |
append_geocoding_map_result
¶
Handle the append geocoding map result workflow.
Purpose
Supports the Mappy Streamlit application by executing the append geocoding map result workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
query
|
str
|
str value used by the |
required |
source
|
str
|
str value used by the |
required |
result
|
object
|
object value used by the |
required |
Source code in app.py
initialize_database
¶
Handle the initialize database workflow.
Purpose
Supports the Mappy Streamlit application by executing the initialize database workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Source code in app.py
2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 | |
create_connection
¶
Create the connection used by the application.
Purpose
Supports the Mappy Streamlit application by executing the create connection workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Returns:
| Type | Description |
|---|---|
Connection
|
sqlite3.Connection: Result produced by the |
Source code in app.py
list_tables
¶
Handle the list tables workflow.
Purpose
Supports the Mappy Streamlit application by executing the list tables workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: Result produced by the |
Source code in app.py
create_schema
¶
Create the schema used by the application.
Purpose
Supports the Mappy Streamlit application by executing the create schema workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table
|
str
|
str value used by the |
required |
Returns:
| Type | Description |
|---|---|
List[Tuple]
|
List[Tuple]: Result produced by the |
Source code in app.py
read_table
¶
Read the table for application processing.
Purpose
Supports the Mappy Streamlit application by executing the read table workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table
|
str
|
str value used by the |
required |
limit
|
int
|
int value used by the |
None
|
offset
|
int
|
int value used by the |
0
|
Returns:
| Type | Description |
|---|---|
DataFrame
|
pd.DataFrame: Result produced by the |
Source code in app.py
2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 | |
render_table
¶
Render the table interface section.
Purpose
Supports the Mappy Streamlit application by executing the render table workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
df
|
DataFrame
|
pd.DataFrame value used by the |
required |
Source code in app.py
make_display_safe
¶
Handle the make display safe workflow.
Purpose
Supports the Mappy Streamlit application by executing the make display safe workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
df
|
DataFrame
|
pd.DataFrame value used by the |
required |
Returns:
| Type | Description |
|---|---|
DataFrame
|
pd.DataFrame: Result produced by the |
Source code in app.py
drop_table
¶
Handle the drop table workflow.
Purpose
Supports the Mappy Streamlit application by executing the drop table workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table
|
str
|
str value used by the |
required |
Source code in app.py
create_index
¶
Create the index used by the application.
Purpose
Supports the Mappy Streamlit application by executing the create index workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table
|
str
|
str value used by the |
required |
column
|
str
|
str value used by the |
required |
Raises:
| Type | Description |
|---|---|
Exception
|
Propagates validation, UI, data, database, or provider errors raised by the existing implementation. |
Source code in app.py
apply_filters
¶
Apply the filters operation.
Purpose
Supports the Mappy Streamlit application by executing the apply filters workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
df
|
DataFrame
|
pd.DataFrame value used by the |
required |
Returns:
| Type | Description |
|---|---|
DataFrame
|
pd.DataFrame: Result produced by the |
Source code in app.py
create_aggregation
¶
Create the aggregation used by the application.
Purpose
Supports the Mappy Streamlit application by executing the create aggregation workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
df
|
DataFrame
|
pd.DataFrame value used by the |
required |
Source code in app.py
create_visualization
¶
Create the visualization used by the application.
Purpose
Supports the Mappy Streamlit application by executing the create visualization workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
df
|
DataFrame
|
pd.DataFrame value used by the |
required |
Source code in app.py
2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 | |
convert_dataframe
¶
Handle the convert dataframe workflow.
Purpose
Supports the Mappy Streamlit application by executing the convert dataframe workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table_name
|
str
|
str value used by the |
required |
df
|
DataFrame
|
pd.DataFrame value used by the |
required |
Source code in app.py
get_sqlite_type
¶
Return the sqlite type used by the application.
Purpose
Supports the Mappy Streamlit application by executing the get sqlite type workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dtype
|
str
|
str Runtime value used by the |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Result produced by the |
Source code in app.py
create_custom_table
¶
Create the custom table used by the application.
Purpose
Supports the Mappy Streamlit application by executing the create custom table workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table_name
|
str
|
str value used by the |
required |
columns
|
list
|
list value used by the |
required |
Raises:
| Type | Description |
|---|---|
Exception
|
Propagates validation, UI, data, database, or provider errors raised by the existing implementation. |
Source code in app.py
is_safe_query
¶
Handle the is safe query workflow.
Purpose
Supports the Mappy Streamlit application by executing the is safe query workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
query
|
str
|
str value used by the |
required |
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
Result produced by the |
Source code in app.py
create_identifier
¶
Create the identifier used by the application.
Purpose
Supports the Mappy Streamlit application by executing the create identifier workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
str value used by the |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Result produced by the |
Raises:
| Type | Description |
|---|---|
Exception
|
Propagates validation, UI, data, database, or provider errors raised by the existing implementation. |
Source code in app.py
get_indexes
¶
Return the indexes used by the application.
Purpose
Supports the Mappy Streamlit application by executing the get indexes workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table
|
str
|
str value used by the |
required |
Returns:
| Type | Description |
|---|---|
List[int]
|
List[ int ]: Result produced by the |
Source code in app.py
add_column
¶
Handle the add column workflow.
Purpose
Supports the Mappy Streamlit application by executing the add column workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table
|
str
|
str value used by the |
required |
column
|
str
|
str value used by the |
required |
col_type
|
str
|
str value used by the |
required |
Source code in app.py
rename_column
¶
Handle the rename column workflow.
Purpose
Supports the Mappy Streamlit application by executing the rename column workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table_name
|
str
|
str value used by the |
required |
old_name
|
str
|
str value used by the |
required |
new_name
|
str
|
str value used by the |
required |
Raises:
| Type | Description |
|---|---|
Exception
|
Propagates validation, UI, data, database, or provider errors raised by the existing implementation. |
Source code in app.py
3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 | |
create_profile_table
¶
Create the profile table used by the application.
Purpose
Supports the Mappy Streamlit application by executing the create profile table workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table
|
str
|
str value used by the |
required |
Returns:
| Name | Type | Description |
|---|---|---|
object |
object
|
Result produced by the |
Source code in app.py
drop_column
¶
Handle the drop column workflow.
Purpose
Supports the Mappy Streamlit application by executing the drop column workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table
|
str
|
str value used by the |
required |
column
|
str
|
str value used by the |
required |
Raises:
| Type | Description |
|---|---|
Exception
|
Propagates validation, UI, data, database, or provider errors raised by the existing implementation. |
Source code in app.py
3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 | |
rename_table
¶
Handle the rename table workflow.
Purpose
Supports the Mappy Streamlit application by executing the rename table workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
old_name
|
str
|
str value used by the |
required |
new_name
|
str
|
str value used by the |
required |
Raises:
| Type | Description |
|---|---|
Exception
|
Propagates validation, UI, data, database, or provider errors raised by the existing implementation. |
Source code in app.py
3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 | |
has_loaded_dataset
¶
Handle the has loaded dataset workflow.
Purpose
Supports the Mappy Streamlit application by executing the has loaded dataset workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
df_frame
|
object
|
object value used by the |
required |
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
Result produced by the |
Source code in app.py
get_loaded_dataset
¶
Return the loaded dataset used by the application.
Purpose
Supports the Mappy Streamlit application by executing the get loaded dataset workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Returns:
| Type | Description |
|---|---|
DataFrame | None
|
pd.DataFrame | None: Result produced by the |
Source code in app.py
store_loaded_dataset
¶
Handle the store loaded dataset workflow.
Purpose
Supports the Mappy Streamlit application by executing the store loaded dataset workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
df_dataset
|
DataFrame
|
pd.DataFrame value used by the |
required |
df_original
|
DataFrame | None
|
pd.DataFrame | None value used by the |
None
|
Source code in app.py
clear_webscrape_state
¶
Clear the webscrape state state.
Purpose
Supports the Mappy Streamlit application by executing the clear webscrape state workflow. The function preserves the existing UI behavior, session-state interactions, dataframe handling, database access, and service integrations defined by the application code.