semvec/pypi-packages huggingface dataset:
koggi 0.1.3
PostgreSQL backup & restore CLI
License: MIT
Requires Python: >=3.12
Keywords: backup, cli, postgresql, restore

# koggi
- PostgreSQL backup & restore CLI (early foundation).  



# Quick start

## 1. INSTALL  

```
pip install koggi
```

## 2. save settings in project root

```
# project-root/.env
KOGGI_DEFAULT_DB_NAME=db_name
KOGGI_DEFAULT_DB_USER=postgres
KOGGI_DEFAULT_DB_PASSWORD=password
KOGGI_DEFAULT_DB_HOST=localhost
KOGGI_DEFAULT_DB_PORT=5432
KOGGI_DEFAULT_SSL_MODE=prefer
KOGGI_DEFAULT_BACKUP_DIR=./backups
KOGGI_DEFAULT_ALLOW_RESTORE=true
```

## 3. download binary files  

```
koggi binaries download
```

## 4. backup

```
koggi pg backup
```

## 5. restore  

```
koggi pg restore
```



- Prepare a `.env` with at least one profile (DEFAULT example):

```
KOGGI_DEFAULT_DB_NAME=example
KOGGI_DEFAULT_DB_USER=postgres
KOGGI_DEFAULT_DB_PASSWORD=secret
KOGGI_DEFAULT_DB_HOST=localhost
KOGGI_DEFAULT_DB_PORT=5432
KOGGI_DEFAULT_SSL_MODE=prefer
KOGGI_DEFAULT_BACKUP_DIR=./backups
```

- `.env`  (dev1 example):

```
KOGGI_DEV1_DB_NAME=example
KOGGI_DEV1_DB_USER=postgres
KOGGI_DEV1_DB_PASSWORD=secret
KOGGI_DEV1_DB_HOST=localhost
KOGGI_DEV1_DB_PORT=5432
KOGGI_DEV1_SSL_MODE=prefer
KOGGI_DEV1_BACKUP_DIR=./backups
KOGGI_DEFAULT_ALLOW_RESTORE=false
```



- List profiles: `koggi config list`
- Test connection: `koggi config test DEFAULT`
- Create backup: `koggi pg backup -p DEFAULT`
- Restore latest: `koggi pg restore -p DEFAULT`
 - Check binaries: `koggi binaries which`

Notes

- Embedded binaries: Koggi can use packaged PostgreSQL tools.
  - Place binaries under `src/koggi/_bin/<os>-<arch>/`:
    - Example tags: `windows-x86_64`, `darwin-arm64`, `linux-x86_64`.
    - Required files: `pg_dump[.exe]`, `psql[.exe]`, `pg_restore[.exe]`.
  - Or put them in cache: `%LOCALAPPDATA%/koggi/bin/<tag>/` (Windows) or `~/.cache/koggi/bin/<tag>/` (Unix).
  - You can override via env: `KOGGI_PG_DUMP`, `KOGGI_PSQL`, `KOGGI_PG_RESTORE`.
- If no embedded binary is found, Koggi falls back to system PATH.
- This is Phase 1 scaffold based on plan.md; more features will follow.
markdown-css 0.0.8
Markdown-css is a command tool to convert css style to markdown inline-style
License: MIT
Requires Python: >=3.6
Keywords: markdown-css, markdown, css

makrdown-css
=========

[![pypi](https://img.shields.io/pypi/v/markdown_css.svg)](https://pypi.python.org/pypi/markdown-css)

Markdown css is a command tool to convert css style into markdown inline style.

[中文文档](README-zh_cn.md)
[演示](http://wecatch.me/markdown-css/)

## Theme Demo

[apollo.css](http://wecatch.me/markdown-css/themes/apollo.html)

[ocean.css](http://wecatch.me/markdown-css/themes/ocean.html)

[simple.css](http://wecatch.me/markdown-css/themes/simple.html)

[style.css](http://wecatch.me/markdown-css/themes/style.html)

[typing.css](http://wecatch.me/markdown-css/themes/typing.html)

[xiaolai.css](http://wecatch.me/markdown-css/themes/xiaolai.html)



## Install

*maxOS*

```bash
xcode-select --install
pip install markdown-css
```

**linux**

```bash
apt-get install libxml2-dev libxslt1-dev python-dev
apt-get install python-lxml
pip install markdown-css
```

## Getting started

```bash
pip install markdown-css
mkdir public
touch style.css
markdown -h
markdown-css markdown.html --style=style.css --out=public
```

### Themes

https://github.com/wecatch/markdown-css/tree/master/themes

### Demo

```
git clone https://github.com/wecatch/markdown-css.git
cd themes
markdown-css markdown.html --style=simple.css --out=public
```

## Selector

markdown-css support css selector like these:

*element selector*

```css
p {
    margin: 10px 0;
}
```


*multi element selector*

```css
h1,p,h2,pre {
    color: #333;
}
```

*all element*

```css
* {
    font-size: 14px
}
```

*pseudo-selector*

```css
h1:before {
    content: '#'
}
```

*child element seletor*

```css
blockquote p {
    color:#888;
}

```
> Pseudo-selector can't be used in inline-style, these selectos are write into \<style\> tag

## 中文介绍

markdown-css 是一个命令行工具用来为无 CSS 的 html 文档添加 CSS，渲染之后的 html 可以直接粘贴在微信公众号使用。

要使用 markdown-css ，通常你需要一款类似 typora 的编辑器，用 markdown 完成写作之后导出为不带任何 style 的 html 文档:

![](desc.png)

然后再需要提供一个主题样式，仓库里已经有了一些主题样式可以使用，用以下命令完成转换：

```shell
markdown-css markdown.html --style=style.css --out=public
```

渲染之后的文档会导出在同目录下的 public 中，用 Chrome 浏览器打开渲染之后的同名文档，复制粘贴到微信公众号编辑器即可。

> 注意: 由于微信公众号对 ul 和 ol 进行了转换，markdown-css 针对这两种标签进行了特殊处理，并且提供了 render 参数来选择是否要特殊处理 ul 和 ol，默认情况为是，可以根据自己的需要不特殊处理 ul 和 ol，只要 render 不等于 wechat 即可。
gemDP 0.2
Gem is a Python library that makes Minecraft Datapack/Resourcepack creation process easier
License: MIT
Requires Python: >=3.9

# <img src="https://raw.githubusercontent.com/UniversalShift/GemDP/refs/heads/main/Assets/Gem.gif" width="30" height="30" />  Gem <img src="https://raw.githubusercontent.com/UniversalShift/GemDP/refs/heads/main/Assets/Gem.gif" width="30" height="30" />

[Gem](https://github.com/UniversalShift/GemDP) is a [Python library](https://pypi.org/project/gemDP) that makes Minecraft Datapack/Resoursepack creation process easier


# Installation

Run this:
<code>pip install gemDP</code>

# Usage

[Gem](https://github.com/UniversalShift/GemDP) allows you to use powerful python libraries or modules in datapack creating (like [math](https://docs.python.org/3/library/math.html)) which makes it much easier.
Also it adds many features like


- Adding real placable blocks (or even items) with custom reciepes and attributes easily using simple functions. [See Examples](https://github.com/UniversalShift/GemDP/blob/main/Examples)

<img src="https://raw.githubusercontent.com/UniversalShift/GemDP/refs/heads/main/Assets/example.png" width="720" height="520" />

- Creating functions or other namespaces with a single code line without using an explorer.