semvec/pypi-packages huggingface dataset:
basic-web-server 0.4
A basic web server that can render HTML or plain text.

# Overview

Welcome! Thank you for exploring this repository. Please note that it's currently undergoing active development, so bugs may be present.

## Current Issues

- [ ] CTRL + C doesn't terminate the program (On Windows hosts).
- [ ] An occasional random line is added to text-based responses.
- [ ] Errors resembling `utf-8' codec can't decode byte` are printed to the terminal.

# What's New in Version 0.4?

Version 0.4 introduces several noteworthy improvements:

- Enhanced HTTP method support, including POST requests.
- Improved routing and request handling for various HTTP methods.
- Advanced error management with customizable error handlers.
- Basic support for rendering HTML and plaintext with associated status codes.
- Streamlined user interface and error reporting.
- Bug fixes and performance optimizations.

# Future Development Plans

Looking ahead, here are some features and enhancements in the pipeline:

- Further expansion of functionality within each component to offer users greater flexibility.
- Implementation of a custom error handler allowing users to personalize error responses, such as 404 and 403.
- Consideration of authentication mechanisms for enhanced security.

Your contributions and feedback are always welcome as we strive to enhance this project together.
rust-python-jaeger-reporter 0.1.23
A faster reporter for the python `jaeger-client` that reports spans in a native background thread.
Requires Python: >=3.7

Rust Jaeger Python Client
=========================

[![PyPI](https://img.shields.io/pypi/v/maturin.svg)](https://pypi.org/project/rust-python-jaeger-reporter/)
[![PyPI - Format](https://img.shields.io/pypi/format/rust-python-jaeger-reporter)](https://pypi.org/project/rust-python-jaeger-reporter/)

A faster reporter for the python [`jaeger-client`](https://pypi.org/project/jaeger-client/) that reports spans in a native background thread.

This is relatively untested, so use at your own risk! (You may want to manually wrap this class in python so that calls to `report_span` cannot fail).

Usage:

```python
from jaeger_client import Config
import opentracing

from rust_python_jaeger_reporter import Reporter

# The standard config for jaeger. No need to change anything here.
config = Config(
    config={
        'sampler': {
            'type': 'const',
            'param': 1,
        },
    },
    service_name='your-app-name',
)

# Create the rust reporter.
reporter = Reporter(config={"agent_host_name": "127.0.0.1", "agent_port": 6831})

# Create the tracer and install it as the global tracer.
#
# *Note*: This invocation doesn't support throttling or the remote sampler.
tracer = config.create_tracer(reporter, config.sampler)
opentracing.set_global_tracer(tracer)

```


Building
--------

Requires a nightly rust compiler, due to using the PyO3 library.
[Maturin](https://github.com/PyO3/maturin) can be used to develop, test and
publish the library.


Publishing to PyPI
------------------

As per the [maturin docs](https://github.com/PyO3/maturin#manylinux-and-auditwheel)
we use a docker image to build the binary wheels for the various python versions:

```
docker run -it --rm -v $(pwd):/io ghcr.io/pyo3/maturin publish
```
stsdk 0.3.3
this is for at trade strategy module
Requires Python: <4.0,>=3.10

# st-sdk

提供给Strategy Module使用的python sdk。

## 设计架构

1. utils：是最底层的一些封装，对于http，websocket做一些集成性的封装，包括intercept之类的拦截器实现。
2. api: 基于封装的request代码，对接oms，dms对应的接口和websocket封装
3. model：设计strategy module，order manager，position manager等对策略曝光的最上层模块
4. config：一些常用的配置项
5. common：主要存放constant和error等常量
6. test：python测试文件目录

## 开发配置

st-sdk使用poetry作为核心的包管理工具，工具地址：https://python-poetry.org/。直接抛弃了pip的方式开发，把包版本控制&发版都简单收敛到一个工具和命令行中。

## 开发流程

- 执行test demo,我们通过下面的命令行，可以执行test的python代码，其他的和python代码使用没有任何区别

```
poetry run python stsdk/test/st_demo_1.py
```

## 设计细节

### cache设计

每一个key会对应一个map，map中的cache是用户订阅参数产生的topic，然后创建出来的自定义数据。

举个例子：
1. BBO MAP数据：是一个以bbo_cache作为key的map。

当我们订阅一个topic: BBO.EXCHANGE_BINANCE.ETH-USDT.SECURITY_TYPE_PERP.CONTRACT_TYPE_LINEAR.USDT.UNSPECIFIED的数据，那么这个时候这个topic就是新的map的一个key，这个里面会存放最近10条数据(默认配置10条数据)


## 指令设计

- 仅支持placeOrder和cancelOrder两个指令