semvec/pypi-packages huggingface dataset:
mosaik-heatpump 1.0.2
mosaik-heatpump provides models for the simulation of heating systems
License: MIT
Requires Python: <4,>=3.8

mosaik-heatpump
===============

This package provides models for the simulation of heating systems- consisting of heat pumps, hot water tanks,
and controllers - and adapters for the co-simulation of these models using *mosaik*.

Installation & Tests
--------------------

You can install mosaik-heatpump with pip:

.. code-block:: bash

      pip install mosaik-heatpump


You can run the tests with:

.. code-block:: bash

      pytest

Documentation, Source Code and Issues
-------------------------------------

The documentation is available at `Read the Docs <https://mosaik.readthedocs.io/en/latest/ecosystem/components/mosaik-heatpump/overview.html>`_.


Please report bugs and ideas for improvement to our `issue tracker`__.

__ https://gitlab.com/mosaik/components/energy/mosaik-heatpump/-/issues

Get in touch, ask questions, discuss
------------------------------------

For questions and general discussion about mosaik-heatpump, you can use
`mosaik's GitHub Discussions <https://github.com/orgs/OFFIS-mosaik/discussions>`_.

Citation
--------

The model was initially used and presented `here <https://doi.org/10.1186/s42162-021-00180-6>`_ , 
but it is not described in detail. We plan to publish a paper presenting the package, and will
update this section after the publication.

License
-------

This project is licensed under the MIT License. See `LICENSE <https://gitlab.com/mosaik/components/energy/mosaik-heatpump/-/blob/master/LICENSE>`_ file for details.
ggwave-fork 0.4.2
Tiny data-over-sound library.
License: MIT
Keywords: data-over-sound fsk ecc serverless pairing qrcode ultrasound


======
ggwave
======

Tiny data-over-sound library.


.. code:: python

    # generate audio waveform for string "hello python"
    waveform = ggwave.encode("hello python")

    # decode audio waveform
    text = ggwave.decode(instance, waveform)


--------
Features
--------

* Audible and ultrasound transmissions available
* Bandwidth of 8-16 bytes/s (depending on the transmission protocol)
* Robust FSK modulation
* Reed-Solomon based error correction

------------
Installation
------------
::

    pip install ggwave

---
API
---

encode()
--------

.. code:: python

    encode(payload, [protocolId], [volume], [instance])

Encodes ``payload`` into an audio waveform.


Output of ``help(ggwave.encode)``:

.. code::

    built-in function encode in module ggwave
    
    encode(...)
        Encode payload into an audio waveform.
        @param {string} payload, the data to be encoded
        @return Generated audio waveform bytes representing 16-bit signed integer samples.
    

decode()
--------

.. code:: python

    decode(instance, waveform)

Analyzes and decodes ``waveform`` into to try and obtain the original payload.
A preallocated ggwave ``instance`` is required.


Output of ``help(ggwave.decode)``:

.. code::

    built-in function decode in module ggwave
    
    decode(...)
        Analyze and decode audio waveform to obtain original payload
        @param {bytes} waveform, the audio waveform to decode
        @return The decoded payload if successful.
    


-----
Usage
-----

* Encode and transmit data with sound:

.. code:: python

    import ggwave
    import pyaudio

    p = pyaudio.PyAudio()

    # generate audio waveform for string "hello python"
    waveform = ggwave.encode("hello python", protocolId = 1, volume = 20)

    print("Transmitting text 'hello python' ...")
    stream = p.open(format=pyaudio.paFloat32, channels=1, rate=48000, output=True, frames_per_buffer=4096)
    stream.write(waveform, len(waveform)//4)
    stream.stop_stream()
    stream.close()

    p.terminate()

* Capture and decode audio data:

.. code:: python

    import ggwave
    import pyaudio

    p = pyaudio.PyAudio()

    stream = p.open(format=pyaudio.paFloat32, channels=1, rate=48000, input=True, frames_per_buffer=1024)

    print('Listening ... Press Ctrl+C to stop')
    instance = ggwave.init()

    try:
        while True:
            data = stream.read(1024, exception_on_overflow=False)
            res = ggwave.decode(instance, data)
            if (not res is None):
                try:
                    print('Received text: ' + res.decode("utf-8"))
                except:
                    pass
    except KeyboardInterrupt:
        pass

    ggwave.free(instance)

    stream.stop_stream()
    stream.close()

    p.terminate()

----
More
----

Check out `<http://github.com/ggerganov/ggwave>`_ for more information about ggwave!

-----------
Development
-----------

Check out `ggwave python package on Github <https://github.com/ggerganov/ggwave/tree/master/bindings/python>`_.
guolei-py3-database 0.0.23
guolei python3 database library
License: MIT
Requires Python: >=3.0

## 介绍

**guolei python3 database library**



## 软件架构

~python 3.*

## 安装教程

```shell
pip install guolei-py3-database
```

## 目录说明
### pymysql 示例

```python
from guolei_py3_database import pymysql as gl_pymysql

database=gl_pymysql.Database(connect_args=(), connect_kwargs={})

# must be call
database.open_connect()

database.execute()
database.executemany()
database.transaction()
database.rowcount()
database.lastrowid()
database.fetchone()
database.fetchall()

# must be call
database.close_connect()


```