semvec/pypi-packages huggingface dataset:
droneinterface 0.0.4
A tidy way to talk to a Drone through PyMavLink

This project will contain an opinionated but tidy way to talk to a Drone through PyMavLink 
using the PyFlightCoach Libraries


#### Setup the connection:
```sh
from droneinterface import Vehicle
vehicle = Vehicle.connect('tcp:127.0.0.1:5762')
```

#### Get a single mavlink message wrapped in a pyflightcoach wrapper:
```sh
>>> vehicle.get_GlobalPositionInt()
GlobalPositionInt(
    position=GPS(lat_=51.42 long_=-2.67 alt_=117.33, len=1),
    agl=0.055,
    velocity=Point(x_=-0.02 y_=-0.01 z_=0.0, len=1),
    heading=13.95565269894666,
    time_boot_ms=1840783
)
```

#### wait up to 1 second for a message:
```sh
>>> vehicle.next_heartbeat(1).type
MAV_TYPE(1=['mav_type_generic', 'mav_type_fixed_wing'])
```

#### Don't wait long enough:
```sh
>>> vehicle.next_heartbeat(1e-6)
droneinterface.scheduling.exceptions.Timeout: timeout after 1e-06 seconds waiting for message 0
```

#### Getting a pyflightcoach state object (combines 3 mavlink messages):
```sh
>>> vehicle.get_state().data
            x         y     z        rw        rx        ry        rz             t        dt  ...         p         q        r        du        dv          dw   dp   dq   dr
0.0 -0.006941 -0.022264  0.01 -0.012416  0.989064  0.080289  0.123095  1.709667e+09  0.033333  ... -0.006507 -0.022492  0.00954 -0.567203 -1.919822  997.321415  0.0  0.0  0.0

[1 rows x 21 columns]
>>> 
```

#### subscribing to a higher messaging rate:
```sh
with vehicle.subscribe(vehicle.state.ids, 10):
    print(vehicle.next_state().data)
```
rotating-logger 0.1.1
A singleton rotating logger
Requires Python: >=3.8

# Python Rotating Logger

Python package implementing a singleton logger object using rotating
file handling. 

## Installation

Use the pip install to install this package:

```shell
pip3 install https://github.com/romainmrad/rotating_logger.git
```

## Usage

Import the class and instantiate it

```python
from rotating_logger import rotatinglogger

logger = rotatinglogger.RotatingLogger(
    backup_count=30,
    encoding='utf-8'
)

logger.info("Hello world")
logger.error("This is an error")
```
django-debug-request 1.0.0
Execute cURL-like commands with logging within your Django production environment.
Requires Python: >=3.9

django-debug-request
====================

.. image:: https://img.shields.io/pypi/v/django-debug-request.svg
   :target: https://pypi.python.org/pypi/django-debug-request

It's cURL in your Django! This is a very small and light-weight alternative to something like
django-debug-toolbar that is useful to use in production when you need to figure out what is going
wrong. It consists of one management command that supports limited subsect of the cURL command's
arguments, but executes the request inside the Django stack using ``django.test.client.Client`` –
with extended debug output.

Tested with Django 4.2 and 5.0.

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

First, install the package::

    pip install django-debug request

Then, add it to your installed apps::

    INSTALLED_APPS = [
        …
        "django_debug_request",
    ]

That's it!

Usage
-----

Use your app in production and choose "Copy to cURL" in your browser's developer tools for
the request you are interested in. Replace ``curl`` with ``python manage.py debug_request``
and run it against your server.

Supported cURL options:

- ``-X``/``--method``
- ``-H``/``--header``
- ``-data-raw``
- ``--compressed`` (will be ignored since you probably do not like compressd output, but is
  supported for compatibility with cURL lines generated by Chrome)

Supported other options

- ``--print-sql`` Log all SQL queries

Example::

    $ python manage.py debug_request https://localhost/admin/login/
    DEBUG 2024-05-01 09:03:15,790 debug_request debug_request Extra array: {'HTTP_HOST': 'localhost'}
    DEBUG 2024-05-01 09:03:15,805 debug_request debug_request Response code: 200
    DEBUG 2024-05-01 09:03:15,805 debug_request debug_request Resolver match: ResolverMatch(func=django.contrib.admin.sites.login, args=(), kwargs={}, url_name='login', app_names=['admin'], namespaces=['admin'], route='admin/login/')
    DEBUG 2024-05-01 09:03:15,805 debug_request debug_request Response header: Content-Type: text/html; charset=utf-8
    DEBUG 2024-05-01 09:03:15,805 debug_request debug_request Response header: Expires: Wed, 01 May 2024 09:03:15 GMT
    DEBUG 2024-05-01 09:03:15,805 debug_request debug_request Response header: Cache-Control: max-age=0, no-cache, no-store, must-revalidate, private
    DEBUG 2024-05-01 09:03:15,805 debug_request debug_request Response header: Vary: Cookie
    DEBUG 2024-05-01 09:03:15,805 debug_request debug_request Response header: X-Frame-Options: DENY
    DEBUG 2024-05-01 09:03:15,805 debug_request debug_request Response header: Content-Length: 4145
    DEBUG 2024-05-01 09:03:15,805 debug_request debug_request Response header: X-Content-Type-Options: nosniff
    DEBUG 2024-05-01 09:03:15,805 debug_request debug_request Response header: Referrer-Policy: same-origin
    DEBUG 2024-05-01 09:03:15,806 debug_request debug_request Response header: Cross-Origin-Opener-Policy: same-origin
    <html>
    …

License
-------

Apache License
rtctools_simulation 0.1.0a1
Extension for building models used for simulation in rtc-tools.
Requires Python: >=3.9

# rtc-tools-simulation

This is rtc-tools-simulation, a toolbox for simulation model building for [rtc-tools](https://gitlab.com/deltares/rtc-tools).

## Install

```bash
pip install rtc-tools-simulation
```

## Documentation

Documentation and examples can be found on [readthedocs](https://rtc-tools-simulation.readthedocs.io).

## Developer guidelines

Developer guidelines can be found [here](Contributing.md)