semvec/pypi-packages huggingface dataset:
csspin-workflows 2.1.0
Plugin-package for csspin providing workflows related plugins
Requires Python: >=3.9

|Latest Version| |Python| |License|

`csspin-workflows` is maintained and published by `CONTACT Software GmbH`_ and
serves workflows for the `csspin`_ task runner.

The following plugins are available:

- `csspin_workflows.stdworkflows`: Provides workflows for the `csspin`_ task
  runner.

Prerequisites
-------------

`csspin` is available on PyPI and can be installed using pip, pipx or any other
Python package manager, e.g.:

.. code-block:: console

   python -m pip install csspin

Using csspin-python
-------------------

The `csspin-python` package and its plugins can be installed by defining those
within the `spinfile.yaml` configuration file of your project.

.. code-block:: yaml

    spin:
      project_name: my_project

    # To develop plugins comfortably, install the packages editable as
    # follows and add the relevant plugins to the list 'plugins' below
    plugin_packages:
      - csspin-python
      - csspin-workflows

    # The list of plugins to be used for this project.
    plugins:
      - csspin_workflows.stdworkflows

    python:
      version: '3.11.10'

If the ``spinfile.yaml`` is configured correctly, you can provision the project
using ``spin provision``, that will automatically create a Python virtual
environment and install the required dependencies. After that, you can run
the "test" workflow using ``spin test`` in order to run all tasks annotated with
``@task(when=["test"])```.

.. _`CONTACT Software GmbH`: https://contact-software.com
.. |Python| image:: https://img.shields.io/pypi/pyversions/csspin-workflows.svg?style=flat
    :target: https://pypi.python.org/pypi/csspin-workflows/
    :alt: Supported Python Versions
.. |Latest Version| image:: http://img.shields.io/pypi/v/csspin-workflows.svg?style=flat
    :target: https://pypi.python.org/pypi/csspin/
    :alt: Latest Package Version
.. |License| image:: http://img.shields.io/pypi/l/csspin-workflows.svg?style=flat
    :target: https://www.apache.org/licenses/LICENSE-2.0.txt
    :alt: License
.. _`csspin`: https://pypi.org/project/csspin
rx-selection 0.1.9.dev302
Project used to apply selection to ntuples used for RX measurements filtered and skimmed by post_ap project
Requires Python: <3.13,>=3.10

[TOC]

# $R_X$ selection

This project is meant to apply an offline selection to ntuples produced by
[post_ap](https://github.com/acampove/post_ap/tree/main/src/post_ap_scripts)
and downloaded with
[rx_data](https://github.com/acampove/rx_data).
the selection is done with jobs sent to an HTCondor cluster.

## How to pick up selection and apply it to data and MC

For this do:

```python
from rx_selection import selection as sel

# trigger : HLT2 trigger, e.g. Hlt2RD_BuToKpEE_MVA 
# q2bin   : low, central, jpsi, psi2, high
# smeared : If true (default), the selection will use cuts on smeared masses. Only makes sense for electron MC samples
# process : 
#     One of the keys in https://gitlab.cern.ch/rx_run3/rx_data/-/blob/master/src/rx_data_lfns/rx/v7/rk_samples.yaml
#     DATA will do all the data combined

d_sel = sel.selection(trigger='Hlt2RD_BuToKpEE_MVA', q2bin='jpsi', process='DATA', smeared=True)

# You can override the selection here
for cut_name, cut_value in d_sel.items():
    rdf = rdf.Filter(cut_value, cut_name)

rep = rdf.Report()
# Here you cross check that the cuts were applied and see the statistics
rep.Print()
```

## Changing selection

### Overriding default

The selection stored in the config files can be overriden with:

```python
from rx_selection import selection as sel

with sel.custom_selection(d_sel = {'bdt' : 'mva_cmb > 0.1'}):
    run_function_that_uses_selection()
```

This will make sure that the `bdt` field:

- Is added with a `mva_cmb > 0.1` cut, if it does not exist
- Is updated, if it exists

inside the context, outside, the nominal selection will be used.

This manager implements a _lock_ that prevents custom selections
from been set more than once in a nested way.

If the user **has to** use a ustom selection inside a context 
already using a custom selection, he has to use:

```python
from rx_selection import selection as sel

with sel.custom_selection(d_sel = {'bdt_cmb' : 'mva_cmb > 0.1'}):
    # mva_cmb cut added on top of default selection
    run_with_cmb_cut()
    with sel.custom_selection(d_sel = {'bdt_prc' : 'mva_prc > 0.2'}, force_override=True):
        # mva_prc cut added on top of default selection
        run_with_prc_cut()
```

### Overriding current selection

In order to override whatever is the current selection do:

```python
from rx_selection import selection as sel

with sel.custom_selection(d_sel = {'bdt' : 'mva_cmb > 0.1'}):
    # Here you run with mva_cmb only
    with sel.update_selection(d_sel = {'bdt_prc' : 'mva_prc > 0.2'}):
        # Here you run with both mva_cmb and mva_prc
        run_function_that_uses_selection()
```

This will not override the default selection, as `custom_selection` does.
It will override the **current** selection, which might be a custom selection.
tfc-toolbox-py 0.19.0
A tool box by TFC.
Requires Python: >=3.10

# tfc_toolbox_py
This is a tool box. You can use some tools to accelerate development efficiency.

## 安装
- 使用pip安装：
```shell
pip install tfc_toolbox_py
```

## 使用方法
- 示例
```python
import tfc_toolbox_py as tfc
print(tfc.math.add(1, 2))
```
- 在项目中有一个toolbox.py的文件，这个文件就是使用这个库的一些例子。

## Tools
### account
- [x] input password
- [x] change password

### math
- [x] add
- [x] subtract
- [x] get_fibonacci
- [x] get_fibonacci_sequence

### console
- [x] menu

### spider
- [ ] get_xiaohongshu_article
- [ ] get_xiaohongshu_comment

### cv
- [x] ImageStitcher

### verilog
- [x] generate_verilog_instance

### converter
- [x] binary_to_text

### cqupt
- [x] get_cqupt_schedule_text
- [x] get_cqupt_news_sqlite
    - [x] get_cqupt_new_list
- [x] get_academic_info_list
- [x] get_academic_data_mysql
### webdav
- [x] webdav_client

### pip_manager
- [x] upgrade_check
- [x] upgrade_package

### office_operation
- [x] get_xlsx_column_data

### file_operation
- [x] read_file_to_list
- [x] save_list_to_file
- [x] get_file_name_from_folder
- [x] get_file_full_name_from_folder
- [x] get_file_and_folder_full_name_from_folder
- [x] delete_old_files
- [x] parse_date_from_filename

### sqlite_manager
- [x] create_table
- [x] add_data
- [x] modify_data
- [x] delete_data_by_id
- [x] read_data_to_list
- [x] read_column_data_to_list

### mysql_manager
- [x] create_mysql_connection
- [x] execute_query