semvec/pypi-packages huggingface dataset:
birenci-infra 0.0.9
biren ci sdk
Requires Python: >=3.6

# 介绍
```
默认会读取 以下 jenkins的环境变量
export JOB_NAME="test/test"
export JOB_BASE_NAME="test"
export BUILD_NUMBER="1"
export BUILD_URL="BUILD_URL"
export JENKINS_URL="JENKINS_URL"
export GIT_BRANCH="master"
export GIT_COMMIT="21a6fdgd"   
export BUILD_TAGS="debug,pref,pr,ngintly"  # 任意标签

python3 ./v2/sdk/run.py {func name} {params}
```

# 函数
## v2_add_pref_result

```
上传性能数据

python3 ./v2/sdk/run.py v2_add_pref_result  path/pref.txt

cat /path/pref.txt
>>
rn50_accu_accuracy:75.244
rn50_perf_performance:22331.52
rn50_perf_mean_latency:888937482721
bert_accu_accuracy:90.8876698049583
bert_perf_performance:2229.96
bert_perf_mean_latency:307503377511
```

```
上传pr, pr job数据

python3 ./v2/sdk/run.py v2_add_Merge_Request  path/pr.json
python3 ./v2/sdk/run.py v2_add_Merge_Request_job  path/pr_job.json

cat /path/pr.json
>>
{"pullRequestName" : "prname2", "component" : "brcc", "pullRequestNumber" : "100001"}

cat /path/pr_job.json
>>
{"component" : "brcc", "jobID" : "10001", "pullRequestCreatedBy" : "e00123", "jobId" : "http://", "pullLink" : "http://123"}
```


pdu 功能

```
install chrome 
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb 

查看chrome 版本 下载对应 chromedriver
http://chromedriver.storage.googleapis.com/index.html 

install chromedriver
wget http://chromedriver.storage.googleapis.com/105.0.5195.19/chromedriver_linux64.zip
unzip chromedriver_linux64.zip
chmod +x chromedriver
sudo mv chromedriver /usr/local/share/chromedriver
```
robocorp-core 0.1.3
The automation framework for Python
Requires Python: >=3.9,<4.0

# Robo

Robo is a python framework to ease RPA development in Python.


Concepts:

`Robo` expects tasks to be run to be marked as decorators in Python.


```
from robo import task

@task
def my_task():
    ...
    
```

## Command line API:

### Run tasks using the command line:

```
python -m robo run <directory> -t <task_name>
```


### List available tasks

```
python -m robo list <directory>
```
PyMongoAgg 0.0.2
A Python-MongoDB Aggregation transpiler.
Requires Python: >=3.9

PyMongoAgg
==========

Minimal POC of a Python-MongoDB Aggregation transpiler.

Have you ever, like me, had to write a MongoDB aggregation expression, and found that you
would rather put your head underneath a car tire and ask the driver to do a burnout?
Well, this is the solution for you. Now you can write your aggregation pipelines using native Python syntax,
and PyMongoAgg will handle conversion by parsing the AST of your function.

