{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/22"}],"enrichment":{"capability":"Async Python client for querying Sweden's Trafikverket public API to retrieve train stations, schedules, ferry routes, and weather data.","skillfed_tags":["async-http-client","swedish-transport","public-api-wrapper"],"use_cases":["Build a travel planner or commute app that queries real-time Swedish train schedules and station information.","Monitor ferry route availability and schedules for Swedish waterway transport.","Fetch weather conditions at Swedish transport hubs for operational decision-making.","Create a CLI tool or dashboard that displays next available train or ferry departures.","Integrate transport data into a broader Swedish logistics or mobility platform."],"what_it_does":"Pytrafikverket is an async Python wrapper around the Swedish Transport Administration's (Trafikverket) public API. It provides high-level methods to search and retrieve train station information, query train schedules between stations, look up ferry routes and schedules, and fetch weather data at transport locations. The library uses aiohttp for non-blocking HTTP requests, making it suitable for integration into async applications or services that need to poll transport data without blocking.\n\nThe package includes both a programmatic API (via TrafikverketTrain and related classes) and a CLI tool for direct queries. It requires an API key from Trafikverket and Python 3.11 or later. Dependencies are lightweight: aiohttp for HTTP, lxml for XML parsing, yarl for URL handling, and aiozoneinfo for timezone support.","worth_installing":"Yes, if you need to query Swedish Trafikverket data. The package is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and installs with low friction. The async design and modern Python support (3.11+) make it well-suited for contemporary applications. Verify that your use case aligns with Trafikverket's API terms and that you can obtain an API key."},"id":"pytrafikverket","links":{"html":"https://skillfed.io/packages/pytrafikverket","md":"https://skillfed.io/packages/pytrafikverket.md","pypi":"https://pypi.org/project/pytrafikverket/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2024-11-22","license_spdx":null,"license_treatment":"permissive","name":"pytrafikverket","python_support":"supports_current","summary":"Retrieve values from public API at the Swedish Transport Administration (Trafikverket)."},"popularity":{"monthly_downloads":73466,"position":14995,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.1.1"}
