semvec/pypi-packages huggingface dataset:
srvwrapper 1.5
srvwrapper wraps any applications to run as Windows Service

# srvwrapper
Create Windows service from executable

## Install
### Step 1:
Download and install the `srvwrapper` package for python.
```
pip install srvwrapper
```
### Step 2:
Use the `srvwrapper` command and pass the service name and program path to create a service. Other optional commands are listed with the `--help` command.
```
usage: srvwrapper [-h] [--arguments ARGUMENTS] [--display DISPLAY]
                  [--description DESCRIPTION] [--start START]
                  [--depend DEPEND] [--obj OBJ] [--password PASSWORD]
                  name program

Wrap any applications to run as Windows Service

positional arguments:
  name                  service name
  program               application path

optional arguments:
  -h, --help            show this help message and exit
  --arguments ARGUMENTS
                        arguments for program
  --display DISPLAY     the display name of the service
  --description DESCRIPTION
                        service description
  --start START         how the service starts
                        <boot|system|auto|demand|disabled|delayed-auto>
  --depend DEPEND       dependencies(separated by / (forward slash))
  --obj OBJ             the account used to run the service
                        (default=LocalSystem)
  --password PASSWORD   password of the account
  --failure-reset FAILURE_RESET
                        specifies the length of the period (in seconds) with
                        no failures after which the failure count should be
                        reset to 0 (zero).
  --failure-command FAILURE_COMMAND
                        specifies the command-line command to be run when the
                        specified service fails.
  --failure-actions FAILURE_ACTIONS
                        specifies one or more failure actions and their delay
                        times (in milliseconds), separated by a forward slash
                        (/). Valid actions are run, restart, and reboot.
```
When using `--arguments`, make sure you added a double quote around it. Here are some examples:
1. Create a service named `service1` with command line `python test.py log.txt`.
```cmd
srvwrapper service1 python --arguments "test.py log.txt"
```
2. Use absolute program path to create a service.
```cmd
srvwrapper service2 C:\Python36\python.exe --arguments "\\\"D:\test 1\test.py\\\"" --display "Service 2" --description "A description" --start auto
```
3. Use specific account.
```cmd
srvwrapper service3 ping --arguments "-t github.com" --obj "NT AUTHORITY\NetworkService" --depend service2/service1
```

### Step 3:
To start/stop the service, use the `net` command
```cmd
net start service_name
net stop service_name
```


## Uninstall
Use Windows `sc` command.
```
sc delete ServiceName
```
autoth-qiuqiangkong 0.0.3
Automatic threshold optimization
Requires Python: >=3.6

# Autoth: Automatic optimzie hyper parameters

Autoth is a Python toolbox to automatically optimize hyper parameters to maximize scores. For example, Autoth can optimize hyper parameters to maximize F1 score in a classification task. In practice, Autoth numerically calculate gradients of scores over hyper parameters. Then, the hyper parameters are updated according to the gradients iteratively. Please see [1] for details.

## Install
```
pip install autoth
```

## Example
```
python3 example.py
```

## Results
<pre>
------ Manually selected hyper parameters ------
Hyper parameters: [0.3, 0.3, 0.3]
Score: 0.5556

------ Automatic optimized hyper parameters ------
Optimizing hyper parameters ...
learning rate: 0.010, total epochs: 10
    Hyper parameters: [0.3, 0.31, 0.29], score: 0.5556
    Epoch: 0, Time: 0.0181 s
    Hyper parameters: [0.3, 0.3197, 0.2801], score: 0.5556
    Epoch: 1, Time: 0.0178 s
    Hyper parameters: [0.3, 0.3237, 0.2702], score: 0.5714
    Epoch: 2, Time: 0.0212 s
    Hyper parameters: [0.3, 0.3245, 0.263], score: 0.6099
    Epoch: 3, Time: 0.0144 s
    Hyper parameters: [0.3, 0.3232, 0.2548], score: 0.6099
    Epoch: 4, Time: 0.0142 s
    Hyper parameters: [0.3, 0.3204, 0.2464], score: 0.6099
    Epoch: 5, Time: 0.0151 s
    Hyper parameters: [0.3, 0.3164, 0.2382], score: 0.6099
    Epoch: 6, Time: 0.0159 s
    Hyper parameters: [0.3, 0.316, 0.2302], score: 0.5940
    Epoch: 7, Time: 0.0143 s
    Hyper parameters: [0.3, 0.318, 0.2226], score: 0.5940
    Epoch: 8, Time: 0.0150 s
    Hyper parameters: [0.3, 0.3186, 0.2152], score: 0.6099
    Epoch: 9, Time: 0.0177 s

Optimized hyper parameters: [0.3, 0.3186, 0.2152]
Score: 0.6099
</pre>

## Cite
[1] Kong, Qiuqiang, Yong Xu, Wenwu Wang, and Mark D. Plumbley. "Sound Event Detection of Weakly Labelled Data with CNN-Transformer and Automatic Threshold Optimization." arXiv preprint arXiv:1912.04761 (2019).
HelloWorldInPIP 0.0.2
A simple example of Python code Package
Keywords: HelloWorld Package Python

# Hello world  @PIP

这是一个【样例】项目，用于演示如何将本地的Python项目打包，并发布到PyPI上。

以便于其他的人可以通过如下的方式获取你的代码：
```
pip install xxx
```
---
时间线：
1. 更新时间：2020年6月3日13:07:43

---