semvec/pypi-packages huggingface dataset:
YtDuration 0.4
A Python package to get the duration of a YouTube video without using the YouTube Data API.
Requires Python: >=3.6

# YT Duration

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)

This Python package retrieves the duration of a YouTube video without using the YouTube Data API.

### Explanation:
The `YtDuration` package provides a function to extract the duration of a YouTube video from its URL by web scraping the video's page and parsing the duration information.

## Installation

To install the package, use the following command:

```bash
pip install YtDuration
```

### Usage
Here is an example of how to use the package:

```python
import yt_duration import YtDuration as yt
video_url = 'YouTube_url'
duration = yt(video_url)
print("Video Duration:", duration)
```
### Thank You
Thank you for using YtDuration. We hope you find it helpful. If you have any questions or feedback, please don't hesitate to reach out!
enconfigs 0.0.102
Encrypt sensitive yaml/json data with user managed encryption key or a default package managed key.
Requires Python: >=3.11

```
  Author: Sujay RS
  Email: sujayy1983@gmail.com
```

# Encrypted configurations
Encrypt and decrypt a sensitive yaml or json configuration file with ease.

# Encrypt/Decrypt YAML or JSON configurations
This module encrypts sensitive yaml/json configurations and decrypts data
as needed by the application/script. It offers the following two modes to 
handle encryption/decryption keys.

# Modes - Managing symmetric keys

1. Default mode: Library generates encryption keys and maintains it for
   decryption/distribution.

2. User owns responsibility of managing his/her encrypted key in a secure vault 
   solution and feeds the key to ths library as required.

## Install this package
pip install enconfigs

## Tested on 

1. Ubuntu 22.04 with python 3.11
2. MacOS Sonoma 14.5 with python 3.11

Create sample scripts to test functionality

```
>>> from enconfigs.secureconfigs import SecureConfig
>>> inputdata={'key1': 'value1', 'key2': ['val2', 2]}  ## Input a json data
>>> secureobj = SecureConfig("/tmp/encryptedfile.yml") ## Target location of file where encrypted data must be stored.
True                                                   ## Indicates data was encrypted and stored successfully
>>> secureobj.update_encrypted_data(inputdata)         ## Directly provide config data that must be securely stored
>>> secureobj.decrypt_read_file()                      ## When application needs to read secure data then must call decrypt_read_file() method
{'key1': 'value1', 'key2': ['val2', 2]}

Note: Similar to the above string or list maybe an input for encryption 
```

## Future plan
- Easy key rotation and thus auto reencryption of data.
- Offer options to choose an asymmetric encryption algorithm.
- Test more complex data types.
- Test on more OS platforms.
- Test with more python versions.
- Actively support bugs.