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
|
str value representing the name of the table. |
required |
df
|
DataFrame
|
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
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
|
float
|
Optional[float] value used by the |
None
|
longitude
|
float
|
Optional[float] value used by the |
None
|
tile_url
|
str
|
Optional[str] value used by the |
None
|
tile_attribution
|
str
|
Optional[str] value used by the |
None
|
tile_subdomains
|
str
|
Optional[str] value used by the |
None
|
location
|
str
|
Optional[str] value used by the |
None
|
zoom
|
int
|
Optional[int] value used by the |
None
|
Source code in app.py
562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 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 | |
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
1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 | |
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
|
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
1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 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 | |
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
list_spatial_tables
¶
Return database tables containing both geographic coordinate columns.
Purpose
Exclude reference, instruction, conversation, and embedding tables from GIS selectors.
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: Existing spatial table names. |
Source code in app.py
get_geocode_expressions
¶
Return quoted SQL expressions for the selected spatial table.
Purpose
Use identical location grouping and missing-coordinate criteria for count, preview, and update operations. Named facilities are resolved by name and available locality.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table_name
|
str
|
Existing spatial database table name. |
required |
Returns:
| Type | Description |
|---|---|
Tuple[str, str, str, str]
|
Tuple[str, str, str, str]: Locality, state, country, and missing-coordinate expressions. |
Raises:
| Type | Description |
|---|---|
ValueError
|
When the table has no supported location or coordinate fields. |
Source code in app.py
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
1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 | |
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
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 | |
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
¶
Initialize application support tables without altering existing data.
Purpose
Create only missing application support tables using the current SQLite schema. Existing databases and records are retained.
Returns:
| Name | Type | Description |
|---|---|---|
None |
None
|
Creates missing tables through the managed database connection. |
Source code in app.py
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
2126 2127 2128 2129 2130 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 2214 | |
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
2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 | |
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
2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 | |
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
2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 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 | |
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
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 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 | |
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.