semvec/pypi-packages huggingface dataset:
siri 0.1.0
A library for dealing with Service Interface for Real-time Information (SIRI) data
License: MIT

Siri
====

.. image:: https://img.shields.io/pypi/v/siri.svg
    :target: https://pypi.python.org/pypi/siri
    :alt: Latest PyPI version

---------------------

A library for dealing with Service Interface for Real-time Information (SIRI) data


Contains:

* Auto-generated python classes for dealing with SIRI data.
* A method to parse SIRI XML.
* A method to serialize objects into SIRI XML

This library leans heavily on the output and functions of `xsdata <https://github.com/tefra/xsdata>`_

No warranty is provided with this library. This library does not defend against XML attacks.

Installation
------------

.. code:: console

    $ pip install siri


Usage
-----

**Parse a file**

.. code:: python

    >>> from siri import parse
    >>> parse('my_siri_file.xml')

**Parse an XML string**

.. code:: python

    >>> from siri import parse
    >>> xml_string = """
        <?xml version="1.0" encoding="UTF-8"?>
            <ns0:Siri xmlns:ns0="http://www.siri.org.uk/siri" version="2.0">
                <ns0:SubscriptionResponse>
                    <ns0:ResponseTimestamp>2021-01-01T00:00:00</ns0:ResponseTimestamp>
                    <ns0:ResponderRef>Responder Ref</ns0:ResponderRef>
                    <ns0:ResponseStatus>
                        <ns0:ResponseTimestamp>2021-01-01T00:00:00</ns0:ResponseTimestamp>
                        <ns0:SubscriberRef>Subscriber Ref</ns0:SubscriberRef>
                        <ns0:SubscriptionRef>1</ns0:SubscriptionRef>
                        <ns0:Status>true</ns0:Status>
                    </ns0:ResponseStatus>
                </ns0:SubscriptionResponse>
            </ns0:Siri>
        """
    >>> siri_object = parse(xml_string)
    >> print(siri_object.subscription_response.response_status.subscription_ref)
    1




**Build and serialize a SIRI object**

.. code:: python

    >>> from siri import Siri, SubscriptionResponse, ResponseStatus
    >>>
    >>> obj = Siri(
    >>>     subscription_response=SubscriptionResponse(
    >>>      response_timestamp=datetime.datetime(2021, 1, 1).isoformat(),
    >>>      responder_ref="Responder Ref",
    >>>      response_status=ResponseStatus(
    >>>          response_timestamp=datetime.datetime(2021, 1, 1).isoformat(),
    >>>          subscriber_ref="Subscriber Ref",
    >>>          subscription_ref="1",
    >>>          status=True,
    >>>      )
    >>>  )
    >>>
    >>> serialize(obj)

    """<?xml version="1.0" encoding="UTF-8"?>
    <ns0:Siri xmlns:ns0="http://www.siri.org.uk/siri" version="2.0">
        <ns0:SubscriptionResponse>
            <ns0:ResponseTimestamp>2021-01-01T00:00:00</ns0:ResponseTimestamp>
            <ns0:ResponderRef>Responder Ref</ns0:ResponderRef>
            <ns0:ResponseStatus>
                <ns0:ResponseTimestamp>2021-01-01T00:00:00</ns0:ResponseTimestamp>
                <ns0:SubscriberRef>Subscriber Ref</ns0:SubscriberRef>
                <ns0:SubscriptionRef>1</ns0:SubscriptionRef>
                <ns0:Status>true</ns0:Status>
            </ns0:ResponseStatus>
        </ns0:SubscriptionResponse>
    </ns0:Siri>"""
frash 0.0.8
Juggling with hex numbers. Convert integers and floats to hex.
License: MIT

# frash

Juggling with hex numbers. 

With `frash` you can convert integers and floats to their hexadecimal equivalent.

Below you can find some examples.

## Install

`pip install frash`

## Usage

```console
bash> frash 255
$ 0xff

bash> frash 255.
$ 0x1.fep7

bash> frash 98.2
$ 0x1.88ccccccccccdp6

bash> frash -r 0x1.88ccccccccccdp6
$ 98.2

bash> frash -r 0x2.p7
$ 256

bash> frash -r 1.8p0
$ 1.5

bash> frash -r 1.8
$ 1.5

bash> frash -r 0x1.8
$ 1.5

bash> frash -r 0x1.8p+1
$ 3

bash> frash -r 0x1.8p-2
$ 0.375

bash> frash -r .de
$ 0.867188

bash> frash -r abap1
$ 5492

bash> frash -r ABAP1
$ 5492

bash> frash 1e3
$ 0x1.f4p9

bash> frash 1e-4
$ 0x1.a36e2eb1c432dp-14
```

#### Octal Integers

There is a limited support for octal integer numbers.

```console
bash> frash -o 8
$ 0o10

bash> frash -r -o 010
$ 8

bash> frash -r -o 0o10
$ 8
```
ramlwrap 2.3.7
Raml API mapping toolkit for Django
License: MIT
Keywords: raml api django

Ramlwrap is a toolkit for Django which allows a combination of rapid server prototyping as well as enforcement of API definition from the RAML api.

RAML (and swagger) allow for rapid specification of API's, but it can be hard to know if your engineers have programmed exactly what the API is, and that your code is enforcing the same schema that you have defined. Ramlwrap bridges the gap between the specification and the code. A developer provides a mapping table of URL to function, and the raml wrap builds a wrapper around those functions where validation of data occurs.

When coupled with auto documentation (raml2html) this allows a fully integrated specification and code deployment to occur.
kvsh 0.1.2
Persistent key-value store for the command line
License: MIT
Requires Python: >=3.8,<4.0

# kvsh, a command-line key-value store for the shell
- Cross-shell persistence
- Easy UI, with tab completion
## `kv` for quick operations
```shell
$ kv hello world
$ kv hello
world
```
## `kvv` for advanced functionality
```shell
$ kv hello world
$ kv foo food
$ kv bar bartender
$ kvv env # Print key=value iff key is a valid environment variable name
hello=world
foo=food
bar=bartender
$ kvv remove hello
$ kvv env
hello=world
$ kvv clear
```
## Installation
Recommended installation with [`pipx`](https://github.com/pypa/pipx):
```shell
pipx install kvsh
```
Tab completion with [`argcomplete`](https://github.com/kislyuk/argcomplete):
```shell
pipx install argcomplete
eval "$(register-python-argcomplete kv)"
eval "$(register-python-argcomplete kvv)"
```
get-jsonnet-dependencies 0.1.0
Extracts import dependencies from a Jsonnet file
License: MIT
Requires Python: >=3.9,<4.0

# get-jsonnet-dependencies

Extracts import dependencies from a Jsonnet file

## Usage

```sh
> pip install get-jsonnet-dependencies
> get-jsonnet-dependencies -
> local thing = import "thing.jsonnet";
thing.jsonnet
> local amoguise = import @"C:\Users\sus\Documents\amoguise.libsonnet";
C:\Users\sus\Documents\amoguise.libsonnet
> local a = import "a.jsonnet"; local b = importstr "b.txt";
a.jsonnet
b.txt
```

Pass a list of files to extract dependencies from

Passing - means to take extract dependencies from stdin

No arguments means `get-jsonnet-dependencies -`

Note that imports spanning multiple lines won't be found by this script