semvec/pypi-packages huggingface dataset:
fucking-argparse 0.0.3
A dataclass generate library for Namespace object generated by argparse
Requires Python: >=3.9

# Fucking Argparse
A dataclass generate library for Namespace object generated by argparse


## install 
```bash
# install via TestPyPI
pip install -i https://test.pypi.org/simple/ fucking-argparse

# install via source
git clone https://github.com/Shadowsight9/fucking-argparse.git
cd fucking-argparse
pip install --editable .
```


## Usage 
Step1: insert code
```python
import argparse
# import
from fucking_argparse import gen_codes
parser = argparse.ArgumentParser()
parser.add_argument("--inductor", type=str, default="rule")
parser.add_argument("--group_beam", type=bool, default=False)
parser.add_argument("--mlm_training", type=bool, default=False)
parser.add_argument("--bart_training", type=bool, default=False)
parser.add_argument("--if_then", type=bool, default=False)
parser.add_argument("--task", type=str, default="openrule155")
args = parser.parse_args()

# insert gen_codes function after read and preprocess arguments
gen_codes(args=args, file_path="./arguments.py")
# exit process for modify code to run again
exit()

```

Step2: add type hint

```python
# import generated arguments file
from arguments import Arguments
# init `dataclass` to replace typeless `Namespace`
args = Arguments()
# enjoy a safe replay process with type hints !
...
```

## Test

```bash
cd tests
python -m unittest
```

## Build and publish
```bash
cd tests
python -m build
twine upload --repository testpypi dist/*
```
django-consul 0.4.0
A django app which register django service to consul server.
Requires Python: >=3.6

# django-consul
 
 A Django app which registering service to consul agent at start time.
 
## Installation

```shell script
pip install django-consul
```

## Configurations

Add `ConsulService` to INSTALLED_APPS setting.

CONSUL_AGENT_ADDRESS Consul agent server's address

CONSUL_AGENT_PORT Consul agent server's port

CONSUL_CHECK_URL API on service used by consul server to check it's status

CONSUL_CHECK_INTERVAL Status check interval

CONSUL_SERVICE_NAME Local service name

CONSUL_SERVICE_ADDRESS Local service address

SERVICE_PORT Local service port