semvec/pypi-packages huggingface dataset:
git-bak 0.2.0
Git-Bak is a backup/restore cli for local Git repositories.
Requires Python: >=3.12

# git-bak

`git-bak` is a simple CLI tool designed for automated backup and restore of local Git repositories. It allows you to easily mirror your repositories to another location and restore them when needed.

## Features

- 🔄 Backup and restore local Git repositories.
- 🎯 Filter repositories using `--include` and `--exclude`.
- 🕒 Restore from the latest or a specific timestamped backup.
- 🧾 Optional file and console logging.
- 🤫 Quiet mode for background jobs (e.g., cron).

## Installation

```bash
pip install git-bak
```

## Usage

### Backup

```bash
git-bak backup --source /path/to/repos --destination /path/to/backup [options]
```

### Restore

```bash
git-bak restore --source /path/to/backup --destination /path/to/restore [options]
```

### Parameters

| Parameter        | Description                                                                 |
|------------------|-----------------------------------------------------------------------------|
| `--source`       | Path to the source directory (where the repos are located or backed up).   |
| `--destination`  | Path to the destination directory (where to store or restore repositories). |
| `--include`      | *(Optional)* List of repository names to include. Seperate names by space.                           |
| `--exclude`      | *(Optional)* List of repository names to exclude. Seperate names by space.                           |                           |
| `--timestamp`    | *(Optional)*, Restore from a specific backup timestamp (e.g 20250731_1000). If not provided, restores the latest backup. |
| `--verbose`       | *(Optional)* Enable debug logging.                              |
| `--log-to-file`       | *(Optional)* Enable file logging. Log file location: $HOME/git_backup|restore.log                              |
| `--quiet`       | *(Optional)* Suppress console output (StreamHandler) (useful for cron)..    


If neither `--include` nor `--exclude` are specified, all repositories in the source directory will be backed up or restored.


## Logging

- Log level defaults to `INFO`. Use `--verbose` to increase to `DEBUG`.
- Use `--quiet` to silence all console output.
- File logging is **disabled by default**. Enable it with `--log-to-file`.
  - Backup logs go to: `$HOME/git_backup.log`
  - Restore logs go to: `$HOME/git_restore.log`

## Examples

Backup all repositories:

```bash
git-bak backup --source ~/projects --destination ~/git_backups
```

Backup only selected repositories with debug logs printed:

```bash
git-bak backup --source ~/projects --destination ~/git_backups --include repo1 repo2 --verbose
```

Backup all repositories quietly in a cron job:

```bash
git-bak backup --source ~/projects --destination ~/git_backups --quiet --log-to-file
```

Restore the latest backup of all repositories:

```bash
git-bak restore --source ~/git_backups --destination ~/restored_projects
```

Restore a specific backup from a timestamp:

```bash
git-bak restore --source ~/git_backups --destination ~/restored_projects --timestamp 20250731_150000
```
dash-extensions 2.0.5rc1
Extensions for Plotly Dash.
Requires Python: >=3.11

