semvec/pypi-packages huggingface dataset:
dash-slick 0.0.4
React Slick Dash Components
License: MIT

# Dash Slick

Dash Slick is a Dash component library.

## SlickSlider

A component to wrap react-slick `Slider` component (https://github.com/akiran/react-slick/blob/master/src/slider.js).

### Code Example

```python
import dash_slick
import dash
import dash_html_components as html
import dash_bootstrap_components as dbc

app = dash.Dash(__name__, external_stylesheets=[dbc.themes.BOOTSTRAP])

placeholder_text = """
            Est nostrud non nulla labore aute dolore incididunt 
            enim adipisicing irure est nisi excepteur cillum. 
            Magna duis enim voluptate deserunt ullamco in cillum 
            duis magna. Elit ipsum consequat culpa ullamco incididunt. 
            Esse mollit ex amet labore non laboris minim. 
            Dolore labore mollit labore aliquip ad. Proident quis occaecat 
            aute ad quis veniam aliqua eiusmod laboris Lorem do occaecat. 
            Nisi proident labore magna cillum nostrud adipisicing.
        """

app.layout = html.Div([
    dash_slick.SlickSlider(
            dots=True,
            arrows=True,
            infinite=True,
            autoplay=True,
            speed=2000,
            slides_to_show=5,
            slides_to_scroll=1,
            center_mode=True,
            swipe_to_slide=True,
            slide_navigator=True,
            id="slick-slide",
            children=[
                html.Div(dbc.Card([
                    dbc.CardHeader(f"Slide {i}"),
                    dbc.CardBody(placeholder_text),
                    dbc.CardFooter(dbc.Button('Details'), style={'text-align': 'right'}),
                ]), style={'padding': '1em'}) for i in range(20)
            ],
            labels=[f"Slide {i}" for i in range(20)]
    ),
], style={'margin-top': '10%'})


if __name__ == '__main__':
    app.run_server(debug=True)
```
### Result

<img src="https://raw.githubusercontent.com/jackskerman/dash-slick/master/example_images/SliderExample.PNG" alt="Slider-Example" width="1000"/>
datacycle 0.0.3
General toolset to backup & restore with random/filtered/anonymized data (Mongo/Postgres/GCS).
License: MIT
Requires Python: >=3.8,<3.11

# Datacycle

## Getting started

```
cp .env.example .env
vim .env
source .env

poetry install --extras all
poetry run datacycle
```

```
docker build -f Dockerfile -t datacycle .
docker run -it --rm --env-file .env datacycle
```

### Mac requirements

```
brew install mongodb/brew/mongodb-database-tools
brew install libpq
brew link --force libpq
npm install elasticdump -g
```

### Linux requirements

```
apt install -y mongo-tools
apt install -y postgresql-client
npm install elasticdump -g
```

## How to

```
datacycle --help
datacycle doctor

datacycle mongo "mongodb://user:password@localhost:27017/test1?authSource=admin" "mongodb://user:password@localhost:27017/test2?authSource=admin" --transform "
    transforms {
        test1 {
            before-transform {}
        }
    }
"

datacycle mongo mongodb://user:password@localhost:27017/test1?authSource=admin gs://datacycle-test/test1/snapshot --transform ops.hocon

datacycle mongo mongodb://user:password@localhost:27017/test1?authSource=admin mongodb://user:password@localhost:27017/test2?authSource=admin
datacycle mongo mongodb://user:password@localhost:27017/test1?authSource=admin gs://datacycle-test/test1/snapshot
datacycle mongo mongodb://user:password@localhost:27017/test1?authSource=admin test1/snapshot

datacycle mongo gs://datacycle-test/test1/snapshot mongodb://user:password@localhost:27017/test2?authSource=admin
datacycle mongo gs://datacycle-test/test1/snapshot gs://datacycle-test/test2/snapshot
datacycle mongo gs://datacycle-test/test1/snapshot test2/snapshot

datacycle mongo test1/snapshot mongodb://user:password@localhost:27017/test2?authSource=admin
datacycle mongo test1/snapshot gs://datacycle-test/test2/snapshot
datacycle mongo test1/snapshot test2/snapshot
```

## Providers

### Postgres

https://www.postgresql.org/docs/9.1/backup.html

- SQL dump
- file system snapshot
- continuous archiving

```
pg_dump --clean "postgres://user:password@localhost:5432/test" | gzip > dump.gz
gunzip -c dump.gz | psql "postgres://user:password@localhost:5432/test"
```

### Mongo

https://docs.mongodb.com/manual/core/backups/

- BSON dump
- file system snapshot
- CDC

```
mongodump --uri="mongodb://user:password@localhost:27017/test?authSource=admin" --out=dump --numParallelCollections=10 -v --gzip
mongorestore --uri="mongodb://user:password@localhost:27017/test?authSource=admin" dump/test --numParallelCollections=10 -v --gzip
```

### Elasticsearch

https://github.com/elasticsearch-dump/elasticsearch-dump

- dump

```
elasticdump --input=https://localhost:9200 --output=$ --limit 2000 | gzip > dump.gz
```