semvec/pypi-packages huggingface dataset:
pkgexample 1.0.2
A simple package example
Requires Python: >=3.7

# pkgexample

Last updated 28th August 2022

Welcome to the readme for this simple package.
More information [Click Here](##Introduction)

## Introduction

This is a README file for the RexBytes simple example.
It's created using Github-flavoured Markdown, you can 
create a README for your project, for more information 
[Click Here](https://guides.github.com/features/mastering-markdown/)

## Build Instructions

A full detailed instruction on python package building [is available here](https://packaging.python.org/en/latest/tutorials/packaging-projects/)
You should read it in full to understand the following overview of the process.

Here we use the "setuptools" build system, others are availble ("Hatching","Flit", and "PDM") in the guide linked above.

In short, these are the steps.

### (1/4) Create the following files in your project root directory,
   
   - README.md
   - LICENCE
   - pyproject.toml

### (2/4) Build a PyPi release. 

   From the root of your project directory, run the following command,

   python3 -m build

   This command will create a ./dist/ directory containing your distribution files.

### (3/4) Check your distribution files.

   You should really check your distribution files for errors before submitting them to pypi.org
   Run the following command from the root of you project directory to do so.

   python3 -m twine check ./dist/*

### (4/4) Upload your fresh package to pypi

   If your packages passed the checks you can upload them to your pypi.org repository.
   Run the following command from the root of your project directory to do so.

   python3 -m twine upload ./dist/* 

   You will be asked for your pypi user name and password.

## Enjoy!

Have fun packaging python!
nvx 0.2.0
Simple script running nvidia-settings (with anti-tearing) based on your configured layout
Requires Python: >=3.6

# nvx
Simple script running nvidia-settings (with anti-tearing) based on your configured layout

[![PyPI version](https://badge.fury.io/py/nvx.svg)](https://badge.fury.io/py/nvx)

## Configuration

The configuration is stored in the file `~/.config/nvx/nvx.conf`.
It is a simple INI file, which contains the following sections:
- Layout: defines the layout matrix using the screen indices and can
have multiple rows.
- Screens: must be called Screen_\<screen index\> and defines the screen properties.

### Example

```ini
# $HOME/.config/nvx/nvx.conf
[Layout]
Row_1 = 0 4 0
Row_2 = 1 2 3

[Screen_0]
ScreenID = DUMMY-0
ScreenName = Dummy 0
ScreenResolution = 2560x1440
ScreenRefreshRate = 0

[Screen_1]
ScreenID = DP-4
ScreenName = Left Screen
ScreenResolution = 2560x1440
ScreenRefreshRate = 144

[Screen_2]
ScreenID = DP-0
ScreenName = Center Screen
ScreenResolution = 2560x1440
ScreenRefreshRate = 144

[Screen_3]
ScreenID = DP-2
ScreenName = Right Screen
ScreenResolution = 2560x1440
ScreenRefreshRate = 144

[Screen_4]
ScreenID = DP-3
ScreenName = Top Screen
ScreenResolution = 2560x1440
ScreenRefreshRate = 144
```

Notes:
- A dummy screen maybe used for offsetting the screens, you must call is DUMMY-\<index\>

## Installation
### Using pip

```shell
pip3 install nvx
```

## Running
> :warning: Running `nvx` for the first time without prior configuration will write the default config.
> Make sure to properly edit the generated configuration before running nvx again
> (you can use the output from `xrandr` to figure out the screen properties). Improperly configured
> screens could result in a black screen when running the script.

```bash
$ nvx --help
```

```text
usage: main.py [-h] [-w WRAP] [layout ...]

Configure nvidia-settings for multiple screens

positional arguments:
  layout                Screen layout, e.g. 1 2 3, defaults to config file

options:
  -h, --help            show this help message and exit
  -w WRAP, --wrap WRAP  Number of screens per row, e.g. 2 with 4 screens will result in 2x2 layout, infinite if not set
```

```bash
$ nvx # runs using the default configuration
$ nvx 1 2 3 # overrides the layout to [1][2][3] with corresponding screens ids from the configuration
$ nvx 1 2 3 4 --wrap 2 # makes a 2x2 layout: [1][2]
                       #                     [3][4]
```