This was originally a Skunkworks project (MongoDB's internal hackathon), however I was let go summarily only
2 weeks after my project got to the finals. Luckily, the project has a very permissive license, and I will be continuing
development work by myself.

The version that MongoDB turned into an official repository is not maintained: https://github.com/mongodb-labs/PyMongoAgg

Example:
```python
def basic_func():
    y = a
    a = (a + b) / 2
    b = sqrt(b * y)
    t = t - (x * (y - a) ** 2)
    x = x * 2
    ...
output_dict = transpile_function(basic_func)
print(output_dict)
```
```pycon
[{'$set': {'y': '$a'}}, 
 {'$set': {'a': {'$divide': [{'$add': ['$a', '$b']}, 2]}}},
 {'$set': {'b': {'$sqrt': [{'$multiply': ['$b', '$y']}]}}},
 {'$set': {'t': {'$subtract': ['$t', {'$multiply': ['$x', {'$pow': [{'$subtract': ['$y', '$a']}, 2]}]}]}}},
 {'$set': {'x': {'$multiply': ['$x', 2]}}}]
```
It also supports boolean operations!
```python
def bool_func(y, a, b, c):
    y = 1
    a = (y and 0) and 1
    b = y or 0
    c = not y
    ...
```
```pycon
[{'$set': {'y': 1}}, 
 {'$set': {'a': {'$and': [{'$and': ['$y', 0]}, 1]}}}, 
 {'$set': {'b': {'$or': ['$y', 0]}}},
 {'$set': {'c': {'$not': ['$y']}}}]
```
Changes since original Skunkworks presentation:

  * Added support for builtins like `sqrt`
  * Added support for boolean operations
  * Added tests that run the transpiled functions and checks the result
    of running the functions against the result of executing the transpiled MongoDB aggregation.

To-do:
  * Control flow
  * Vector operations
  * More aggregation operators
PyMongoAgg-juliusgeo 0.0.2
A Python-MongoDB Aggregation transpiler.
Requires Python: >=3.9

PyMongoAgg
==========

Minimal POC of a Python-MongoDB Aggregation transpiler.

Have you ever, like me, had to write a MongoDB aggregation expression, and found that you
would rather put your head underneath a car tire and ask the driver to do a burnout?
Well, this is the solution for you. Now you can write your aggregation pipelines using native Python syntax,
and PyMongoAgg will handle conversion by parsing the AST of your function.

This was originally a Skunkworks project (MongoDB's internal hackathon), however I was let go summarily only
2 weeks after my project got to the finals. Luckily, the project has a very permissive license, and I will be continuing
development work by myself.

The version that MongoDB turned into an official repository is not maintained: https://github.com/mongodb-labs/PyMongoAgg

Example:
```python
def basic_func():
    y = a
    a = (a + b) / 2
    b = sqrt(b * y)
    t = t - (x * (y - a) ** 2)
    x = x * 2
    ...
output_dict = transpile_function(basic_func)
print(output_dict)
```
```pycon
[{'$set': {'y': '$a'}}, 
 {'$set': {'a': {'$divide': [{'$add': ['$a', '$b']}, 2]}}},
 {'$set': {'b': {'$sqrt': [{'$multiply': ['$b', '$y']}]}}},
 {'$set': {'t': {'$subtract': ['$t', {'$multiply': ['$x', {'$pow': [{'$subtract': ['$y', '$a']}, 2]}]}]}}},
 {'$set': {'x': {'$multiply': ['$x', 2]}}}]
```
It also supports boolean operations!
```python
def bool_func(y, a, b, c):
    y = 1
    a = (y and 0) and 1
    b = y or 0
    c = not y
    ...
```
```pycon
[{'$set': {'y': 1}}, 
 {'$set': {'a': {'$and': [{'$and': ['$y', 0]}, 1]}}}, 
 {'$set': {'b': {'$or': ['$y', 0]}}},
 {'$set': {'c': {'$not': ['$y']}}}]
```
Changes since original Skunkworks presentation:

  * Added support for builtins like `sqrt`
  * Added support for boolean operations
  * Added tests that run the transpiled functions and checks the result
    of running the functions against the result of executing the transpiled MongoDB aggregation.

To-do:
  * Control flow
  * Vector operations
  * More aggregation operators
thesummachine 0.1.1
Python Package Template
Requires Python: >=3.6

# py_package <img src="logo.jpg" align="right" height=160/>
A generic python package template for python package development in EB Advanced Analytics.

![Build status](https://github.com/ebanalyse/py_package/workflows/build/badge.svg)

## Workflow
The package template ships with a default Github Actions CI/CD pipeline, that tests, builds and 
deploys the package to the **pypi-eb** repository hosted on AWS.

## Read More
Read more about the package template and the reasoning behind it [here](presentation.pdf).

## Poetry commands
    1) set user in poetry config
    export USER=aws

    2) set repo endpoint in peotry config
    export REPO=https://pypieb-2933310
    33030.d.codeartifact.eu-west-1.amazonaws.com/pypi/pypi-eb/

    3) set auth token in poetry config
    export AUTH_TOKEN=`aws codeartifact get-auth
    orization-token --domain pypieb --domain-owner 293331033030 --query authorizationToken --ou
    tput text`

    4) set poetry config with endpoint and user + auth token 
    poetry config repositories.<my-repo-name-for-poetry> $REPO
    poetry config http-basic.<my-repo-name-for-poetry> $USER $AUTH_TOKEN

    4) publish using poetry publish -r <repo-name>

## VSCODe commands
1) Cmd + Shift + P 
2) Select intepreter, verify virtualenv
3) type which pyhton in terminal before running python code