semvec/pypi-packages huggingface dataset:
pyRejseplan 1.0.6
Python interface with rejseplanens API 2.0 based on HAFAS
Requires Python: <3.14,>=3.8

# pyRejseplan
Python implementation for Rejseplanens new API

## Credentials

Make a file called rejseplan.key in your root folder and prepend the key with "KEY: "
The main.py function will parse the file and look for the key. This is required for testing purposes.

## Further work

The package is a work in progress and should be treated as such. There are a lot of potential for improvements in the structure of the package.
Further work includes building functionality to do location searches based on the address or geolocation.
Further improvements could be to have a journey planner feature either as preconfigured or like the one found at journeyplanner.dk.
legacy-api-wrap 1.5
Legacy API wrapper.
Requires Python: >=3.9

Legacy API Wrapper |b-pypi| |b-codecov|
=======================================

.. |b-pypi| image:: https://img.shields.io/pypi/v/legacy-api-wrap.svg
   :target: https://pypi.org/project/legacy-api-wrap
.. |b-codecov| image:: https://codecov.io/gh/flying-sheep/legacy-api-wrap/graph/badge.svg
   :target: https://codecov.io/gh/flying-sheep/legacy-api-wrap

This module defines a decorator to wrap legacy APIs.
The primary use case is APIs defined before keyword-only parameters existed.

>>> from legacy_api_wrap import legacy_api

We have a function with many positional parameters lying around:

>>> def fn(a, b=None, d=1, c=2):
...     return c, d, e

We want to convert the positional parameters ``d`` and ``c`` to keyword-only,
change their order and add a parameter. For this we only need to specify name
and order of the old positional parameters in the decorator.

>>> @legacy_api('d', 'c')
... def fn(a, b=None, *, c=2, d=1, e=3):
...     return c, d, e

After adding the decorator, users can keep calling the old API and get a
``DeprecationWarning``:

>>> fn(12, 13, 14) == (2, 14, 3)
True