[![PyPI Latest Release](https://img.shields.io/pypi/v/dash-extensions.svg)](https://pypi.org/project/dash-extensions/)
[![codecov](https://img.shields.io/codecov/c/github/thedirtyfew/dash-extensions?logo=codecov)](https://codecov.io/gh/thedirtyfew/dash-extensions)
[![Testing](https://github.com/thedirtyfew/dash-extensions/actions/workflows/python-test.yml/badge.svg)](https://github.com/thedirtyfew/dash-extensions/actions/workflows/python-test.yml)
[![CodeQL](https://github.com/thedirtyfew/dash-extensions/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/thedirtyfew/dash-extensions/actions/workflows/codeql-analysis.yml)

The `dash-extensions` package is a collection of utility functions, syntax extensions, and Dash components that aim to improve the Dash development experience. Here is a brief overview,

-   The `enrich` module, which contains various enriched versions of Dash components
-   A number of custom components, e.g. the `Websocket` component, which enables real-time communication and push notifications
-   The `javascript` module, which contains functionality to ease the interplay between Dash and JavaScript
-   The `logging` module, which makes it a breeze to route logs to your Dash UI
-   The `events` module, which facilitates event flows in Dash
-   The `pages` module, which extends the functionality of [Dash Pages](https://dash.plotly.com/urls)
-   The `snippets/utils/validation/streaming` modules, which contain a collection of utility functions (documentation limited to source code comments)

The `enrich` module enables a number of _transforms_ that add functionality and/or syntactic sugar to Dash. Examples include

-   Making it possible to avoid invoking a callback _if it is already running_ via the `BlockingCallbackTransform`
-   Improving app performance via the `ServersideOutputTransform`
-   Automated serialization/deserialization of [Pydantic](https://docs.pydantic.dev/latest/) models via the `BaseModelTransform`

to name a few. To enable interactivity, the documentation has been moved to a [separate page](http://dash-extensions.com).

NB: The 2.0.0 version introduces a number of breaking changes, see documentation for details.

## Donation

[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=Z9RXT5HVPK3B8&currency_code=DKK&source=url)
pkg-log-search 0.0.1
Command-line tool to filter structured log files by date, level, module, or message pattern
Requires Python: >=3.13

```bash
Def: pkg-log-search is a CLI tool to filter structured tab-delimited log files

usage: pkg-log-search [-h] --logfile LOGFILE [--from START] [--to END] [--level LEVEL] [--module MODULE] [--regex REGEX]

Filter structured log files.

options:
  -h, --help         show this help message and exit
  --logfile LOGFILE  Path to log file
  --from START       Start datetime (e.g. '2025-07-28 00:00:00')
  --to END           End datetime (e.g. '2025-07-28 23:59:59')
  --level LEVEL      Log level (e.g. INFO, ERROR, WARNING)
  --module MODULE    Filter by module name
  --regex REGEX      Regex pattern in message


## 🚀 Example Usage
```bash
usage examples:

# Filter by log level
package-log-search --logfile logs/pipeline.log --level ERROR

# Filter by date range
package-log-search --logfile logs/pipeline.log \
  --from "2025-07-28 00:00:00" \
  --to "2025-07-28 23:59:59"

# Filter by module name
package-log-search --logfile logs/pipeline.log --module ingest

# Filter by regex pattern in message
package-log-search --logfile logs/pipeline.log --regex "failed.*attempt"

# Combine all filters
package-log-search --logfile logs/pipeline.log \
  --from "2025-07-28 00:00:00" \
  --to "2025-07-28 23:59:59" \
  --level ERROR \
  --module transform \
  --regex "skipped.*\.json"
TkPdfWidget 1.0
A Pdf file reader in a tkinter's Frame, behaving like a widget
Requires Python: >=3.8
Keywords: tkinter, pdf, widget

**_TkPdfWidget_** is a python librairy extending **_tkinter_** with a PDF file reader widget.

Here is an exemple of how it looks like in a minimalist tkinter window :

<img width="316" height="398" alt="TkPDF_Exemple" src="https://github.com/user-attachments/assets/dc44a4e1-4031-4b6e-92d0-a24a90c11e63" />


## **Intallation** ##

Download the latest package on github or, using pip :
> pip install TkPdfWidget

## **Features :** ##

* Several viewing modes (full width, full page, real size and free move)
* zoom in / out, horizontal and vertical scroll
* 90° pages rotation
* easy access to any page of a document
* keyboard shortcuts (wip)


## **Known alternatives :** ##

Do not hesitate to have a look to these other projects that may better suit your needs
* [CTkPDFViewer](https://github.com/Akascape/CTkPDFViewer)
* [tkPDFViewer](https://pypi.org/project/tkPDFViewer/)


## **How does it work ?** ##

You can use this Pdf reader like you would for any standard tkinter's widget.
It got the same options and methods than a Frame widget, with a few additions :
* **Two options at instantiation :** defaultMode (default viewing mode) and filepath (automatic call to the load method below)
* **One public method** : load (load a new pdf document in the reader)

**_Here is a quick exemple :_**

```python
from tkinter import Tk
from TkPdfWidget import PdfReader

tk = Tk()
tk.title("simple example")
reader = PdfReader(tk, width=500, height=600, fp="CodeCivil.pdf")
reader.pack()
tk.mainloop()
```


## **Dependancies :** ##

* **_tkinter_** (obviously)
* [Pillow](https://pillow.readthedocs.io)
* [pymupdf](https://pymupdf.readthedocs.io)
cryptopian-infra 0.2.2
Cryptopian Infrastructure Library
Requires Python: >=3.11

# Cryptopian Infrastructure

## Application Secret Management with 1password
### 设计
1. 每个APP只需要设置两个环境变量，就可以从1password service拿到所有的app secrets
2. readonly/trade api都放在1password里面，通过ApiManager拿到
3. 公用的服务都可以在拿到secrets之后马上返回实例
   1. InfluxFactory
   2. MongoFactory
   3. SlackFactory

### 部署
1. 1password connect
2. Mongo DB
3. Influx DB