semvec/pypi-packages huggingface dataset:
bagua-python-sdk 1.0.2
八卦量化库
Requires Python: >=3.8

# bagua (八卦量化)

[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)

<div align="center">
  <img src="logo.png" alt="bagua" width="128" height="128">
</div>

<br/>
<br/>

本项目采用 Rust 编写核心引擎，通过零成本抽象实现极致性能。项目提供完整的量化交易功能，包括实时行情订阅、交易执行、策略回测等核心功能。同时提供 Python SDK，便捷开发和部署量化交易策略。

## 特性

- 🚀 高性能：使用 Rust 编写，提供极致的性能表现
- 🔧 模块化：包含多个独立模块，可根据需求灵活使用
- 🐍 Python 支持：提供 Python SDK，方便 Python 用户使用
- 💡 易用性：简洁的 API 设计，容易上手
- 🔒 安全性：利用 Rust 的安全特性，提供稳定可靠的交易环境

## 安装

使用 pip 安装:

```bash
pip install bagua-python-sdk
```

## 快速开始

```python
# 示例代码将在后续补充
```

## 贡献指南

欢迎提交 Pull Request 或创建 Issue！

## 许可证

本项目采用 MIT 许可证 - 查看 [LICENSE](LICENSE) 文件了解详情

## 联系方式

- 作者：husky-wealths
- 邮箱：husky@wealths.app
time-checker 0.0.7
A reusable timer utility for Python programming
Requires Python: >=3.6

# Code-Time: A Reusable Timer Utility for Python Scripts

time-checker is a lightweight and reusable Python package for measuring the execution time of scripts, functions, and code blocks. It's perfect for developers who want to profile their Python code quickly.

## Features
- **Function Timing**: Use a decorator to measure the execution time of any function.
- **Code Block Timing**: Use a context manager to time specific blocks of code.

## Installation
Install Time-Checker using pip:
```bash
pip install time-checker
```

## Usage

### 1. Timing Code Blocks
Use the `time_block` context manager to measure the time taken by a specific block of code:

```python
from time_checker.timer import time_block

with time_block("Processing Loop"):
    for _ in range(10**6):
        pass
```
**Output:**
```
Processing Loop executed in 0.1234 seconds
```

### 2. Timing Functions
Use the `time_function` decorator to measure the time taken by any function:

```python
from time_checker.timer import time_function

@time_function
def example_function():
    for _ in range(10**7):
        pass

example_function()
```
**Output:**
```
Function 'example_function' executed in 0.4567 seconds
```

## Contributing
Contributions are welcome! Feel free to open issues or submit pull requests.

## License
This project is licensed under the MIT License. See the `LICENSE` file for details.

---

## Author
- **Deep Korat**  
  [GitHub Profile](https://github.com/deepkorat) | [Email](mailto:deepkorat13@gmail.com)
dieyoung 0.0.7
Find (and kill) long running processes by name and arguments
Requires Python: >=3.8
Keywords: filter, find, inspect, kill, long time, monitoring, old, process, ps, slow, smart

# dieyoung
Find / kill very long running processes by name, args and age

## Installation
recommended way:
`pipx install dieyoung`

or (better if inside python virtualenv):
`pip install dieyoung`
your system may have `pip3` instead of `pip`.

## Find processes by name / arguments, three different modes
See all my ssh sessions:
~~~shell
$ dieyoung ssh
732333 8h ssh alv
742297 7h ssh jul
745335 6h ssh mx
875490 38m ssh -i /home/xenon/.ssh/id_ed25519 mx
880910 25m ssh mx -i /home/xenon/.ssh/id_ed25519
~~~
Format is simple: pid, age, cmdline

Now, lets suppose we want to find only ssh to mx:
~~~shell
$ dieyoung ssh mx
745335 6h ssh mx
875490 39m ssh -i /home/xenon/.ssh/id_ed25519 mx
880910 25m ssh mx -i /home/xenon/.ssh/id_ed25519
~~~
Three sessions are found, because each of them has "ssh" and "mx" in cmdline (in any order). This is how `--mode any` works (default mode), processes matches our pattern if all words from pattern are found *anywhere* in process cmdline, even if there are other arguments.

`--mode start`: First words of cmdline must match pattern, e.g. 
~~~shell
$ dieyoung -m start -- ssh -i 
875490 39m ssh -i /home/xenon/.ssh/id_ed25519 mx
~~~
But this filter will not find process `ssh mx -i /home/xenon/.ssh/id_ed25519` (because `ssh mx` is not `ssh -i`). 
Note, we used `--` to separate PATTERN (`ssh -i`) from dieyoung arguments.

`--mode full`: process cmdline must fully match pattern, e.g.
~~~shell
$ dieyoung -m full -- ssh -i /home/xenon/.ssh/id_ed25519 mx
875490 40m ssh -i /home/xenon/.ssh/id_ed25519 mx
~~~

## Filter by age, user and executable
To find processes older then some age use `-a` / `--age` option, like `-a 1h30m` (to find processes older then 1 hour and 30minutes)

`--exe PATH` to find only processes with this executable, e.g. if you want to find `/usr/bin/php` but not `/opt/php/7.4/bin/php`.

`--user USERNAME` to find only processes of this user. 


## Kill / Terminate processes
After you found processes, you may kill it manually with `kill` command, or use built-in feature. Add `--terminate` option to gracefully send SIGTERM to each matching process or `--kill` to send `SIGKILL` (like `kill -9 <pid>`).

## Inspect more details of processes
Add `-j` / `--json` to show more info about processes

## Foolproof protection (--notmore)
If `--kill` or `--terminate` given, dieyoung will count number of matching processes and refuse if it has to kill more then `--notmore N`. Default value is 1.