semvec/pypi-packages huggingface dataset:
cdk-construct1 0.1.5
A Test package

# test pip package wolfgang

## install required tools


pip install setuptools
pip install wheel
pip install twine



pyexample
â”œâ”€â”€ LICENSE
â”œâ”€â”€ pyexample
â”‚   â”œâ”€â”€ __init__.py
â”‚   â”œâ”€â”€ module_mpi4py_1.py
â”‚   â”œâ”€â”€ module_numpy_1.py
â”‚   â””â”€â”€ module_numpy_2.py
â”œâ”€â”€ README.rst
â””â”€â”€ setup.py

## create package
python setup.py bdist_wheel

## install local
python -m pip install dist/cdk_construct1-0.1-py3-none-any.whl


## check
python setup.py check

## upload:

Create pypirc

python -m twine upload dist/*
python -m twine upload dist/cdk_construct1-0.1.1-py3-none-any.whl


see also

https://betterscientificsoftware.github.io/python-for-hpc/tutorials/python-pypi-packaging/

https://packaging.python.org/

https://dzone.com/articles/executable-package-pip-install
pys3tower-pkg-s0rcy-r 0.0.3
Sync a local directory to a S3 bucket.
Requires Python: >=3.9

# PyS3 Tower :building_construction:


## Introduction

PyS3 Tower *(like the Pisa Tower)* is a Python library that can sync your local files to a S3 bucket. With PyS3 Tower you can easily sync your local files to a S3 bucket and also sync your S3 bucket to your local files.

This script work like xcopy on Windows. But it is more powerful, flexible and adapted to the needs of the S3 bucket.

\> PyS3 Tower work with the following rules:
- If a file is in the S3 bucket and not in the local folder, it will be deleted on the bucket,
- If a file is in the local folder and not in the S3 bucket, it will be uploaded to the bucket,
- If a file is in both the local and the S3 bucket, the local file will be updated on the bucket if it is different from the local file.


## Installation

    pip install pys3tower


## Usage

Import the PyS3 Tower library:

    import pys3tower

And create a PyS3 Tower object with your local file path, your S3 bucket name and your access key, secret key and region:

    pys3tower = pys3tower.PyS3Tower(local_path, s3_bucket_name, access_key, secret_key, region)

Then, run the pysetower.run() method:

    pys3tower.run()
locapip 0.1.17
C++ embedded Python microservices
Requires Python: >=3.7
Keywords: protobuf grpcio grpcio-tools

# C++嵌入式Python微服务

C++ embedded Python microservices

## 1 简介

locapip是一个小型gRPC运行框架，适用于内嵌Python解释器的C++项目。

结合locapic，可与虚幻引擎项目优雅集成

## 2 服务端

### 2.1 安装

```shell
python -m pip install locapip
```

### 2.2 启动

```shell
python -m locapip --port 6547 --config CONFIG_JSON
```

其中，```CONFIG_JSON```是配置文件的路径，定义启用的protobuf模块及其参数

```json
{
  "test": {},
  "fit_fill": {},
  "explorer": {
    "working_directory": "d:/"
  },
  "your_protobuf_module": {
    "path": "path/to/your_protobuf_module.py"
  }
}
```

## 3 客户端

### 3.1 Python

TODO

### 3.2 C++

需结合C++接口locapic使用

locapic，借助pybind11的嵌入式Python解释器，提供了一套通用的C++接口使用locapip

TODO

## 4 自定义模块

服务端和客户端的具体实现方法，请参阅```test.py```源码，以及 [gRPC Python](https://grpc.io/docs/languages/python/)
和 [Examples](https://github.com/grpc/grpc/tree/master/examples)

服务端和客户端都应能够访问同一版本的protobuf模块，因此配置文件中定义的模块名称和路径应相同
nowledgeable 0.1.12
Auto checker
Requires Python: >=3.6

# Nowledgeable exercice check

This module let student check their answers outside nowledgeable, anywhere. 

Allows exercices to be run outside the nowledgeable application. 

Allow also testing complex applications

Contain also the python exercice unit framework

## installation 

```bash

pip3 install nowledgeable

```

## usage 

### Exercice checking 


Run the following in an exercice containing an exercice with the exercice.yaml specification
```bash

nowledgeable run-checks

```

or 

```bash

nowledgeable run-checks /path/to/exercice.yaml

```


Watching for file update and reruning files automatically

```bash 
nowledgeable watch
``` 


### using the unit testing library 


```python 


from python_utils.utils import AnswerTester

tester = AnswerTester() #singleton pattern

## add assertions


tester.print_test_output()

```
#### Exemples

imagine you have the following wording : 

"Code the function multiply_by_two(x) return 2 * x for each x"

You can use  `compare_function`.

for that you need to : 

1. code the proper function
2. specify a test_inputs variables which will be fed to the student function and the good one.

```python

def solution(x): return 2 * x

tester = AnswerTester()

test_inputs = [
    [3], # la fonction sera testée avec l'argument x=3
    [-2],# la fonction sera testée avec l'argument x=-2
    [random.randint(-3, 3)] #la fonction sera testée avec un x aléatoire entre -3 et 3
]

tester.compare_functions("nom test", multiply_by_two, solution, test_inputs, "message")

result_status = tester.get_test_output()

result = tester.get_test_output() #A la fin on demande de générer le json

```