Skip to main content

CI codecov GitHub Release PyPI PyPI - Downloads Buy me a coffee PayPal_Me Revolut.Me

gios

Python wrapper for getting air quality data from GIOŚ (Główny Inspektorat Ochrony Środowiska)

How to find station_id

How to use package

"""Example for GIOS."""
import asyncio
import logging

from aiohttp import ClientError, ClientSession

from gios import ApiError, Gios, InvalidSensorsData, NoStationError

GIOS_STATION_ID = 568

logging.basicConfig(level=logging.DEBUG)


async def main() -> None:
    """Run main function."""
    async with ClientSession() as websession:
        gios = Gios(GIOS_STATION_ID, websession)
        try:
            data = await gios.async_update()
        except (ApiError, NoStationError, InvalidSensorsData, ClientError) as error:
            print(error)
            return

    latitude = gios.latitude
    longitude = gios.longitude
    station_name = gios.station_name
    print(f"Longitude: {longitude}")
    print(f"Latitude: {latitude}")
    print(f"Station name: {station_name}")
    print(data)


loop = asyncio.get_event_loop()
loop.run_until_complete(main())
loop.close()

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

How to create a dev environment

git clone https://github.com/bieniu/gios.git
cd gios
./scripts/setup-local-env.sh

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gios-7.1.1.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gios-7.1.1-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file gios-7.1.1.tar.gz.

File metadata

  • Download URL: gios-7.1.1.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for gios-7.1.1.tar.gz
Algorithm Hash digest
SHA256 d931c11220c5cf8f7be78799954296fb78e69d68c329df1bff6c2584c28c2983
MD5 c45a9af5610166ffbdca7cbb3a423e18
BLAKE2b-256 9947806d23dbf1b428844bc94e7da9ea767e4d776a4ae4a027b9b1bb68bb30b7

See more details on using hashes here.

Provenance

The following attestation bundles were made for gios-7.1.1.tar.gz:

Publisher: publish.yml on bieniu/gios

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gios-7.1.1-py3-none-any.whl.

File metadata

  • Download URL: gios-7.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for gios-7.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1b49e923fce0e035b30fa96c607c000c8d938073ec7820edaa664822add22830
MD5 35248853d18ce0f3316c5633c223b85c
BLAKE2b-256 8f44a23d497fa4d98a5e46167f501d3f0ffc0db3448fb4fc0f2a45ac2d4e04a9

See more details on using hashes here.

Provenance

The following attestation bundles were made for gios-7.1.1-py3-none-any.whl:

Publisher: publish.yml on bieniu/gios

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

7.1.1 This release

2 files

7.1.0

2 files

7.0.0

2 files

6.1.2

2 files

6.1.1

2 files

6.1.0

2 files

6.0.0

2 files

5.0.0

2 files

4.0.0

2 files

3.2.2

2 files

3.2.1

2 files

3.2.0

2 files

3.1.0

2 files

3.0.0

2 files

2.3.0

2 files

2.1.0

2 files

2.0.0

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

0.2.1

2 files

0.2.0

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page