semvec/pypi-packages huggingface dataset:
python-polymorphism 0.1.0
A simple utility library that allow you to use OOP Like Polymorphic Function in python
Requires Python: >=3.6

# What this repository contains
#### A simple utility library that allow you to use OOP Like Polymorphic Function in python

## Installation: 

install the package
```
pip install python-polymorphism
```

## How to use

In a Class module

```python
from python_polymorphism import Poly

polymorphic = Poly()
class PolyClass():
    @polymorphic.this()
    def test_poly_fn(self, my_first_test_argument):
        return 'my_first_test_argument'
    
    @polymorphic.this()
    def test_poly_fn(self, my_second_test_argument):
        return 'my_second_test_argument'


print(PolyClass().test_poly_fn(my_first_test_argument=1)) # => 'my_first_test_argument'
print(PolyClass().test_poly_fn(my_second_test_argument=1)) # => 'my_second_test_argument'
```

### Constraints
* It works on python class only;
* The polymorphed function has to be called with kwargs;
* Default parameters do not help differentiate one function from another.
aws-static-website 0.0.3
A simple AWS static website deployment
Requires Python: >=3.6

Getting started
===============

AWS static website package is implemented for deploying a bucket with its Cloudfront distribution and its domain name.

You can use this package for deploying a static website on the bucket deployed.

It is part of the `educational repositories <https://github.com/pandle/materials>`_ to learn how to write stardard code and common uses of the TDD.

Prerequisites
#############

You have to install the `AWS Cloud Development Kit <https://docs.aws.amazon.com/cdk/latest/guide/>`_ (AWS CDK) for deploying the AWS resources:

.. code-block:: bash

    npm install -g aws-cdk # for installing AWS CDK
    cdk --help # for printing its commands

And you need an AWS account, in this repository called **your-account**.

Installation
############

The package is not self-consistent. So you have to download the package by github and to install the requirements before to deploy on AWS:

.. code-block:: bash

    git clone https://github.com/bilardi/aws-static-website
    cd aws-static-website/
    pip3 install --upgrade -r requirements.txt
    export AWS_PROFILE=your-account
    cdk deploy

Or if you want to use this package into your code, you can install by python3-pip:

.. code-block:: bash

    pip3 install aws_static_website
    python3
    >>> import aws_static_website
    >>> help(aws_static_website)

Read the documentation on `readthedocs <https://aws-static-website.readthedocs.io/en/latest/>`_ for

* Usage
* Development

Change Log
##########

See `CHANGELOG.md <https://github.com/bilardi/aws-static-website/blob/master/CHANGELOG.md>`_ for details.

License
#######

This package is released under the MIT license.  See `LICENSE <https://github.com/bilardi/aws-static-website/blob/master/LICENSE>`_ for details.
muzak2yt 1.0.2
Upload your favorite music albums directly to YouTube !
Requires Python: >=3.6

# muzak2yt

Upload your favorite music albums directly to YouTube !

Program written under Python 3.9

## Requirements

The following modules need to be installed with pip :

* youtube_uploader_selenium==0.1.0
* oauth2client==4.1.3
* httplib2==0.19.0
* fleep==1.0.1
* mutagen==1.45.1
* google_api_python_client==1.12.8

To facilitate the process, you can run the command **pip install -r requirements.txt**

In addition, the following conditions need to be fullfiled :

* You must have [ffmpeg](https://ffmpeg.org/download.html) installed (and added to your PATH if you're on Windows)
* You must have Firefox installed, as well as [geckodriver](https://github.com/mozilla/geckodriver/releases) (add to your PATH or drag and drop in your Python folder)

## Usage

1. Add an image to your album folder that will be used by ffmpeg to generate the video. The image has to be named "image.png", as well as having even width and height values (640x480 is ok, 641x480 is not)
2. Run the "muzak2yt.py" file in the same folder as your music album.
3. Once the video is generated by ffmpeg, it will be uploaded to YouTube. The script will automatically open FireFox, you need to connect to YouTube manually the first time.

The program takes the following arguments :

```py

usage: muzak2yt [options]

Convert to mp4 and upload to YouTube

optional arguments:
  -h, --help   show this help message and exit
  -nu, --noup  Not upload to YouTube, only convert to MP4

```

## Additional Notes

* If your video titles are messed up by the script, follow this guide : ["Title not setting correctly"](https://github.com/linouk23/youtube_uploader_selenium/issues/4) (The init.py file will be in your site-packages/youtube-uploader-selenium folder (you can run **python -c 'import site; print(site.getsitepackages())'** to get the location)
* If you want ffmpeg to overwrite the existing mp4 files, replace the argument "-n" by "-y" in the **subprocess.call**
* If you want to modify the way titles and descriptions are generated, edit the following lines :

```python
title = str(audio["album"]).strip('[\']') + " - " +  str(audio["title"]).strip('[\']')
metadata = {
                "title":  title,
                "description": "Album: " + str(audio["album"]).strip('[\']') + "\nArtist(s): " + str(audio["artist"]).strip('[\']').replace("\"", "")
            }
```