semvec/pypi-packages huggingface dataset:
graphics-maker 0.2.1
simple graphics animation video generator
Requires Python: >=3.8

# Graphics Maker (Python)

# What

This is a simple python package that provides a way to generate flat design animation videos.
It allows for simple shapes and transitions of location, rotation and scale.

# Why

I was tired of building animations with other tools and getting choppy/unsatisfactory results. I'm also too cheap and lazy to pay for an expensive tool, and then have to learn all the intricacies. So I just made this for myself.

# Dependencies:

In order to use this package you need to have some libraries installed for libcairo2. Google what you need to install for your distro. Also for images we need PIL.

# How to use:

Install the package in your python environment:

`pip install graphics-maker`

The following steps should be taken to create an animation:

*NOTE: ALL LOCATION/DIMENSION BASED VALUES SHOULD BE GIVEN AS PERCENTAGES OF THE VIDEO DIMENSIONS.*

1. Instantiate an instance of `GraphicsMaker` with the desired settings.

| Argument    | Description                                                |
|-------------|------------------------------------------------------------|
| name        | File name                                                  |
| w           | Video width                                                |
| h           | Video height                                               |
| fps         | FPS `default:60`                                           |
| output_dir  | The directory to output the result to `default:./outputs/` |
| output_type | The video type output (mp4/gif) `default:mp4`              |

2. Create and add Objects to the GraphicsMaker with the desired type, location, rotation, scale and colour.
3. Add AnimationData instances to the GraphicsMaker for objects you'd like to animate within a given timeframe.
4. Run `.generate_animation()` on the GraphicsMaker instance.

# Supported object types

1. Circle
2. Rectangle
3. Polygon
4. Text
5. Image
6. Custom Draw (provide your own draw function)

# TODO:

- More documentation on capabilities.
- Radial gradient transition.
- Fix linear gradient transition of odd angle.

# Examples

Example programs using the lib are in `examples/`. Feel free to run it locally and generate the videos! But here they are as well:

https://github.com/DavidOberholzer/graphics-maker/assets/20847795/72428e27-dd3d-4585-83f6-23776edaae99

https://github.com/DavidOberholzer/graphics-maker/assets/20847795/55603c97-59d8-485c-966c-0ccf743d93c4

https://github.com/DavidOberholzer/graphics-maker/assets/20847795/04dc3927-9b7d-4abd-b37a-3f5f945617f3
ogg4osu 0.2.0
Converts audio to OGG Vorbis for the purposes of osu!
Keywords: osu! mapping convert music audio ogg

# ogg4osu!

Do you prefer using OGG over MP3 in your osu! beatmaps? Do you want to just slap q6 on all of your audio files because it's the highest quality setting that's still rankable most of the time? Do you hate having to check whether your q6 OGGs are actually under the 208kbps limit? This program will do that for you.

## Installation

1. [Get FFmpeg](https://ffmpeg.org/download.html) and make sure it's accessible from your command line.
    
    On Windows, you'll need to [add FFmpeg to PATH](https://www.google.com/search?q=add+ffmpeg+to+path) for this to work. I have no idea how it's done on other platforms, but I hope it's easier than on Windows.

2. [Install Python](https://www.python.org/downloads/).

    Python 3.11 or later should work for sure; when in doubt, just get the latest version. Older versions may work as well, but you're on your own with those.

3. Install ogg4osu!

    The following command should be all you need:

        pip install ogg4osu

    If you want/need something more specialised, I'm sure you already know what you need to do differently.

## Usage

The following examples use the kind-of-maybe-somewhat universal `python` command, but depending on your environment and/or preferences, you may want to use `python3` or `py` instead.

### Just convert an audio file to OGG
    
    python -m ogg4osu example.flac

You'll get a new file called `example.ogg`.

### Specify the name of the new file

    python -m ogg4osu "long and inconvenient song title.flac" song.ogg

You can also go wild with full file paths if you want.

### View all available options

    python -m ogg4osu -h
ksconf-jinja-markdown 1.2.0
Markdown rendering support for Jinja2 templates within Ksconf
Keywords: ksconf splunk jinja markdown

# ksconf-jinja-markdown

Add Markdown rendering support to the Ksconf packing ecosystem.
This allows rendering markdown into html when using Jinja (`*.j2`) files within
a rendered Splunk app using the `ksconf package` command.

## Jinja filter

* `markdown2html` - Filter used to convert markdown text into HTML output.

## Install

```sh
pip install -U ksconf-jinja2-markdown
```

Installation can be validated by running:  `ksconf --version`


## Example Usage

Simple XML with an input

Contents of `my_app/default/data/view/my_dashboard.xml.j2`:

```xml
<dashboard>
   <row>
      <html>
         {{ description | markdown2html }}
      </html>
   </row>
</dashboard>
```

Contents of `inputs.json`:

```json
{
    "description": "# Title\n## Header 2\n* bulleted\n* list\n"
}
```

```sh
ksconf package --enable-handler=jinja --template_vars @inputs.conf my_app
```


## Release steps

```sh
python setup.py build
python setup.py bdist_wheel sdist
twine upload dist/ksconf_jinja_markdown-*any.whl dist/ksconf-jinja-markdown-*.tar.gz
```