semvec/pypi-packages huggingface dataset:
ffmpegaudiorecord 0.11
Starts recording audio from the specified device using ffmpeg and stops recording after a specified number of seconds of silence
License: MIT
Keywords: ffmpeg,audio,record


# Starts recording audio from the specified device using ffmpeg and stops recording after a specified number of seconds of silence

## pip install ffmpegaudiorecord 

#### Tested against Windows 10 / Python 3.10 / Anaconda 

```python
The function first checks to see if the ffmpegexe path is in the system path. If not, it adds the path to the system path.

Next, the function gets the list of available audio devices using the get_all_devices function from the
ffmpegdevices module. It then tries to find the audio device that matches the audiodevice argument.
If no match is found, the function raises an exception.

The function then starts a new ffmpeg process to record audio from the specified device.
It creates a temporary file to store the recorded audio.
The function then enters a loop that reads the recorded audio from the temporary file and checks for silence.
If the audio is silent for a specified number of seconds, the function stops recording and returns the recorded
audio as an AudioSegment object. Any silence at the beginning is ignored.

Args:
	ffmpegexe: The path to the ffmpeg executable.
	audiodevice: The ID or name of the audio device to record from.
	silent_seconds_stop: The number of seconds of silence after which recording will stop.
	silence_threshold: The audio level below which silence is considered to have occurred.

Returns:
	The recorded audio as an AudioSegment object.


from ffmpegaudiorecord import start_recording
audio_data = start_recording(
ffmpegexe = r"C:\ffmpeg\ffmpeg.exe", audiodevice=1, silent_seconds_stop=3, silence_threshold=-30)
audio_data.export("c:\\bababababa.wav")
```
spaceprob 0.0.3
Live stats for Voyager 1 space prob
License: MIT
Keywords: voyager1

A simple library to fetch live stats for Voyager 1 space prob.

Change Log
==========

0.0.1 (06/08/2023)
------------------
- First Release

0.0.2 (06/08/2023)
------------------
- Release 0.0.2

0.0.3 (06/08/2023)
------------------
- Release 0.0.3
django-sql-comment 1.0.0
Django management command to generate SQL for applying your models' verbose name and help_text as PostgreSQL COMMENTs
License: MIT
Keywords: django-sql-comment

Django SQL COMMENT
==================

Django management command to generate SQL for applying your models' and fields' ``verbose_name`` and ``help_text`` as PostgreSQL ``COMMENT`` statements.

Compatibility
-------------

Python 2.7–3.11.

Django 1.11–4.2.

Quickstart
----------

Install Django SQL COMMENT::

    pip install django-sql-comment

Add it to your ``INSTALLED_APPS``::

    INSTALLED_APPS = (
        ...
        'django_sql_comment',
        ...
    )

Run ``./manage.py sqlcomment myapp`` to look at SQL generated, or ``./manage.py sqlcomment myapp | ./manage.py dbshell`` to apply it to your database.

If you're brave enough to apply the comments automatically on every migration, you can take the risk to add to your ``AppConfig``::

    from django.db.models.signals import post_migrate
    from django_sql_comment import sqlcomment_post_migrate
    ...
    class MyAppConfig(AppConfig):
        def ready(self):
            post_migrate.connect(sqlcomment_post_migrate)
pyhman 1.0.3
Python library to control the HMan robot
License: MIT

# pyHman
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

This is a Python library for controlling and communicating with the Hman device. This library provides high-level interfaces to set and get various parameters of hman, such as motor positions, modes, currents, and so on.

## Installation

This package uses setuptools for distribution. You can install it via pip:
```bash
pip install pyHman
```

or directly from the source code:

```bash
git clone https://github.com/Aightech/pyHman.git
cd pyHman
python setup.py install
```

### Requirements

- Python 3.6+
- **socket** (from the Python Standard Library)
- **logging** (from the Python Standard Library)


## Usage

```python
from Hman import Hman

# Create a Hman instance
hman = Hman(3, True) # '3' denotes the number of motors, 'True' enables verbose logging
# Connect to the hman
hman.connect('127.0.0.1') # Use the appropriate IP address for your setup
# Set the mode of the motors
hman.set_mode('position') # Other available modes: 'current', 'velocity', 'impedance'
# Set the articular position of the motors
positions = hman.set_articular_pos(0, 40, 30) # Enter the desired positions for each motor
# Print the positions
print(positions)
```

## Features and Functions

The Hman class provides the following main features:

