semvec/pypi-packages huggingface dataset:
pdf-client-wrapper 0.1.2
pdf client wrapper, more easy to use pdf-server

# pdf-client-wrapper

## 使用说明
``` bash
# pts_render pdf容器地址 模板目录 pdf文件位置(`.`代表当前模板目录下生成pdf)
pts_render 192.168.1.218:50055 test-data/xxx .
```

## 开发环境搭建

1. 拉取所有子仓库
1. 安装开发库
1. 执行脚本 `bin/compile_proto.sh`，编译 `proto` 文件

## 从源代码安装

``` bash
# TODO 注意 0.0.1 版本一定要加 -e 参数，因为模块目录下没有 __init__.py 文件，安装的时候该目录的代码会被忽略
pip install -e git+https://e.coding.net/xymedimg/pdf-server/pdf-client-wrapper.git@0.0.1#egg=pdf-client-wrapper
pipenv install -e git+https://e.coding.net/xymedimg/pdf-server/pdf-client-wrapper.git@0.0.1#egg=pdf-client-wrapper
```

## 发布版本
修改setup.py中的版本号：version="v0.1.x",
```bash
python setup.py sdist bdist_wheel
pip install twine
twine upload dist/*
# 输入pypi账号和密码
```
python-emacs 0.2.1
Python interface to GNU Emacs.
Requires Python: >=3.6

# python-emacs
[![CI](https://github.com/jlumpe/python-emacs/actions/workflows/ci.yml/badge.svg)](https://github.com/jlumpe/python-emacs/actions/workflows/ci.yml)
[![Documentation Status](https://readthedocs.org/projects/python-emacs/badge/?version=latest)](https://python-emacs.readthedocs.io/en/latest/?badge=latest)


This package provides an interface between Python and GNU Emacs. It allows you to easily pass data
from Python to Emacs, execute Emacs Lisp code, and transfer the resulting data back to Python again.
It also provides utilities for building Emacs Lisp expressions in Python.


## Installation

Install using pip:

    pip install python-emacs

Or directly from the repository:

    git clone https://github.com/jlumpe/python-emacs
    cd python-emacs
    pip install .


## Usage

Create an interface to Emacs using either `EmacsBatch` or `EmacsClient`. The first runs a new Emacs
process in batch mode with every command, the second uses `emacsclient` to communicate with a
running server. Both follow the same API.

```python-console
>>> from emacs import EmacsBatch
>>> emacs = EmacsBatch(args=['-Q'])  # Don't load user config with each invocation
```

Execute an Elisp expression and get the result:

```python-console
>>> emacs.eval('(+ 1 2)')
3

>>> emacs.eval('(format "One plus two is %d" (+ 1 2))')
'One plus two is 3'

>>> src = '''
... (progn
...   (require 'cl)
...   (cl-loop
...     for i in '(1 2 3 4 5)
...     collect (* i i)))
... '''

>>> emacs.eval(src)
[1, 4, 9, 16, 25]
```

Evaluation errors are caught in Emacs and raised in Python:

```python-console
>>> emacs.eval('(+ 1 "foo")')
ElispException: Wrong type argument: number-or-marker-p, "foo"
```


## Write Elisp programs in Python

```python-console
>>> import emacs.elisp as el

>>> src = el.to_elisp((el.Symbol('format'), 'One plus two is %d', (el.Symbol('+'), 1, 2)))
>>> src
<el (format "One plus two is %d" (+ 1 2))>

>>> emacs.eval(src)
'One plus two is 3'
```

Using a terrible DSL:

```python-console
>>> from emacs.elisp import E

>>> prog = E.with_output_to_string(
      E.dolist(
        (E.i, E.number_sequence(1, 20)),
        E.princ(E.i),
        E.when(E['='](E['%'](E.i, 3), 0), E.princ("fizz")),
        E.when(E['='](E['%'](E.i, 5), 0), E.princ("buzz")),
        E.princ('\n')))

>>> prog
<el (with-output-to-string (dolist (i (number-sequence 1 20)) (princ i) (when (= (% i 3) 0) (princ "fizz")) (when (= (% i 5) 0) (princ "buzz")) (princ "\n")))>

>>> print(emacs.eval(prog))
1
2
3fizz
4
5buzz
6fizz
7
8
9fizz
10buzz
11
12fizz
13
14
15fizzbuzz
16
17
18fizz
19
20buzz
```
pyspec2openapi 0.3.0
Convert Ethereum consensus spec SSZ types to OpenAPI type schema definitions
Requires Python: >=3.8,<4.0

# pyspec2openapi

Tool to convert the types defined in the Ethereum python specs https://github.com/ethereum/consensus-specs to an OpenAPI definition, for https://github.com/ethereum/beacon-APIs. This tool facilitates manteinance of the OpenAPI spec and follows the canonical JSON mapping from https://github.com/ethereum/consensus-specs/pull/3506

## Usage

Install from PyPI

```
pip install pyspec2openapi
```

Create a `config.yml` file

```yaml
spec_version: v1.4.0-beta.5
sources:
  phase0:
    - {spec: beacon-chain.md}
    - {spec: validator.md}
    - {file: extra_types/phase0.md}
  altair:
    - {spec: beacon-chain.md}
    - {spec: validator.md}
    - {spec: light-client/sync-protocol.md}
    - {file: extra_types/altair.md}
  bellatrix:
    - {spec: beacon-chain.md}
    - {spec: validator.md}
    - {file: extra_types/bellatrix.md}
  capella:
    - {spec: beacon-chain.md}
    - {spec: validator.md}
    - {spec: light-client/sync-protocol.md}
  deneb:
    - {spec: polynomial-commitments.md}
    - {spec: beacon-chain.md}
    - {spec: validator.md}
    - {spec: p2p-interface.md}
    - {spec: light-client/sync-protocol.md}
    - {file: extra_types/deneb.md}
generate_blinded_types: [bellatrix, capella, deneb]
ignore_classnames:
  - LightClientStore
exclude_comments:
  - '\[New [^\]]*\]'
  - '\[Modified [^\]]*\]'
```

- `spec_version`: Specific Github tag from the `ethereum/consensus-specs` repo to fetch sources from
- `sources`: Topologically sorted list of fork and files to fetch types from. This tool can topologically sort types within the same markdown file, but not across them.
- `generate_blinded_types`: Auto-generate the types `BlindedBeaconBlockBody`, `BlindedBeaconBlock`, and `SignedBlindedBeaconBlock` for a specific set of forks.
- `ignore_classnames`: Ignore container code blocks with this list of names
- `exclude_comments`: Ignore comments for container properties that match any of this regex

Generate types spec

```
pyspec2openapi config.yml out.yml
```

Review an example output with an [example config](./pyspec2openapi/tests/example_config.yml) in [./pyspec2openapi/tests/example_specs_out.yml](./pyspec2openapi/tests/example_specs_out.yml)
quasi-poisson 0.1.0
Estimate Quasi-Poisson Regression Model

#### Introduction

The purpose of this package is to estimate the Quasi-Poisson regression. It is a project in progress.

Should you have any question or suggestion about the package, please feel free to drop me a line. 

#### Authors

[WenSui Liu](mailto:liuwensui@gmail.com) is a seasoned data scientist with 15-year experience in the financial service industry. 

[Joyce Liu](mailto:joyce.jl.liu@gmail.com) is a college student majoring in Mathematics with a strong passion for data science.