semvec/pypi-packages huggingface dataset:
point-utils-pxo 0.1.2
test first package

# my_pkg_1

#### 介绍
测试一个pkg

#### 软件架构
软件架构说明


#### 安装教程

1.  xxxx
2.  xxxx
3.  xxxx

#### 使用说明

1.  xxxx
2.  xxxx
3.  xxxx

#### 参与贡献

1.  Fork 本仓库
2.  新建 Feat_xxx 分支
3.  提交代码
4.  新建 Pull Request


#### 特技

1.  使用 Readme\_XXX.md 来支持不同的语言，例如 Readme\_en.md, Readme\_zh.md
2.  Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
3.  你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
4.  [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目，是综合评定出的优秀开源项目
5.  Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
6.  Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
esds 0.0.8
An Extensible Simulator for Distributed Systems
Keywords: simulator, distributed systems, cyber-physical, systems, network, wireless, wired


# ESDS: An Extensible Simulator For Distributed Systems and Cyber-Physical Systems
[![Dependency](https://img.shields.io/badge/Python-v3.10-blue)](https://www.python.org/) [![Pipeline](https://gitlab.com/manzerbredes/esds/badges/main/pipeline.svg)](https://gitlab.com/manzerbredes/esds/-/tree/main)

### What is ESDS ?
It is a short learning curve and coarse-grain simulator for distributed systems. ESDS contains the building blocks for the simulation of *Distributed Systems*, *Cyber-Physical Systems* (CPS), *Wireless Sensors Networks* (WSN) etc. It is designed to improve the flexibility/faithfulness of nodes implementations and mitigate the learning curve compare to existing simulators. 

ESDS is part of a research project. Studies and validation experiments are available online. For more details please visit http://todo.com.

### Installation
`> pip install esds`

To ensure that esds is properly working and installed on your system, you can clone this repository, and run the simulation tests with one of the following scripts:
- `tests/run.sh`
- `tests/run.py`

### Features
- Easy to use
- Small API
- Agent-based: node implementations are located in dedicated python files
- Wireless interferences detection (i.e not modelization)
- Node mobility (through dynamic updates of the network matrices)
- Node plugins (e.g: energy consumption)

### What ESDS does not implements ?
- Network protocols (e.g IP/TCP/UDP)
- Wireless physical layer models (e.g: Friis and Log-Distance models, modulation, RSSI)
- Routing algorithms (e.g: Shortest path)
- And much more!

### Simulation API
- `api.args`
- `api.send(<int>,<data>,<size>,<dst>)`
- `api.sendt(<int>,<data>,<size>,<dst>,<t>)`
- `api.receive(<int>)`
- `api.receivet(<int>,<t>)`
- `api.wait(<t>)`
- `api.wait_end()`
- `api.log(<message>)`
- `api.read(<register>)`
- `api.turn_on()`
- `api.turn_off()`
- More detailed examples are available here:
  - [example/sender.py](https://gitlab.com/manzerbredes/esds/-/blob/main/example/sender.py)
  - [example/receiver.py](https://gitlab.com/manzerbredes/esds/-/blob/main/example/receiver.py)

### Documentation
The documentation of ESDS is available in the [user manual](https://gitlab.com/manzerbredes/esds/-/blob/main/manual/manual.pdf).
shangjian-api 0.0.6
Tool for shangjian sdk
Requires Python: >=3.5

# shangjian_api

## 安装
```shell
python -m pip install shangjian_api
```

## 用法
### AirWorks Api

#### 基础用法

```python
import json
from shangjian_api.airworks.package_api import AirWorksApi

awp = AirWorksApi(
    base_url="api.airworks.shangjian.tech:30000",
    access_key="xxx",
    access_secret="xxx",
    default_app_id=1,
    default_api_method="GET",
    default_page_num=1,
    default_page_size=100
)

res = awp.call(
    app_url="api_gateway/api/1/daily",
    port_code='',
    date='',
    api_method="GET"
)
print(json.dumps(res, indent=2, ensure_ascii=False))
```


#### 使用本地配置文件时

```python
import json
from shangjian_api.airworks.package_api import AirWorksApi

awp = AirWorksApi(
    default_app_id=1,
    default_api_method="GET",
    default_page_num=1,
    default_page_size=100
)
```

#### 使用api别名作为函数名来调用
```python
res = awp.daily(
    app_id=1,
    port_code='',
    date='',
    api_method="GET"
)
print(json.dumps(res, indent=2, ensure_ascii=False))
```

### KM Api

```python
from shangjian_api.km.base_api import get_indicator_values

indicator_ids = ["all_indexpv_chain_rank_app_by_week_all"]
result = get_indicator_values(indicator_ids)
print(result)
```

### 配置文件内容
> 文件路径: 包安装路径下名为 sdk_config.toml 的文件, 例如
> /usr/lib/python3.8/site-packages/shangjian_api-0.0.2-py3.8.egg/shangjian_api/sdk_config.toml
> 内容如下
```toml
title = "sdk config"

[km]
[km.indicator]
#host = "localhost:8888"
host = ""
username = ""
password = ""

# airworks
[airworks]
[airworks.api]
#host = "localhost:8888"
host = ""
access_key = ""
access_secret = ""
```
## 开发
> 可将包内代码复制,并修改顶级包名,可新增功能,但需要在理解逻辑的前提下修改现有代码

## release log
### 20211028
- km get_indicator_values 接口返回值有序
### 20210826
- 添加支持本地配置文件功能
- 支持顶级包名可变
nokia-ont-port-finder 0.0.12
Network Automation and Programmability Abstraction Layer for NOKIA OLT and ONT DYNAMIC HARDWARE DETECTION
Keywords: NOKIA ONT DYNAMIC PORT FINDER, DYNAMIC HARDWARE DETECTION

<!DOCTYPE html>

<h2>nokia_ont_port_finder</h2> <br>

<hp>Automate port finding based on the provided slot/port number</p> <br>
<p>Example of slot/port number: "1/3" for slot with 8 ports, 16 ports and 16 plus 4 ports </p> <br>
<p>Example of slot/port number: "1" for slot with 4 ports </p> <br>

<h5>How to use the tool: read the example.txt file for more info</h5>

<p>pip install nokia-ont-port-finder==0.0.1</p>
<p>from OLT_ONT_PORTFINDER.portfinder import PortFinder</p>
qmail-util 0.0.13
Top-level package for qmail-util.
Keywords: qmail_util

qmail-util
==========


![Image](https://img.shields.io/github/license/rstms/qmail_util)

![Image](https://img.shields.io/pypi/v/qmail_util.svg)



![Image](https://readthedocs.org/projects/qmail-util/badge/?version=latest)

![Image](https://pyup.io/repos/github/rstms/qmail_util/shield.svg)

Qmail mailserver maintenance tool


* Free software: MIT license
* Documentation: https://qmail-util.readthedocs.io.



Credits
-------

This package was created with Cookiecutter and `rstms/cookiecutter-python-cli`, a fork of the `audreyr/cookiecutter-pypackage` project template.

[audreyr/cookiecutter](https://github.com/audreyr/cookiecutter)
[audreyr/cookiecutter-pypackage](https://github.com/audreyr/cookiecutter-pypackage)
[rstms/cookiecutter-python-cli](https://github.com/rstms/cookiecutter-python-cli)
picogram 0.0.1
small api library for telegram bot api
Requires Python: >=3.8
Keywords: api, bot, library, small, telegram

# picogram
small api library for telegram bot api


Installation:
```shell
pip install picogram
```


Example:

```python
from picogram import Bot

bot = Bot(token='your_token')


@bot.message()
def start_message(message: dict):
    bot.send_message(chat_id=message['chat']['id'], text='Hello!')


if __name__ == '__main__':
    bot.run_polling()
```
clld-markdown-plugin 0.5.0
Render CLDF markdown in clld apps.

# clld-markdown-plugin

Render [CLDF markdown](https://github.com/cldf/cldf/blob/master/extensions/markdown.md) in clld apps

## Usage

Include (and configure the plugin) in your app's `main` function:
```python
def main(global_config, **settings):
    settings['clld_markdown_plugin'] = {
        'model_map': {'ValueTable': common.ValueSet},
        'function_map': {}
    }
    config = Configurator(settings=settings)
    config.include('clld.web.app')
    ...
    config.include('clld_markdown_plugin')
```

Then you can use `clld_markdown_plugin.markup` as follows in your templates:
```html
<%! from clld_markdown_plugin import markdown %>

${markdown(req, '[x](LanguageTable#cldf:abad1241)')|n}
```

By default, links to objects in the CLDF dataset will be rendered as HTML links to the corresponding
object's details page in the clld app.


### Configuration

The plugin can be configured via the following four configuration options:

- `model_map`: A `dict` mapping CLDF component names to DB model classes defined for the app. This
  allows for a flexible mapping between CLDF components and the clld DB classes.
- `renderer_map`: See below for details.
- `extensions`: A list of [markdown extensions](https://python-markdown.github.io/extensions/#officially-supported-extensions)
  in dot notation, to be activated when calling the `markdown` function.
- `keep_link_labels`: A `boolean` indicating whether to keep link labels as they appear in the
  CLDF Markdown text. By default (`False`), labels will be substituted using the linked object's
  name.


#### Renderer callables

The `renderer_map` configuration option for `clld_markdown_plugin` accepts a `dict` mapping
CLDF component names to Python callables with the following signature:

```python
import clld.web.app


def renderer(req: clld.web.app.ClldRequest, objid: str, table, session: clld.db.meta.DBSession, ids=None) -> str:
    """
    The returned `str` is interpreted as Markdown, so it may also include HTML.
    """
```
BetterPythonLogger 1.1.3
A better, simple logger for python
Requires Python: >=3.12

# BetterPythonLogger

A better python logger for better logging.

## Usage

```python
from BetterPythonLogger import Logger

logger = Logger.Logger("test")

logger.debug("This is a debug message")
```

![alt text](https://github.com/thomascerqueira/BetterPythonLogger/raw/main/doc/usage.png)

**By default this while create a new log file in the log directory**

you can add a file handler to the logger

```python
from BetterPythonLogger import Logger

logger = Logger.Logger("test")

logger.addFileHandler("<filename>", "<logger_name> here will be test")
```

You can add a stream handler to the logger

```python
from BetterPythonLogger import Logger

logger = Logger.Logger("test")

logger.addStreamHandler("<logger_name> here will be test")
```

You can add a logger to the logger

```python

from BetterPythonLogger import Logger

logger = Logger.Logger("test")

logger.addLogger("<logger_name>")
```

This will add a stream handler and a file handler to the newly created logger


If you don't want a file handler you can say noFile=True in the constructor or in the addLogger method

If you don't use any name we will use the name used to create the class.
muguobox-paper-prompt-finetune 0.0.1
A muguo toolkit for finetuning AIGC prompts

# muguobox-paper-prompt-finetune

A muguo toolkit for finetuning AIGC prompts.

**First of all, configure your AWS credential profile.** See [Configuration and credential file settings](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html)

**Then configure your `.env` file with one line:**

`AWS_PROFILE_NAME=your_aws_profile_name`

You may also need to install `python-dotenv` in your virtual environment.

## To Parse a PDF File

```Python
from dotenv import load_dotenv
load_dotenv()

from muguobox.paper_prompt_finetune import *

if __name__ == "__main__":
  filename = "/path/to/pdf/file"
  output_dir = "/path/to/output_dir"
  parsing_result = parse_pdf(filename, output_dir)
  print(parsing_result)
```

The parsing results will be downloaded to `output_dir`. There will be two files: `texts.json` and `figures.zip`.

## To Call GPT

```Python
from dotenv import load_dotenv
load_dotenv()

from muguobox.paper_prompt_finetune import *

if __name__ == "__main__":
  prompt = "Your prompt here"
  content = "The content provided to GPT"
  message = ask_gpt(prompt=prompt, content=content)
  print(message)
```