semvec/pypi-packages huggingface dataset:
tablet-tilt-joystick 1.2.1
Emulate a joystick by tilting your tablet.
Requires Python: >=3.7

# Tablet Tilt Joystick

A program that lets you use your tablet's tilting to emulate an actual joystick on a computer. Currently this only works on Linux systems as it uses `uinput` behind the scenes. It might work on Macs, I haven't got a Mac so I can't test.

It's called **tablet** tilt joystick but it will work with any handheld device with a reasonably modern web browser and an orientation sensor.

Runs a light web server which you can connect to in a browser on your tablet.

## Basic usage

Install with pip (`pip3 install tablet-tilt-joystick`) then run with `python3 -m tablet_tilt_joystick` or just `tablet_tilt_joystick` and connect to `<your ip>:4242` on a mobile device to get started. If a suitable image display program is found, it will also show a QR code that you can scan with a mobile device to get to the IP quickly. The joystick will show up in your system as something like `python-uinput`.

## Advanced usage

For advanced usage instructions, run `python3 -m tablet_tilt_joystick -h`.

## Troubleshooting

If your tablet fails to find the server, make sure this program isn't blocked by a firewall. Also try navigating to your computers ip manually on the tablet.

## Publishing to pypi:

First install the required packages: `pip install build twine`.

Then run `python -m build` from this directory. If there were no errors then run `python3 -m twine upload dist/*`.

## Changelog:

#### 1.2.0
- Command line options to use custom hosting port and suppress displaying QR code

#### 1.1.1
- Fix missing dependencies

#### 1.1.0
- First version published to pypi
- Opens QR code

#### 1.0.0 (not published on pypi)
- Basic functionality of
d2f2 2.1.3
Tool to convert image folders into files

# d2f2 2.1.3

*d2f2* is a tool written in Python to convert image folders into files.

## Installation

You can install (and update) *d2f2* from [PyPI](https://pypi.org/project/d2f2) via the command line

```commandline
pip install d2f2 -U
```

or use one of the standalone versions (see below).

## Usage

### Operation modes

*d2f2* offers two modes of operation: "single" and "batch".

#### Single mode

The standard mode, converts each given directory into a file.

```commandline
d2f2 /a/path /another/path ...
```

#### Batch mode

Useful for converting big batches of folders, this mode converts each subdirectory within the given directories into a file. To use it, add the ``-b``/``--batch`` option to the command:

```commandline
d2f2 -b /a/path /another/path ...
```

### Output format

By default, *d2f2* saves files in the PDF format. If you want to use another supported format, use the ``-f``/``--format`` option:

```commandline
d2f2 /a/path ... -f FORMAT
```

Currently, there are 2 supported formats (with more to be added in the future). Use the appropriate format as the FORMAT parameter:

* [PDF] - Portable Document Format (_default_)
* [CBZ] - Comic Book Format, ZIP-compressed

### Output path

By standard, *d2f2* saves files to the current directory. If you want another output path, use the ``-o``/``--output`` option:

```commandline
d2f2 /a/path ... -o /an/output/path 
```

### Sorting mode

By default, *d2f2* sorts the images in alphanumeric, ascending order (A-Z). If you want to use another sorting mode you can specify one by using the ``-s``/``--sort`` option:

```commandline
d2f2 /a/path ... -s MODE
```

Currently, there are 6 sorting modes available. Use the corresponding number from the following list as the MODE parameter:

* [ 1] Alphanumeric, ascending (_default_)
* [-1] Alphanumeric, descending
* [ 2] Last time modified, oldest first
* [-2] Last time modified, newest first
* [ 3] Time of creation / metadata change, oldest first
* [-3] Time of creation / metadata change, newest first

## Shell

*d2f2* offers an interactive shell including all functions of the normal *d2f2* CLI tool.

Standalone versions for the shell are available for Windows and Linux (see [Releases](https://github.com/DomCie/D2F2/releases))

You can also start the shell from the command line:

```commandline
d2f2 --shell
```

## TODO

* More output formats (EPUB, MOBI)
* Custom order for images
* Modify names of output files
* Standalone GUI client

## Disclaimer

This tool uses the [PyMuPDF](https://github.com/pymupdf/PyMuPDF) library, which provides the core functionality of inserting images into PDF files. According to its licensing terms, this project is released under the AGPLv3 license (for more information, see LICENSE)