semvec/pypi-packages huggingface dataset:
flake8-copyright-validator 0.0.1
Check if python file contain copyright text
License: MIT
Requires Python: >=3.7

# flake8-copyright-validator

Flake8 plugin for validating copyright text in python files.
___

## Installation

```shell
pip install flake8-copyright-validator
````

## How to use

In your config file like _setup.cfg_ under flake8 specify _copyright-text_ wrapping every string with `'`.

```
[flake8]
copyright-text = 'Example copyright text'
```

### Available flags

* `--update` If difference or lack of copyright was found in file writes copyright text at the beginning of python
  file.  
  If specified, value of bytes-to-read is ignored. Careful with this option if your header is incorrect it will add one
  more on top of wrong header.
* `--bytes-to-read` If your copyright takes more than 2048 bytes or you want to load less text specify this value
* `--detailed-output` Provides detailed output with flake8 error
* `--lines-to-exclude` Files with first line containing value from lines to exclude will not be checked for copyright.  
  Lines to exclude is not a comma separated list. It's a text that is split by end of line (\n).
* `--symbols-to-replace` You can wrap your copyright text with symbols, by default it is `'`, it is used for
  specifying  
  copyright text that starts with `#`. You can change it if you don't need it with this flag. It is comma separated
  list.

## How it works

Plugin splits copyright text by end of line (\n), and reads 2048 bytes of file by default.  
If differences were found it yields `NCF100 No copyright found`.  
Plugin does not use comma separated lists for text

## Complete example of _setup.cfg_

```
[flake8]
lines-to-exclude =
    '# Generated by Django'
    '#!'

copyright-text = 
    '# Example - Example'
    '# Copyright (C) Example'
    '#'
    '# This program is free software: you can redistribute it and/or modify'
    '# it under the terms of the GNU Affero General Public License as published'
```
fsuipc 1.5.0
Client wrapper for FSUIPC
License: MIT
Requires Python: >=3.7
Keywords: flight,simulator,pyuipc

# fsuipc

This project provides a simple Python client class wrapper around the
[FSUIPC](http://www.fsuipc.com/) tool, which allows third-party programs to
interact with the "inner workings" of popular flight simulator software.

Fsuipc is built on top of (and includes) `pyuipc`, by István Váradi
(ivaradi@varadiistvan.hu).

## Installation

The easiest way to install this package is using `pip`:

```
pip install fsuipc
```

Note that fsuipc only supports Python on Windows platforms.

## Basic Usage

```python
from fsuipc import FSUIPC


with FSUIPC() as fsuipc:
    prepared = fsuipc.prepare_data([
        (0x560, "l"),
        (0x568, "l"),
        (0x570, "l")
    ], True)

    while True:
        latitude, longitude, altitude = prepared.read()

        print(f"Latitude: {latitude}")
        print(f"Longitude: {longitude}")
        print(f"Altitude: {altitude}")

        input("Press ENTER to read again")
```

## Troubleshooting

### IPC request contains bad data

This error can be caused by a word length mismatch between the client and
server processes. If your flight simulator software is 32-bit, you probably
need to be running a 32-bit version of Python. Similarly, if your flight
simulator is 64-bit, you need to run a 64-bit version of Python.

You can check if your Python is 32-bit or 64-bit by running the command:

```
python -VV
```

### IPC sendmessage failed all retries

This error can occur if you need to run your Python script as an administrator
in order to communicate with the server process.