o
    +&]iP  ã                   @  sÞ   U d dl mZ d dlZd dlmZ ejdkrd dlmZ nd dlmZ ejdkr/d dlmZ nd dlmZ ejdkrAd d	lm	Z	 nd d	lm	Z	 g d
¢Z
ed Zded< ed Zded< G dd„ deddZed Zded< dS )é    )ÚannotationsN)ÚLiteral)é   é   )Ú	TypedDict)r   é   )ÚLiteralString)r   é
   )Ú	TypeAlias)ÚDatasetÚ	ExtensionÚMetadata)IÚairportsÚannual_precipÚanscombeÚbarleyÚbirdstrikesÚbudgetÚbudgetsÚburtinÚcarsÚco2_concentrationÚ	countriesÚcrimeaÚ	disastersÚdrivingÚearthquakesÚffoxÚflareÚflare_dependenciesÚflights_10kÚflights_200k_arrowÚflights_200k_jsonÚflights_20kÚ
flights_2kÚ
flights_3mÚ
flights_5kÚflights_airportÚfootballÚ	gapminderÚgapminder_health_incomeÚgimpÚgithubÚglobal_tempÚ	icon_7zipÚincomeÚiowa_electricityÚjobsÚla_riotsÚlondon_boroughsÚlondon_centroidsÚlondon_tube_linesÚlookup_groupsÚlookup_peopleÚ
miserablesÚmonarchsÚmoviesÚ	normal_2dÚobesityÚohlcÚpenguinsÚplatformer_terrainÚpolitical_contributionsÚ
populationÚpopulation_engineers_hurricanesÚseattle_weatherÚseattle_weather_hourly_normalsÚsp500Ú
sp500_2000ÚspeciesÚstocksÚ	udistrictÚunemploymentÚunemployment_across_industriesÚ
uniform_2dÚus_10mÚus_employmentÚus_state_capitalsÚvolcanoÚweatherÚweekly_weatherÚwheatÚwindvectorsÚ
world_110mÚzipcodesr
   r   )z.arrowz.csvz.jsonz.parquetz.pngz.tsvr   c                   @  sz   e Zd ZU dZded< ded< ded< ded	< d
