semvec/pypi-packages huggingface dataset:
hetzner-fix-report 0.11.0
This package demonstrates building and publishing Python Packages with GitHubs infrastructure

# hetzner-fix-report
Fixes Hetzner CSV reports by cleaning the CSV and merging project name from PDF.

## Installation
### Preliminary libraries

Debian, Ubuntu, etc

```
sudo apt-get install build-essential libpoppler-cpp-dev pkg-config python-dev
```

Fedora, Red Hat, etc

```
sudo yum install gcc-c++ pkgconfig poppler-cpp-devel python-devel redhat-rpm-config
```

Arch, etc

```
sudo pacman -S poppler
```

### Python package
This project is hosted on [PyPI](https://pypi.org/project/hetzner-fix-report/) and can therefore be installed easily through pip:

```
pip install hetzner_fix_report
```

Dependending on your setup you may need to add `--user` after the install.

## Usage
### Single report
Use the command line interface to combine a `csv` and `pdf` file:

```
hetzner-fix-report Hetzner_2020-01-05_RXXXXXXXXXX.csv Hetzner_2020-01-05_RXXXXXXXXXX.pdf
```

Or shorten it using brace expansion:

```
hetzner-fix-report Hetzner_2020-01-05_RXXXXXXXXXX.{csv,pdf}
```

If you want to save the enriched csv output, use either the `-o` parameter as explained in the program's help or redirect output to a file using `>`.

### Batchwise processing
When in a directory that holds multiple `csv` and `pdf` files the following shell script should call the tool and save its output within a newly created subdirectory:

```
mkdir -p fix
for csv in *.csv; do pdf=${csv%%.*}.pdf; hetzner-fix-report -o "fix/$csv" "$csv" "$pdf"; done
```

## Original & enriched format
Hetzner's original CSV reports have the problem of being unprecise and not machine readable.
This is especially noticeable in the long multiline comment column that may is mostly human readable.
Currently the PDF report contains additional information about the entry's (server/backup) associated project.
Since this information is not contained within the CSV reports I wanted to fix this.
The enriched format has the following keys and examplary values:

Key | Example | New
:-|:-:| :-:
`id` | `2520725` | ✔
`name` | `my-server` | ✔
`project` | `My Project` | ✔
`type` | `cx31` |
`quantity` | `1` |
`usage_hours` | `42` | ✔
`price` | `8.9` |
`price_netto` | `4.9` |
`price_max` | `2.49` | ✔
`day_from` | `2020-06-01` |
`day_to` | `2020-06-30` |
`is_backup` | `False` | ✔
`is_server` | `True` | ✔
`is_ceph` | `False` | ✔
pyny-web 1.0.7
Tiny Python3 based web server.
Requires Python: >=3.6

<pre>
                           __    __     _     
 _ __  _   _ _ __  _   _  / / /\ \ \___| |__  
| '_ \| | | | '_ \| | | | \ \/  \/ / _ \ '_ \ 
| |_) | |_| | | | | |_| |  \  /\  /  __/ |_) |
| .__/ \__, |_| |_|\__, |   \/  \/ \___|_.__/ 
|_|    |___/       |___/
</pre>

Tiny Python3 based web server.

### Install

```bash
pip3 install pyny-web
```

### Usage

```python
import pyny_web

pyny_web.run()
```

Move webcontent to webroot directory which is the `html` directory in your project by default.

The default port is 8080.

### Config

After running for the first time a `pyny.config` will be generated.

Here you can set the port and webroot.

Per deafult the config looks like this

```config
[pyny Web]
webroot = html
port = 8080
```

### Source

Check [here](https://github.com/zeppelsoftware/pyny).
peedeeff 0.0.1
Python Client for Peedeeff
Requires Python: >=3.6

# Py Peedeeff
`python` client for peedeeff

## Usage

```python
from peedeeff import Peedeeff

r = Peedeeff.get_pdf(apiKey='yourapikey', html = '<h1>Hello World</h1>', 
    pageConfig={
        'size':'A4', 
        'printBackground': True,
        'margin': { 
            'top': '1cm', 
            'right': '1cm', 
            'bottom': '1cm', 
            'left': '1cm' 
            }
        }) 

r.status

pdf =r.content

```

Copyright Peedeeff All rights reserved
fdfs-client-py3 1.0.0
python3 fastdfs package
Requires Python: >=3.5

# fdfs-client-py3 Package

## 1. Installation

```python
pip install fdfs-client-py3==1.0.0
```

## 2. Getting Started

**upload file**：

1）upload file by name

```python
from fdfs_client.client import Fdfs_client
client = Fdfs_client('/path/to/fdfs/client.conf')
res = client.upload_by_filename('/path/to/upload_file')

# res：
# {
#   'Status': 'Upload successed.', 
#   'Local file name': '', 
#   'Storage IP': '192.168.19.131', 
#   'Group name': 'group1', 
#   'Remote file_id': 'group1/M00/00/02/wKgTg18Bnz2ASFgeAAAswnVEUA47566649', 
#   'Uploaded size': '11.19KB'
# }
```

2）upload file by content

```python
from fdfs_client.client import Fdfs_client
client = Fdfs_client('/path/to/fdfs/client.conf')
file = open('/path/to/upload_file')
res = client.upload_by_filename(file.read())

# res：
# {
#   'Status': 'Upload successed.', 
#   'Local file name': '', 
#   'Storage IP': '192.168.19.131', 
#   'Group name': 'group1', 
#   'Remote file_id': 'group1/M00/00/02/wKgTg18Bnz2ASFgeAAAswnVEUA47566649', 
#   'Uploaded size': '11.19KB'
# }
```

### 3. Author

the author is smarli，if you has some quesion，you can contact us by email to smartli_it@163.com。