semvec/pypi-packages huggingface dataset:
goerrpy 1.0.3
Decorator for simulating Golang's error handling in Python

# goerrpy

Decorator for simulating Go's error handling in Python

A simple example:
```python
from goerrpy import goerr

@goerr()
def hello_world(): 
    raise Exception("WORLD SHALL NOT BE GREETED!")

value, err = hello_world()

if err is not None:
    print(err)
```

Passing variables:
```python
@goerr()
def get_numbers_larger_than_five(list: typing.List):
    result = []
    for num in list:
        if type(num) is not int:
            raise Exception("All values should be integers!")

        if num > 5:
            result.append(num)

    return result


value, err = get_numbers_larger_than_five([4, 5, 6, 7])

if err is not None:
    print(err)

# value is [6, 7]
```

How to unpack multiple values:
```python 
@goerr(unpack=True)
def get_numbers_smaller_than_five_but_unpack(list: typing.List):
    result = []
    for num in list:
        if type(num) is not int:
            raise Exception("All values should be integers!")

        if num < 5:
            result.append(num)

    return result, result  # so that it can be unpacked


first_list, second_list, err = get_numbers_smaller_than_five_but_unpack([3, 4, 5, 7])

if err is not None:
    print(err)

# first_list is [3, 4] and second_list is [3, 4]
```
lewd-dl 0.1.0
Download videos from lewd websites

# lewd-dl
Command-line tool to download videos from lewd websites

## INSTALLATION
To install lewd-dl via pip, run:<br>
```
python -m pip install lewd-dl
```

To install lewd-dl from source, run:<br>
```
git clone https://github.com/b3yc0d3/lewd-dl.git
cd lewd-dl
make install
```

## DEVELOPMENT
If you want to contribute to this project, please send a pull-request to the `dev` branch.

To setup lewd-dl for development, run:<br>
```
git clone https://github.com/b3yc0d3/lewd-dl.git
cd lewd-dl
```
To build it run:<br>
```
make build
```
After the first build, you need to install it localy. This step only needs to be done once OR when you changed something in the `setup.py`. Simply run:<br>
```
make install
```


## WEBSITE SUPPORT
| Websites          | Status       | Version |
| :---------------- | :----------- | ------: |
| xvideos.com       | Full Support |   0.1.0 |
| xhamster.vom      | Full Support |   0.1.0 |
| xnxx.vom          | Full Support |   0.1.0 |
| pornhub.com       | Full Support |   0.1.0 |
| ~~youporn.com~~   | Planed       |   ?.?.? |
| ~~xhamster.desi~~ | Planed       |   ?.?.? |
| ~~hanimetv.tv~~   | Planed       |   ?.?.? |

## USAGE
```
usage: lewd-dl [-h] [--user-agent UA] [-r RES] [--rate-limit SEC] [-f FORMAT] [-o OUTPUT] [--cache-dir DIR] [-R]
               [--dump-user-agent]
               [url]

positional arguments:
  url                Video urls to download

options:
  -h, --help         show this help message and exit
  --user-agent UA    Set user agent
  -r RES             Select resolution to download (By deafult "best" is chossen)
  --rate-limit SEC   Time to wait between download requests (default 0.5s)
  -f FORMAT          Select format to download (default mp4)
  -o OUTPUT          Output filename
  --cache-dir DIR    Set custom cache folder
  -R                 Prints available resolutions and exits
  --dump-user-agent  Prints current user-agent then exits
```
binaryreader 0.1.4
a c-extension that implements a binary reader on top of bytes and bytearrays
Keywords: python,cpython,c-api,binary,parsing

# binaryreader

binaryreader is a faster and more elegant alternative to ``struct`` for parsing binary data in Python.

## Example

```python
from binaryreader import BinaryReader

data: bytes|bytearray
read_little_endian: bool = True
reader = BinaryReader(data, read_little_endian)

text = reader.readStringC()
```

## Benchmark

TODO


## Documentation

### Notes:
- kwargs won't be accepted, only args are useable
- all readArray functions accept a langth as optional argument
- bytes can be read by using readUInt8Array


### Init
- ``BinaryReader(data: bytes|bytearray, is_little_endian: bool)``

### Properties

- ``.endian: bool``\[get,set\] - endianness of the reader (True - little, False - big)
- ``.position: int``\[get,set\] - position of the cursor within the data
- ``.size: int``\[get\] - size of underlying/passed object
- ``.obj: bytes|bytearray``\[get\] - underlying/passed object

### Functions
- ``.readBool(): bool`` - reads a bool
- ``.readInt8(): int`` - reads an int8
- ``.readUInt8(): int`` - reads an uint8
- ``.readInt16(): int`` - reads an int16
- ``.readUInt16(): int`` - reads an uint16
- ``.readInt32(): int`` - reads an int32
- ``.readUInt32(): int`` - reads an uint32
- ``.readInt64(): int`` - reads an int64
- ``.readUInt64(): int`` - reads an uint64
- ``.readHalf(): float`` - reads a half
- ``.readFloat(): float`` - reads a float
- ``.readDouble(): float`` - reads a double
- ``.readBoolArray(): [bool]`` - reads a bool array
- ``.readInt8Array(): [int]`` - reads a array of int8
- ``.readUInt8Array(): bytearray`` - reads a array of uint8
- ``.readInt16Array(): [int]`` - reads a array of int16
- ``.readUInt16Array(): [int]`` - reads a array of uint16
- ``.readInt32Array(): [int]`` - reads a array of int32
- ``.readUInt32Array(): [int]`` - reads a array of uint32
- ``.readInt64Array(): [int]`` - reads a array of int64
- ``.readUInt64Array(): [int]`` - reads a array of uint64
- ``.readHalfArray(): [float]`` - reads a array of half
- ``.readFloatArray(): [float]`` - reads a array of float
- ``.readDoubleArray(): [float]`` - reads a array of double
- ``.readStringC(): str`` - reads a null terminated string
- ``.readStringCArray(): [str]`` - reads an array of null terminated strings
- ``.readString(): str`` - reads a string (if length is not passed as arg, read an int as length)
- ``.readStringArray(): [str]`` - reads an array of strings
- ``.readStringAligned(): str`` - same as readString but aligned to 4 bytes after reading the string
- ``.readStringAlignedArray(): [str]`` - reads an array of aligned strings
- ``.align(align_by: int): int`` - aligns the cursor to the given input and returns the position after the alignment
- ``.readVarInt(): int`` - reads a varint
- ``.readLSB(): bytearray`` - reads the lsb data of the given size (in bytes to read -> output length is 1/8 of that)