semvec/pypi-packages huggingface dataset:
sheetconf 0.0.1
google spreadsheet as config file
Requires Python: >3.5

![Python package](https://github.com/podhmo/sheetconf/workflows/Python%20package/badge.svg) [![PyPi version](https://img.shields.io/pypi/v/sheetconf.svg)](https://pypi.python.org/pypi/sheetconf) [![](https://img.shields.io/badge/python-3.7+-blue.svg)](https://www.python.org/download/releases/3.7.0/) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://black.readthedocs.io/en/stable/)


# sheetconf

spreadsheet as config

## how to use it

Get config object from spreadsheet something like below.
https://docs.google.com/spreadsheets/d/1PgLfX5POop6QjpgjDLE9wbSWWXJYcowxRBEpxmpG8og

```python
import sys
import typing_extensions as tx
import sheetconf
from sheetconf.usepydantic import Parser
from pydantic import BaseModel, Field


class XXXConfig(BaseModel):
    name: str
    token: str


class YYYConfig(BaseModel):
    name: str = Field(default="yyy", description="name of yyy")
    token: str = Field(description="token of yyy")


class LoggerConfig(BaseModel):
    level: tx.Literal["DEBUG","INFO", "WARNING", "ERROR"]


class Config(BaseModel):
    xxx: XXXConfig
    yyy: YYYConfig
    logger: LoggerConfig


url = "https://docs.google.com/spreadsheets/d/1PgLfX5POop6QjpgjDLE9wbSWWXJYcowxRBEpxmpG8og"
config = sheetconf.loadfile(url, config=Config, format="spreadsheet", adjust=True)

print(config)
# Config(logger=LoggerConfig(level='INFO'), xxx=XXXConfig(name='xxx', token='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'), yyy=YYYConfig(name='yyy', token='yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'))
```

## other

- [./examples/e2e](./examples/e2e)
ds-create 0.2.1
A simple CLI program for creating program templates.
Requires Python: >=3.6

# ds-create

_created by Austin Poor_

A simple CLI program (inspired by _create-react-app_) for creating program templates.

## To Install

```bash
pip install ds-create
```

## To Run

Instructions are formatted as follows:

```bash
ds-create [command] -n [template-name]
```

List of commands:
* `snap`: save a new template
* `create`: extract template contents
* `update`: update template
* `delete`: delete template
* `list`: list templates or list template contents

### List Templates

List all templates:

```bash
ds-create list
```

List info for template `app-template`:

```bash
ds-create list -n app-template
```

### Save a Template

To save the current directory as a new template called `app-template`, run the following:

```bash
ds-create snap -n app-template
```

### Create from Template

Extract the contents of `app-template` in the current directory:

```bash
ds-create create -n app-template
```

### Update from Template

Update the contents of `app-template` in the current directory:

```bash
ds-create update -n app-template
```

### Delete a Template

Delete template `app-template`:

```bash
ds-create delete -n app-template
```

Delete all templates (you'll be prompted for confirmation):

```bash
ds-create delete
```