ed< d
ed< d
ed< d
ed< d
ed< d
ed< d
ed< ded< ded< dS )r   uZ  
    Full schema for ``metadata.parquet``.

    Parameters
    ----------
    dataset_name
        Name of the dataset from the resource name field.
    suffix
        File extension/`Path.suffix`_.
    file_name
        Equivalent to `Path.name`_.
    bytes
        File size in *bytes*.
    is_image
        Only accessible via url.
    is_tabular
        Can be read as tabular data.
    is_geo
        `GeoJSON`_ format.
    is_topo
        `TopoJSON`_ format.
    is_spatial
        Any geospatial format. Only natively supported by ``polars``.
    is_json
        Not supported natively by ``pyarrow``.
    has_schema
        Data types available for improved ``pandas`` parsing.
    sha
        Unique hash for the dataset.

        .. note::
            E.g. if the dataset did *not* change between ``v1.0.0``-``v2.0.0``;

            then this value would remain stable.
    url
        Remote url used to access dataset.

    .. _Path.stem:
        https://docs.python.org/3/library/pathlib.html#pathlib.PurePath.stem
    .. _Path.name:
        https://docs.python.org/3/library/pathlib.html#pathlib.PurePath.name
    .. _Path.suffix:
        https://docs.python.org/3/library/pathlib.html#pathlib.PurePath.suffix
    .. _GeoJSON:
        https://en.wikipedia.org/wiki/GeoJSON
    .. _TopoJSON:
        https://en.wikipedia.org/wiki/GeoJSON#TopoJSON


    Examples
    --------
    ``Metadata`` keywords form constraints to filter a table like the below sample:

    ```
    shape: (73, 13)
    â”Œâ”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”¬â”€â”€â”€â”€â”€â”€â”€â”€â”¬â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”¬â”€â”€â”€â”¬â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”¬â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”
    â”‚ dataset_name   â”† suffix â”† file_name      â”† â€¦ â”† sha           â”† url           â”‚
    â”‚ ---            â”† ---    â”† ---            â”†   â”† ---           â”† ---           â”‚
    â”‚ str            â”† str    â”† str            â”†   â”† str           â”† str           â”‚
    â•žâ•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•ªâ•â•â•â•â•â•â•â•â•ªâ•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•ªâ•â•â•â•ªâ•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•ªâ•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•¡
    â”‚ airports       â”† .csv   â”† airports.csv   â”† â€¦ â”† 608ba6d51fa70 â”† https://cdn.j â”‚
    â”‚                â”†        â”†                â”†   â”† 584c3fa1d31eâ€¦ â”† sdelivr.net/â€¦ â”‚
    â”‚ annual_precip  â”† .json  â”† annual-precip. â”† â€¦ â”† 719e73406cfc0 â”† https://cdn.j â”‚
    â”‚                â”†        â”† json           â”†   â”† 8f16dda65151â€¦ â”† sdelivr.net/â€¦ â”‚
    â”‚ anscombe       â”† .json  â”† anscombe.json  â”† â€¦ â”† 11ae97090b626 â”† https://cdn.j â”‚
    â”‚                â”†        â”†                â”†   â”† 3bdf0c866115â€¦ â”† sdelivr.net/â€¦ â”‚
    â”‚ barley         â”† .json  â”† barley.json    â”† â€¦ â”† 8dc50de2509b6 â”† https://cdn.j â”‚
    â”‚                â”†        â”†                â”†   â”† e197ce95c24câ€¦ â”† sdelivr.net/â€¦ â”‚
    â”‚ birdstrikes    â”† .csv   â”† birdstrikes.cs â”† â€¦ â”† 1b8b190c9bc02 â”† https://cdn.j â”‚
    â”‚                â”†        â”† v              â”†   â”† ef7bcbfe5a8aâ€¦ â”† sdelivr.net/â€¦ â”‚
    â”‚ â€¦              â”† â€¦      â”† â€¦              â”† â€¦ â”† â€¦             â”† â€¦             â”‚
    â”‚ weekly_weather â”† .json  â”† weekly-weather â”† â€¦ â”† bd42a3e2403e7 â”† https://cdn.j â”‚
    â”‚                â”†        â”† .json          â”†   â”† ccd6baaa89f9â€¦ â”† sdelivr.net/â€¦ â”‚
    â”‚ wheat          â”† .json  â”† wheat.json     â”† â€¦ â”† cde46b43fc82f â”† https://cdn.j â”‚
    â”‚                â”†        â”†                â”†   â”† 4c3c2a37ddcfâ€¦ â”† sdelivr.net/â€¦ â”‚
    â”‚ windvectors    â”† .csv   â”† windvectors.cs â”† â€¦ â”† ed686b0ba613a â”† https://cdn.j â”‚
    â”‚                â”†        â”† v              â”†   â”† bd59d09fcd94â€¦ â”† sdelivr.net/â€¦ â”‚
    â”‚ world_110m     â”† .json  â”† world-110m.jso â”† â€¦ â”† a1ce852de6f27 â”† https://cdn.j â”‚
    â”‚                â”†        â”† n              â”†   â”† 13c94c0c2840â€¦ â”† sdelivr.net/â€¦ â”‚
    â”‚ zipcodes       â”† .csv   â”† zipcodes.csv   â”† â€¦ â”† d3df33e12be0d â”† https://cdn.j â”‚
    â”‚                â”†        â”†                â”†   â”† 0544c95f1bd4â€¦ â”† sdelivr.net/â€¦ â”‚
    â””â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”´â”€â”€â”€â”€â”€â”€â”€â”€â”´â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”´â”€â”€â”€â”´â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”´â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”˜
    ```
    zDataset | LiteralStringÚdataset_namer   ÚsuffixÚstrÚ	file_nameÚintÚbytesÚboolÚis_imageÚ
is_tabularÚis_geoÚis_topoÚ
is_spatialÚis_jsonÚ
has_schemaÚshaÚurlN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú__annotations__© rl   rl   úU/var/www/html/IGF-ODF-V3/venv/lib/python3.10/site-packages/altair/datasets/_typing.pyr   i   s   
 Ur   F)Útotal)
ÚintegerÚnumberÚbooleanÚstringÚobjectÚarrayÚdateÚdatetimeÚtimeÚdurationÚ
FlFieldStr)Ú
__future__r   ÚsysÚtypingr   Úversion_infor   Útyping_extensionsr   r
   Ú__all__r   rk   r   r   ry   rl   rl   rl   rm   Ú<module>   s,   


ÿKeÿ