- `connect(address: str, port: int = 5000)`: Connect to the hman using the given IP address and port.
- `disconnect()`: Disconnect from the hman.
- `set_mode(mode: str)`: Set the mode of the hman (available modes are: 'position', 'current', 'velocity', 'impedance').
- `set_cartesian_pos(posx: float, posy: float, posz: float)`: Set the cartesian position of the hman.
- `set_articular_pos(pos1: float, pos2: float, pos3: float)`: Set the articular position of the hman.
- `set_motors_current(cur1: float, cur2: float, cur3: float)`: Set the current of the hman's motors.
- `turn_off_current()`: Turn off the current of the hman's motors.
- `get_pos()`: Get the current position of the hman's motors.

## Contributions

Feel free to submit a pull request if you want to contribute to this project.

## License

This library is distributed under the MIT License. Please see the LICENSE file for more information.

## Support

If you have any questions or run into any problems, please open an issue in the GitHub repository.
7
## Disclaimer

Use this software at your own risk. The authors are not responsible for any damage that may be caused directly or indirectly through the use of this software.
mediumvers123 0.1.2
Demo library
License: MIT

# Medium multiply
A small demo library for a Medium publication about publishing libraries.

### Installation
```
pip install mediumvers123
```

### Get started
How to multiply one number by another with this lib:

```Python
from medium_multi.multi import Multiplication

# Instantiate a Multiplication object
multiplication = Multiplication(2)

# Call the multiply method
result = multiplication.multiply(5)
```
factli 0.2.0
A Facebook Crowdtangle Client
License: MIT
Requires Python: >=3.8,<4.0

# DBoeS-stats
Collectors of reputation metrics of public speakers in social media platforms 

### About

The Facebook directory-

1. extracts posts of accounts and creates individual folders containing JSON response for every account (get_posts.py). 
2. extracts content from CrowdTangle and creates CSV files containing the statistics of facebook pages (get_list.py). 

### Storing API Access Token 

Store your API access token in a python file, name it Access_Token.py and save it in the DBoeS-stats directory.
In the file store the access token as:
```
access_token = "API access token generated from your crowd tangle account"
```
## Installation
1. Install [poetry](https://python-poetry.org/docs/#installation)
2. Clone repository
3. In the directory run `poetry install`
4. Run `poetry shell` to start development virtualenv
5. Run `factli`.

### Cloning this Repo

To clone this repository type:

```
git clone https://github.com/Leibniz-HBI/DBoeS-stats.git
```
### Usage
```
usage: factli [OPTIONS]

Options:
  --list_id TEXT       Saved List ID
  --count INTEGER      Number of posts returned per call, maximum 100,
                       defaults to 10
  --access_token TEXT  Your unique access token
  --start_date TEXT    Start Date (older), Format=YYYY-MM-DD, if not given
                       defaults to NULL
  --end_date TEXT      End Date(newer), Format=YYYY-MM-DD, if not given
                       defaults to current date
  --time_frame TEXT    The interval of time to consider from the endDate. Any
                       valid SQL interval, eg: "1 HOUR" or "30 MINUTE"
  --log_level TEXT     Level of output detail (DEBUG, INFO, WARNING, ERROR).
                       Warnings and Errors are               always logged in
                       respective log-files `errors.log` and `warnings.log`.
                       Default: ERROR
  --log_file TEXT      Path to logfile. Defaults to standard output.
  --sched TEXT         If given, waits "sched" hour(s) and then repeats.
  --notify TEXT        If given, notify email address in case of unexpected
                       errors. Needs further setup. See README.
  --path TEXT          If given, stores the output at the desired location
                       (Absolute Path needed)
  --help               Show this message and exit.
```
Email notifications with the `-n` argument use [yagmail](https://pypi.org/project/yagmail/).
## Output

Output of get_posts.py stores the raw JSON response in the following folder structure:


`Facebook/results/list_id/account_id/start-date_end-date.json`

An example of the JSON data can be viewed [here](https://github.com/CrowdTangle/API/wiki/Posts).

## Ensure that factli is continuously running, even after restart
If your system can run cronjobs, stop twacapic, run `crontab -e` and add the following to your crontab:

```cron
30 6 * * *    sh -c "cd PATH/TO/YOUR/DBoeS-stats/WORKING/DIRECTORY && PATH/TO/Poetry-env run factli [YOUR ARGUMENTS HERE]" >> out.txt 2>&1
```

This will start collection at 0630Hr (GMT) everyday.